nccp.6 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .TH NCPP 6ACK
  2. .ad
  3. .SH NAME
  4. ncpp \- New C Pre-Processor
  5. .SH SYNOPSIS
  6. ncpp [\-options] [ file ]
  7. .SH DESCRIPTION
  8. .I Ncpp
  9. reads a file, expands macros and include
  10. files, and writes an input file for the C compiler.
  11. All output is to standard output.
  12. .br
  13. The following options are supported.
  14. .IP -\fBI\fIdirectory\fR
  15. .br
  16. add this directory to the list of
  17. directories searched for #include "..." and #include <...>
  18. commands. Note that there is no space between the
  19. "-I" and the directory string. More than one -I command
  20. is permitted.
  21. .IP -\fBI\fR
  22. end the list of directories to be searched, and also do not look in
  23. default places.
  24. .IP -\fBD\fIname\fR=\fItext\fR
  25. .br
  26. define
  27. .I name
  28. as a macro with
  29. .I text
  30. as its replacement text.
  31. .IP -\fBD\fIname\fR
  32. the same as -\fBD\fIname\fR=1.
  33. .IP
  34. .IP -\fBU\fIname\fR
  35. .br
  36. undefine the macro name
  37. .IR name .
  38. .IP -\fBC\fR
  39. leave comments in. By default, C-comments are deleted.
  40. .IP -\fBP\fR
  41. do not generate line directives
  42. .IP -\fBM\fIn\fR
  43. set maximum identifier length to
  44. .IR n .
  45. .PP
  46. The following names are always available unless undefined:
  47. .RS
  48. .IP __STDC__
  49. A decimal constant 1, indicating that this is an ANSI C conforming
  50. implementation.
  51. .IP __FILE__
  52. The input (or #include) file being compiled
  53. (as a quoted string).
  54. .IP __LINE__
  55. The line number being compiled.
  56. .IP __DATE__
  57. The date of translation of the source file. This is a string
  58. literal of the form "\fBMmm dd yyyy\fP".
  59. .IP __TIME__
  60. The time of translation of the source file. This is a string
  61. literal of the form "\fBhh:mm:ss\fP".
  62. .RE
  63. .SH BUGS
  64. The output may contain extra spaces, this prevents unintended
  65. pasting of tokens.
  66. .SH "SEE ALSO"
  67. L. Rosler,
  68. .I
  69. Draft Proposed Standard - Programming Language C,
  70. .R
  71. ANSI X3J11 Language Subcommittee
  72. .SH AUTHOR
  73. Leendert van Doorn