home *** CD-ROM | disk | FTP | other *** search
/ Dream 48 / Amiga_Dream_48.iso / Atari / c / cpp.zoo / cpp.man < prev    next >
Encoding:
Text File  |  1993-06-03  |  9.3 KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5. CPP (1)                       30 May 1993                        CPP (1)
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. pNAMEq pq pq pq pq pq pq pq pq 
  16.  
  17.         cpp - a stand-alone C preprocessor 
  18.  
  19.  
  20.  
  21. pSYNOPSISq pq pq pq pq pq pq pq pq 
  22.  
  23.         pcppq [ p-CTVq ] [ p-Pq[012]pqpq ] [ p-Dqnamepqpq ] 
  24.  
  25.              [ p-Dqnamep=qdefpq ] [ p-Iqdirectorypqpq ] [ p-Uqnamepqpq ] 
  26.  
  27.              [ p-ansiq ] [ p-fq[no-]pc++-commentsqpq ] [ p-Wq[no-]pbad-charsqpq ] 
  28.  
  29.              [ p-Wq[no-]pnested-commentsqpq ] [ pinput-fileq [ poutput-fileq ] ] 
  30.  
  31.  
  32.  
  33. pDESCRIPTIONq pq pq pq pq pq pq pq pq 
  34.  
  35.  
  36.  
  37.         pcppq  is  a  stand-alone  C preprocessor, intended for use with C
  38.  
  39.         compilers  such  as  HSC  which  do  not  provided   access   to
  40.  
  41.         preprocessor output.    It  implements as closely as possible an
  42.  
  43.         ANSI standard C preprocessor, including trigraphs, token pasting 
  44.  
  45.         and stringizing.  
  46.  
  47.  
  48.  
  49.         pcppq optionally accepts two filenames as arguments.    pinput-fileq
  50.  
  51.         and  poutput-fileq  are,  respectively, the input and output files
  52.  
  53.         for the preprocessor.  If not specified, or  if  given  as  `-',
  54.  
  55.         they  default  to  the  standard  input and the standard output,
  56.  
  57.         respectively.  
  58.  
  59.  
  60.  
  61. pOPTIONSq pq pq pq pq pq pq pq pq 
  62.  
  63.  
  64.  
  65.         p-Cq  
  66.  
  67.                 Pass all comments (except those  that  appear  on    pcppq
  68.  
  69.                 directive lines)  through the preprocessor.  By default,
  70.  
  71.                 pcppq strips out C-style comments.  
  72.  
  73.  
  74.  
  75.         p-Pq[012]  
  76.  
  77.                 Preprocess the input without producing the line  control
  78.  
  79.                 information used  by the next pass of the C compiler.  A
  80.  
  81.                 numeric argument can be passed to -P: 0  specifies  that
  82.  
  83.                 no line control information control is generated, and is 
  84.  
  85.                 equivalent  to  -P; 1 specifies that normal line control
  86.  
  87.                 information is generated, which is the  default;  and  2
  88.  
  89.                 specifies  that line control information is generated in
  90.  
  91.                 the form of preprocessor  p#lineq directives.  
  92.  
  93.  
  94.  
  95.         p-Tq  
  96.  
  97.                 Translate trigraphs in the input file.  This behavior is 
  98.  
  99.                 implied by the p-ansiq option.  
  100.  
  101.  
  102.  
  103.         p-Dq name  
  104.  
  105.                 Define pnameq as 1 (one).   This  is  the  same  as  if  a
  106.  
  107.                 p-Dqnamep=1qpq option appeared on the  pcppq command line, or as 
  108.  
  109.                 if a 
  110.  
  111.  
  112.  
  113.          
  114.  
  115.                 p#defineq name p1qpq 
  116.  
  117.  
  118.  
  119.          
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. Thu Jun 3 18:58:15 1993                                           Page 1
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. CPP (1)                       30 May 1993                        CPP (1)
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.                 line   appeared   in  the  source  file  that    pcppq  is
  146.  
  147.                 processing.  
  148.  
  149.  
  150.  
  151.         p-Dqnamep=qdef  
  152.  
  153.                 Define pnameq as if by a p#defineq directive.  This  is  the
  154.  
  155.                 same as if a 
  156.  
  157.  
  158.  
  159.          
  160.  
  161.                 p#defineq name pdefqpq 
  162.  
  163.  
  164.  
  165.          
  166.  
  167.                 line   appeared   in  the  source  file  that    pcppq  is
  168.  
  169.                 processing.  The p-Dq option has lower precedence than the 
  170.  
  171.                 p-Uq option; that is, if the same name is used in  both  a
  172.  
  173.                 p-Uq  option  and  a p-Dq option, the name will be undefined
  174.  
  175.                 regardless of the order of the options.  
  176.  
  177.  
  178.  
  179.         p-Iqdirectory  
  180.  
  181.                 Insert  pdirectoryq into  the  search  path  for  p#includeq
  182.  
  183.                 files with names not beginning with q`p/q', `p\q║,pq or a drive 
  184.  
  185.                 specifier.   pdirectoryq is inserted ahead of the standard
  186.  
  187.                 list of ``include'' directories.  Thus,  p#includeq  files
  188.  
  189.                 with  names  enclosed  in double-quotes (p"q) are searched
  190.  
  191.                 for first in the directory of the file with the p#includeq 
  192.  
  193.                 line, then in directories named  with  p-Iq  options,  and
  194.  
  195.                 lastly, in  directories  from  the  standard  list.  For
  196.  
  197.                 p#includeq files with  names  enclosed  in  angle-brackets
  198.  
  199.                 q(p<>q),pqpq  the  directory of the file with the p#includeq line
  200.  
  201.                 is not searched.  See pUSAGEq below for exact  details  of
  202.  
  203.                 this search order.  
  204.  
  205.  
  206.  
  207.         p-Uqname  
  208.  
  209.                 Remove  any  initial definition of pnameq,pqpq where pnameq is a
  210.  
  211.                 symbol that is predefined by the preprocessor.  
  212.  
  213.  
  214.  
  215.         p-Vq  
  216.  
  217.                 Print version information to pstderrq.pqpq 
  218.  
  219.  
  220.  
  221.         p-ansiq  
  222.  
  223.                 Define the preprocessor token p__STDC__q to have value  1,
  224.  
  225.                 and enable   trigraph  translation.    To  get  p__STDC__q
  226.  
  227.                 without  trigraph  translation,  you  can  specify   the
  228.  
  229.                 options p-ansiq p-Tq.pqpq 
  230.  
  231.  
  232.  
  233.         The  following  p-fq and p-Wq options can be negated by adding a pno-q
  234.  
  235.         before the option name.  Some are on by default.  
  236.  
  237.  
  238.  
  239.         p-fc++-commentsq  
  240.  
  241.                 Support the C++ comment indicator q`p//q║.pqpq With this option 
  242.  
  243.                 active, everything on the line after the p//q  is  treated
  244.  
  245.                 as a comment.  Off by default.  
  246.  
  247.  
  248.  
  249.         p-Wbad-charsq  
  250.  
  251.                 Issue  a  warning  if  a  character  that cannot legally
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259. Thu Jun 3 18:58:15 1993                                           Page 2
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269. CPP (1)                       30 May 1993                        CPP (1)
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.                 appear in a C program appears  in  the  input.    On  by
  278.  
  279.                 default.  
  280.  
  281.  
  282.  
  283.         p-Wnested-commentsq  
  284.  
  285.                 Issue  a  warning  if a comment-start character sequence
  286.  
  287.                 q(`p/*q║,pqpq and q`p//q║pqpq if p-fc++-commentsq is active) appears  in
  288.  
  289.                 a comment.  Off by default.  
  290.  
  291.  
  292.  
  293. pUSAGEq pq pq pq pq pq pq pq pq 
  294.  
  295.         If  you  are  familiar with C, you should already know about the
  296.  
  297.         basic  workings  of  pcppq.pqpq  We  will  not  go  into  a   detailed
  298.  
  299.         description  here,  since  any  good  book on C could do better;
  300.  
  301.         instead,  we  will   describe   details   particular   to   this
  302.  
  303.         implementation.  
  304.  
  305.  
  306.  
  307.         ppDirectory Search Orderqq pq pq pq pq pq pq pq pq 
  308.  
  309.  
  310.  
  311.  
  312.  
  313.         A  file  specified in an p#includeq directive will be searched for
  314.  
  315.         in the following directories, in order: 
  316.  
  317.  
  318.  
  319.         1.  
  320.  
  321.                 The directory of the file that contains  the    p#includeq
  322.  
  323.                 directive,  if  the  directive  is of the form `p#includeq
  324.  
  325.                 "filename"'.  
  326.  
  327.  
  328.  
  329.         2.  
  330.  
  331.                 The directories specified by p-Iq options,  in  the  order
  332.  
  333.                 they were specified.  
  334.  
  335.  
  336.  
  337.         3.  
  338.  
  339.                 The   list  of  directories  specified  in  the  pINCLUDEq
  340.  
  341.                 environment variable, in order.  
  342.  
  343.  
  344.  
  345.         ppSpecial Namesqq pq pq pq pq pq pq pq pq 
  346.  
  347.  
  348.  
  349.  
  350.  
  351.         The following macros are predefined by pcppq:pqpq 
  352.  
  353.  
  354.  
  355.         p__STDC__q  
  356.  
  357.                 Expands to 1 if the p-ansiq option is specified.  
  358.  
  359.  
  360.  
  361.         p__LINE__q  
  362.  
  363.                 Expands to an integer constant representing the  current
  364.  
  365.                 line number in the current input file.  
  366.  
  367.  
  368.  
  369.         p__FILE__q  
  370.  
  371.                 Expands  to  a  string constant representing the name of
  372.  
  373.                 the current input file.  
  374.  
  375.  
  376.  
  377.         p__DATE__q  
  378.  
  379.                 Expands to a string constant of the form "Mmm  dd  yyyy"
  380.  
  381.                 representing   the   date  on  which  preprocessing  was
  382.  
  383.                 initiated.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391. Thu Jun 3 18:58:15 1993                                           Page 3
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. CPP (1)                       30 May 1993                        CPP (1)
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.         p__TIME__q  
  410.  
  411.                 Expands to a string  constant  of  the  form  "hh:mm:ss"
  412.  
  413.                 representing  the system time at which preprocessing was
  414.  
  415.                 initiated.  
  416.  
  417.  
  418.  
  419.         p__INCLUDE_LEVEL__q  
  420.  
  421.                 Expands to an integer constant representing the  current
  422.  
  423.                 depth of nested p#includeq files.  
  424.  
  425.  
  426.  
  427. pSEEq pALSOq pq pq pq pq pq pq pq 
  428.  
  429.         Documentation for your C compiler 
  430.  
  431.  
  432.  
  433.         Any good book on C.  
  434.  
  435.  
  436.  
  437. pDIAGNOSTICSq pq pq pq pq pq pq pq pq 
  438.  
  439.  
  440.  
  441.         The   error   messages  produced  by  pcppq  are  intended  to  be
  442.  
  443.         self-explanatory.  The line number and filename where the  error
  444.  
  445.         occurred are printed along with the diagnostic.  
  446.  
  447.  
  448.  
  449. pBUGSq pq pq pq pq pq pq pq pq 
  450.  
  451.         None that I know of, but there's almost always One More Bug(TM). 
  452.  
  453.         If you should find one, please report it to me, Scott Bigham, at 
  454.  
  455.         dsb@cs.duke.edu.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. Thu Jun 3 18:58:15 1993                                           Page 4
  524.  
  525.  
  526.  
  527.  
  528.  
  529.