home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / UUCODE / UUPC / TEST / UPC12ES4.ZIP / UUTRAF / sccsid.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-16  |  2.6 KB  |  99 lines

  1. /*
  2.  *    sccsid.h - handle various incantations for SID's
  3.  *
  4.  * #ident "@(#)head:sccsid.h    1.3    92/10/09 23:39:52 (woods)"
  5.  *
  6.  *
  7.  * USE (as the very first statements in a C source module w/out '\'s):
  8.  *
  9.  *    #define SID    "%Z\%%Y\%:%M\%    %I\%    %E\% %U\% (%Q\%)"
  10.  *    #include "sccsid.h"
  11.  *
  12.  * USE (as the very first statement in a C header module w/out '\'s):
  13.  *
  14.  *    #define SID_NM    module_sccsid    * the full name of the static array *
  15.  *    #define SID_H    "%Z\%%Y\%:%M\%    %I\%    %E\% %U\% (%Q\%)"
  16.  *    #include "sccsid.h"
  17.  *
  18.  * [Use tab characters around the '%I\%'.]
  19.  *
  20.  * NOTE:  assumes SYSVR3 or SYSVR4 or SMART_CPP will be defined on the
  21.  *      compiler command line if appropriate.
  22.  *
  23.  * WARNING:  as a side-effect, this file define's and undef's
  24.  *         both SMART_CPP and MYconst
  25.  */
  26.  
  27. #if !defined(_AIX) && (defined(SYSVR3) || defined(SYSVR4))
  28. # define SMART_CPP
  29. # define SMART_IDENT
  30. #endif
  31.  
  32. #if defined(SYSVR2)    /* You might want this, but it's usually a no-op. */
  33. /*# define SMART_CPP        /* use this if your compiler has #sccs */
  34. /*# define SMART_SCCS        /* you must also uncomment '#sccs' lines below */
  35. #endif
  36.  
  37. #if defined(__STDC__) && (__STDC__ > 0)
  38. # define MYconst    const
  39. #else
  40. # define MYconst    /* no_op */
  41. #endif
  42.  
  43. #ifdef SMART_CPP
  44.  
  45. # ifdef SID
  46. #  ifdef SMART_IDENT
  47. /*#   ident    SID    /* comment this out if your cpp blows up */
  48. #  endif
  49. #  ifdef SMART_SCCS
  50. #   include "You must uncomment the #sccs lines for SMART_SCCS to work!"
  51. /*#   sccs    SID    /* comment the above line if you uncomment this one */
  52. #  endif
  53. #  undef SID
  54. # else
  55. #  ifdef SID_H
  56. #   ifdef SID_NM
  57. #    ifdef SMART_IDENT
  58. /*#     ident    SID_H    /* unset SMART_CPP if your compiler blows up */
  59. #    endif
  60. #    ifdef SMART_SCCS
  61. #     include "You must uncomment the #sccs lines for SMART_SCCS to work!"
  62. /*#     sccs    SID_H    /* comment the above line if you uncomment this one */
  63. #    endif
  64. #    undef SID_NM
  65. #    undef SID_H
  66. #   else
  67. #    include    "ERROR: you must define SID_NM to use SID_H"
  68. #   endif
  69. #  else
  70. #   include    "ERROR: you must define either SID or SID_H to use sccsid.h"
  71. #  endif
  72. # endif
  73.  
  74. #else /* !SMART_CPP */
  75.  
  76. # if !(defined(lint) || defined(M_LINT)) || defined(DEBUG)
  77. #  ifdef SID
  78. static MYconst char    sccsid[] = SID;
  79. #   undef SID
  80. #  else
  81. #   ifdef SID_H
  82. #    ifdef SID_NM
  83. static MYconst char    SID_NM[] = SID_H;
  84. #     undef SID_NM
  85. #     undef SID_H
  86. #    else
  87. #     include    "ERROR: you must define SID_NM to use SID_H"
  88. #    endif
  89. #   else
  90. #    include    "ERROR: you must define either SID or SID_H to use sccsid.h"
  91. #   endif
  92. #  endif
  93. # endif
  94.  
  95. #endif
  96.  
  97. #undef MYconst
  98. #undef SMART_CPP
  99.