Blame mcpp-gcc.1

Packit b40e2e
.TH MCPP "1" "Mar 2008" "alternative CPP" "Commands for GCC"
Packit b40e2e
.SH NAME
Packit b40e2e
mcpp \- Matsui CPP, an alternative C preprocessor
Packit b40e2e
.SH SYNOPSIS
Packit b40e2e
mcpp [\fIoptions\fP] [\fI<infile>\fP [\fI<outfile>\fP]]
Packit b40e2e
.SH DESCRIPTION
Packit b40e2e
\fBmcpp\fR is a C/C++ preprocessor with the highest conformance which implements C90, C99 and C++98. 
Packit b40e2e
\fBmcpp\fR has plentiful diagnostics and many #pragmas. 
Packit b40e2e
It is useful to check portability of your program, and also useful to debug complicated macro.
Packit b40e2e
This is a man-page for \fBmcpp\fR of GCC-specific-build.
Packit b40e2e
.SH OPTIONS
Packit b40e2e
\fBmcpp\fR expects two file names as arguments, \fI<infile>\fR and
Packit b40e2e
\&\fI<outfile>\fR.  If not specified, \fI<infile>\fR defaults to standard input
Packit b40e2e
and \fI<outfile>\fR defaults to standard output.
Packit b40e2e
.PP
Packit b40e2e
It takes the following options.
Packit b40e2e
.PP
Packit b40e2e
Commonly used options:
Packit b40e2e
.IP \fB-@MODE
Packit b40e2e
Specify preprocessing mode. MODE should be one of these 4:
Packit b40e2e
.IP "    \fB-@std"
Packit b40e2e
Standard conforming mode. (default)
Packit b40e2e
.IP "    \fB-@poststd, -@post"
Packit b40e2e
special 'post-Standard' mode.
Packit b40e2e
.IP "    \fB-@kr"
Packit b40e2e
K&R 1st mode.
Packit b40e2e
.IP "    \fB-@oldprep, -@old"
Packit b40e2e
"old_preprocessor" mode (i.e. "Reiser model" cpp).
Packit b40e2e
.IP \fB-b
Packit b40e2e
Output #line lines in C source style (default: GCC style).
Packit b40e2e
.IP \fB-C
Packit b40e2e
Output also comments.
Packit b40e2e
.IP "\fB-D <macro>[=<value>]"
Packit b40e2e
Define <macro> as <value> (default:1).
Packit b40e2e
.IP "\fB-D <macro(args)>[=<replace>]"
Packit b40e2e
Define <macro(args)> as <replace>.
Packit b40e2e
.IP "\fB-e <encoding>"
Packit b40e2e
Change the default multi-byte character encoding to one of:
Packit b40e2e
euc_jp, gb2312, ksc5601, big5, sjis, iso2022_jp, utf8.
Packit b40e2e
.IP \fB-finput-charset=<encoding>
Packit b40e2e
Same as -e <encoding>.  (Do not insert spaces around '=').
Packit b40e2e
.IP "\fB-I <directory>"
Packit b40e2e
Add <directory> to the #include search list.
Packit b40e2e
.IP \fB-I-
Packit b40e2e
Unset system or site specific include directories.
Packit b40e2e
.IP "\fB-include <file>"
Packit b40e2e
Include the <file> prior to the main input file.
Packit b40e2e
.IP \fB-j
Packit b40e2e
Do not output the source line in diagnostics.
Packit b40e2e
.IP "\fB-M, -MM, -MD, -MMD, -MP, -MQ target, -MT target, -MF file"
Packit b40e2e
Output source file dependency line for makefile.
Packit b40e2e
.IP \fB-N
Packit b40e2e
Don't predefine any non-standard macros.
Packit b40e2e
.IP \fB-nostdinc
Packit b40e2e
Unset system or site specific include directories.
Packit b40e2e
.IP "\fB-o <file>"
Packit b40e2e
Output to <file>.
Packit b40e2e
.IP \fB-P
Packit b40e2e
Don't output #line lines.
Packit b40e2e
.IP \fB-Q
Packit b40e2e
Output diagnostics to "mcpp.err" (default:stderr).
Packit b40e2e
.IP "\fB-U <macro>"
Packit b40e2e
Undefine <macro>.
Packit b40e2e
.IP \fB-undef
Packit b40e2e
Same as -N.
Packit b40e2e
.IP \fB-v
Packit b40e2e
Show version of \fBmcpp\fR.
Packit b40e2e
.IP "\fB-W <level>"
Packit b40e2e
Set warning level to <level> (OR of {0,1,2,4,8,16}, default:1).
Packit b40e2e
.IP \fB-w
Packit b40e2e
Same as -W0.
Packit b40e2e
.IP \fB-z
Packit b40e2e
Don't output the included file, only defining macros.
Packit b40e2e
.PP
Packit b40e2e
Options available with -@std (default) or -@poststd options:
Packit b40e2e
.IP \fB-+
Packit b40e2e
Process C++ source.
Packit b40e2e
.IP \fB-2
Packit b40e2e
Enable digraphs.
Packit b40e2e
.IP \fB-digraphs
Packit b40e2e
Enable digraphs.
Packit b40e2e
.IP "\fB-h <n>"
Packit b40e2e
Re-define the pre-defined macro __STDC_HOSTED__ as <n>.
Packit b40e2e
.IP \fB-lang-c89
Packit b40e2e
Same as -S1.
Packit b40e2e
.IP \fB-lang-c++
Packit b40e2e
Same as -+.
Packit b40e2e
.IP "\fB-pedantic, -pedantic-errors"
Packit b40e2e
Same as -W7.
Packit b40e2e
.IP "\fB-S <n>"
Packit b40e2e
Redefine __STDC__ to <n>, undefine old style macros.
Packit b40e2e
.IP \fB-std=<STANDARD>
Packit b40e2e
Specify the standard to which the code should conform.
Packit b40e2e
<STANDARD> may be one of: c90, c99, iso9899:1990, iso14882, etc.
Packit b40e2e
.br
Packit b40e2e
iso9899:<n>, iso14882:<n> : Same as -V <n> (long in decimals).
Packit b40e2e
.IP "\fB-V <n>"
Packit b40e2e
Redefine __STDC_VERSION__ or __cplusplus to <n>.
Packit b40e2e
.br
Packit b40e2e
C with -V199901L specifies C99 mode.
Packit b40e2e
.br
Packit b40e2e
C++ with -V199901L specifies C99 compatible mode.
Packit b40e2e
.IP "\fB-x c++"
Packit b40e2e
Same as -+.
Packit b40e2e
.PP
Packit b40e2e
Options available with only -@std (default) option:
Packit b40e2e
.IP \fB-@compat
Packit b40e2e
Expand recursive macro more than Standard.
Packit b40e2e
.IP \fB-3
Packit b40e2e
Enable trigraphs.
Packit b40e2e
.IP \fB-trigraphs
Packit b40e2e
Enable trigraphs.
Packit b40e2e
.IP \fB-K
Packit b40e2e
Embed macro annotations into comments.
Packit b40e2e
.PP
Packit b40e2e
Options available with -@std (default), -@kr or -@oldprep options:
Packit b40e2e
.IP \fB-lang-asm
Packit b40e2e
Same as -x assembler-with-cpp.
Packit b40e2e
.IP "\fB-x assembler-with-cpp"
Packit b40e2e
Process "assembler" source.
Packit b40e2e
.PP
Packit b40e2e
Option available on Mac OS X / Apple-GCC:
Packit b40e2e
.IP "\fB-arch <arch>"
Packit b40e2e
Change the target to <arch> (one of i386, x86_64, ppc and ppc64).
Packit b40e2e
.PP
Packit b40e2e
Option available on CygWIN:
Packit b40e2e
.IP \fB-mno-cygwin
Packit b40e2e
Change include directory and predefined macros for msvcrt.dll rather than cygwin1.dll.
Packit b40e2e
.SH PRAGMA
Packit b40e2e
\fBmcpp\fR has the following #pragma directives.
Packit b40e2e
.IP "#pragma once"
Packit b40e2e
Read the header file only once even if multiply #included.
Packit b40e2e
.IP "#pragma __setlocale( ""encoding"")"
Packit b40e2e
Specify the multibyte character encoding to "encoding".
Packit b40e2e
See -e option for the encodings.
Packit b40e2e
.IP "#pragma MCPP put_defines"
Packit b40e2e
Putout all the macro definitions currently valid.
Packit b40e2e
.IP "#pragma MCPP debug <args>"
Packit b40e2e
Start to putout debugging informations.
Packit b40e2e
    <args> should be one or more of:
Packit b40e2e
    token expand macro_call path if expression memory getc
Packit b40e2e
.IP "#pragma MCPP end_debug <args>"
Packit b40e2e
Stop to putout debugging informations.
Packit b40e2e
    <args> are the same with 'debug'.
Packit b40e2e
    No argument specifies all arguments.
Packit b40e2e
.IP "#pragma MCPP push_macro( ""MACRO"")"
Packit b40e2e
Save the macro definition to the stack.
Packit b40e2e
.IP "#pragma MCPP pop_macro( ""MACRO"")"
Packit b40e2e
Retrieve the macro definition from the stack.
Packit b40e2e
.IP "#pragma MCPP preprocess"
Packit b40e2e
"Pre-preprocess" the following header files for \fBmcpp\fR.
Packit b40e2e
.IP "#pragma MCPP warning    any message"
Packit b40e2e
Putout warning "any message".
Packit b40e2e
.SH "VERSION"
Packit b40e2e
MCPP V.2.7 (2008/03) for GCC
Packit b40e2e
.SH "SEE ALSO"
Packit b40e2e
The full documentation for \fBmcpp\fR are maintained as html files.
Packit b40e2e
Please see mcpp-manual.html.