UCPP(1)
π UCPP β like, the C preprocessor, bestie π
okay so welcome to the UCPP(1) page, general commands manual energy, and honestly? she's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
ucpp β the C preprocessor. that's it. that's the name. iconic. π
πΈ SYNOPSIS πΈ
ucpp [ options ] [ file ]
π¦ DESCRIPTION π¦
so ucpp is a C preprocessor that's mostly compatible with ISO-C99 π. she is rather strict (periodt, she has boundaries) and she uses only a small amount of memory β lowkey thrifty, highkey efficient, we love a resource-conscious queen π.
if you don't hand her a file argument? she just uses standard input as her primary input. no notes. π
β OPTIONS β
there are several classes of options, babes. buckle up, we're going through all of them. no skimming, no skipping, fr fr π
π Language Options π
-Cβ keep comments in the output. she heard you like comments so she kept them π-sβ if a rogue#shows up, she does not emit an error and keeps it in the output. rogue#rights π«Ά-lβ supress the emission of#linedirectives in the output.-lgβ convert the#lineto the gcc-style equivalent. glow-up edition β¨-CCβ disable C++-like comments (where a//begins a comment, up to the end of the line). use this one if you wanna get closer to C90 behaviour.-a,-naβ handle assertions (the ones defined with#assert);-aalso defines the standard assertions#machine,#cpuand#system(peep-eif you want the local definition of those assertions). π-a0β disable assertion support. bye bestie π-Vβ disable support for macros with a variable number of arguments. so like: in C99, a macro may be declared with...as the last argument, and inside the replacement list,__VA_ARGS__gets replaced with the optional extra arguments given in the call to the macro. use this option to get closer to C90 behaviour.-uβ enable UTF-8 support: with this on, the source is considered an ISO/10646 source, encoded in UTF-8. characters represented as two bytes or more are considered alphabetic characters, like letters, and are therefore usable in identifiers. these characters hold the same syntactic value as the corresponding Universal Character Names. unicode girls rise π β¨-Xβ enable-a,-uand-Y. this should makeucppbehave closer to what's requested from a "modern" C preprocessor. she's modern, she's evolved π¦-c90β enable-Vand-CC, and do not define__STDC_VERSION__. this should makeucppmimic older C90 behaviour. throwback era π-tβ disable trigraph support; this seems to be required for some legacy code. respect the elders π«‘
π Warning Options π
-wtβ emit a final warning when trigraphs are encountered.-wttβ emit warnings for each trigraph encountered. not her being thorough π-waβ emit annoying warnings (these are usually useless, ngl π)-w0β supress standard warnings. silence is golden, periodt.
π Directory Options π
-Idirectory-I directoryβ add directory to the include path, before the standard include path.-Jdirectory-J directoryβ add directory to the include path, after the standard include path.-zIβ do not use the standard (compile-time) include path.-Mβ emit only the names of encountered files, separated by spaces; this is intended for automatic generation of Makefile dependencies. makefile girlies stay winning π₯-Maβ do the same as-Mbut also for system files.-o fileβ direct the output to file instead of standard output.
π§ Macro Options π§
-Dmacroβ predefine macro with content1.-Dmacro=defβ predefine macro with the content def.-Umacroβ undefine macro.-Yβ predefine system-dependant macros.-Zβ do not predefine special macros such as__TIME__.-Afoo(bar)β addfoo(bar)to the list of assertions.-Bfoo(bar)β removefoo(bar)of the list of assertions; you may also use-Bfooto remove all-Bfoo(xxx)from the list of assertions.-dβ instead of normal output, emit#definedirectives representing all macros defined during processing.-eβ instead of normal output, emit#assertdirectives representing all assertions defined during processing.
π Miscellaneous Options π
-vβ print version number, include path and (optionaly) defined assertions.-hβ print some help. she's helpful like that π«Ά
πΈ ENVIRONMENT πΈ
ucpp is not itself affected by environment variables. however, she uses library functions that might be affected, depending on the system. so likeβ¦ not her fault, blame the libs π
π AUTHOR π
Thomas Pornin <pornin@bolet.org> β the mastermind, the main character, the one who wrote her π
π BUGS π
ucpp is considered stable software. but however improbable it is, please report a ticket if the latest version, available from this site:
https://gitlab.com/scarabeusiv/ucpp
has the bug. she's stable but she's not perfect, and honestly? relatable π
ok that's the whole page bestie, you're officially ucpp-pilled π§ β¨ go forth and preprocess responsibly π
and that's a wrap on this General Commands Manual entry, dated Oct 21 2000 β yes she's a vintage queen and she still serves ππ
π¦ where this page comes from
- alpine 3.24: ucpp-doc 1.3.5-r2 Β· BSD-3-Clause
- fedora 43: ucpp 1.3.5-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: ucpp 1.3.5-17.fc44 Β· LicenseRef-Callaway-BSD
- opensuse-leap 16.0: ucpp 1.3.5-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: ucpp 1.3.5-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: ucpp 1.3.5-bp160.1.13 Β· BSD-3-Clause
- opensuse-leap 16.0: ucpp 1.3.5-bp160.1.13 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms