2001-02-24 06:58:54 +00:00
|
|
|
.\" hey, Emacs: -*- nroff -*-
|
|
|
|
.\" qfcc is free software; you can redistribute it and/or modify
|
|
|
|
.\" it under the terms of the GNU General Public License as published by
|
|
|
|
.\" the Free Software Foundation; either version 2 of the License, or
|
|
|
|
.\" (at your option) any later version.
|
|
|
|
.\"
|
|
|
|
.\" This program is distributed in the hope that it will be useful,
|
|
|
|
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2002-01-05 18:46:05 +00:00
|
|
|
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
.\"
|
|
|
|
.\" See the GNU General Public License for more details.
|
2001-02-24 06:58:54 +00:00
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public License
|
2002-01-05 18:46:05 +00:00
|
|
|
.\" along with this program; see the file COPYING. If not, write to:
|
2001-02-24 06:58:54 +00:00
|
|
|
.\"
|
2002-01-05 18:46:05 +00:00
|
|
|
.\" Free Software Foundation, Inc.
|
|
|
|
.\" 59 Temple Place, Suite 330
|
|
|
|
.\" Boston, MA 02111-1307, USA
|
2001-02-24 06:58:54 +00:00
|
|
|
.\"
|
|
|
|
.\" Some roff macros, for reference:
|
|
|
|
.\" .nh disable hyphenation
|
|
|
|
.\" .hy enable hyphenation
|
|
|
|
.\" .ad l left justify
|
|
|
|
.\" .ad b justify to both left and right margins (default)
|
|
|
|
.\" .nf disable filling
|
|
|
|
.\" .fi enable filling
|
|
|
|
.\" .br insert line break
|
|
|
|
.\" .sp <n> insert n+1 empty lines
|
|
|
|
.\" for manpage-specific macros, see man(7)
|
2002-01-05 18:46:05 +00:00
|
|
|
.\"
|
2007-04-11 15:10:00 +00:00
|
|
|
.ds qfcc \fBqfcc\fP
|
|
|
|
.ds cpp \fBcpp\fP
|
|
|
|
.ds progs.src \fIprogs.src\fP
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2004-04-28 04:49:15 +00:00
|
|
|
.TH QFCC 1 "28 April, 2004" QuakeForge "QuakeForge Developer's Manual"
|
2002-01-05 18:46:05 +00:00
|
|
|
.\" Please update the above date whenever this man page is modified.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH NAME
|
|
|
|
qfcc \- The QuakeForge Code Compiler
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B qfcc
|
|
|
|
.RI [ options ]
|
2003-05-15 18:53:45 +00:00
|
|
|
.RI [ files ]
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH DESCRIPTION
|
2007-04-11 15:10:00 +00:00
|
|
|
\*[qfcc] compiles Ruamoko source into a form that the QuakeForge engine can
|
2001-02-24 06:58:54 +00:00
|
|
|
understand.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH OPTIONS
|
2007-04-11 15:10:00 +00:00
|
|
|
\*[qfcc] takes the following arguments:
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.TP
|
2003-09-20 04:13:32 +00:00
|
|
|
.B \-\-advanced
|
2007-04-11 12:04:53 +00:00
|
|
|
Use advanced Ruamoko features.
|
|
|
|
This is the default when using separate compilation.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-09-20 04:13:32 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-C, \-\-code OPTION,...
|
2007-04-11 12:04:53 +00:00
|
|
|
Set code generation options.
|
|
|
|
See \fBCODE GENERATION OPTIONS\fP for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-c
|
2010-01-13 06:42:26 +00:00
|
|
|
Only compile, do not link.
|
2007-04-11 12:04:53 +00:00
|
|
|
Can be used in either \fBprogs.src\fP or separate compilation modes.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B \-\-cpp CPPSPEC
|
2007-04-11 15:10:00 +00:00
|
|
|
\*[cpp] execution command line.
|
2007-04-11 12:04:53 +00:00
|
|
|
See \fBCPP NAME\fP for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2003-10-24 21:23:03 +00:00
|
|
|
.B \-D, \-\-define SYMBOL[=VAL]
|
2004-02-09 16:51:06 +00:00
|
|
|
Define a symbol for the preprocessor, if it is in use.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B \-E
|
2010-01-13 06:42:26 +00:00
|
|
|
Only preprocess.
|
2007-04-11 12:04:53 +00:00
|
|
|
No compilation or linking is done.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2012-07-14 07:32:48 +00:00
|
|
|
.B \-\-extended
|
|
|
|
Allow extended keywords in traditional mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2012-07-14 07:32:48 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-F, \-\-files
|
2007-04-11 12:04:53 +00:00
|
|
|
Generate \fIfiles.dat\fP.
|
|
|
|
This list is created by checking the parameters to the precache_* functions.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2012-11-21 11:50:45 +00:00
|
|
|
.B \-\-frames
|
|
|
|
Generate \fI<source>.frame\fP files.
|
|
|
|
For each source file (listed either on the command line, or in
|
|
|
|
\fBprogs.src\fP, write a file whose name is the base name of the source
|
|
|
|
file with an extension of \fB.frame\fP, and contains a list of frame macro
|
|
|
|
names with their associated frame numbers. Eg, \fBplayer.qc\fP will produce
|
|
|
|
\fBplayer.frame\fPa. Note that files that do not create frame macros will
|
|
|
|
not generate a frame file. At this time, the file is always written to the
|
|
|
|
current directory.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2012-11-21 11:50:45 +00:00
|
|
|
.TP
|
2003-05-15 18:53:45 +00:00
|
|
|
.B \-g
|
2007-04-11 12:04:53 +00:00
|
|
|
Generate debugging info.
|
|
|
|
Synonym for \fB\-\-code debug\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-h, \-\-help
|
|
|
|
Show summary of options.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
2004-02-13 04:46:50 +00:00
|
|
|
.B \-I DIR
|
2003-05-16 00:08:20 +00:00
|
|
|
Add DIR to the list of directories for the preprocessor to search when looking
|
|
|
|
for include files.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
2004-02-13 04:46:50 +00:00
|
|
|
.B \-\-include FILE
|
2007-04-10 13:00:21 +00:00
|
|
|
Process FILE as if \fB#include "FILE"\fP appeared as the first line of the
|
2007-04-12 07:42:22 +00:00
|
|
|
primary source file.
|
|
|
|
See the \*[cpp] man page (\fB\-include\fP) for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2004-02-13 04:46:50 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-L DIR
|
2007-04-11 10:48:04 +00:00
|
|
|
Add DIR to the search path used for finding libraries specified with \fB-l\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
|
|
|
.B \-l LIB
|
|
|
|
Add libLIB.a to the list of libraries to be used for resolving undefined
|
2007-04-12 07:42:22 +00:00
|
|
|
symbols.
|
|
|
|
\*[qfcc] expects libraries to be \fBpak\fP files of \*[qfcc]
|
|
|
|
object files built using the \fBpak\fP utility.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B \-M, \-MD, \-MMD
|
2007-04-12 07:42:22 +00:00
|
|
|
Generate dependency info.
|
|
|
|
Dependent on \*[cpp] version, so check \*[cpp]'s documentation.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2012-01-04 04:17:57 +00:00
|
|
|
.B \-\-no\-default\-paths
|
|
|
|
Do not use default paths for include files or libraries.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2012-01-04 04:17:57 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-N, \-\-notice OPTION,...
|
2007-04-12 07:42:22 +00:00
|
|
|
Set notice options.
|
|
|
|
See \fBNOTICE OPTIONS\fP for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-16 00:08:20 +00:00
|
|
|
.TP
|
2004-04-28 04:49:15 +00:00
|
|
|
.B \-o, \-\-output\-file FILE
|
2003-05-15 21:18:51 +00:00
|
|
|
Specify output file name.
|
2007-04-12 07:42:22 +00:00
|
|
|
In \fBprogs.src\fP mode, this overrides the output file in \*[progs.src].
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2012-05-02 15:03:13 +00:00
|
|
|
.B \-\-progdefs
|
2012-05-02 15:22:24 +00:00
|
|
|
Generate \fIprogdefs.h\fP. Forces \fB\-\-code crc\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2012-05-02 15:03:13 +00:00
|
|
|
.TP
|
2003-05-15 18:53:45 +00:00
|
|
|
.B \-P, \-\-progs\-src FILE
|
2007-04-11 15:10:00 +00:00
|
|
|
File to use instead of \*[progs.src].
|
|
|
|
No effect in separate compilation mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2013-01-08 07:19:40 +00:00
|
|
|
.B \-\-qccx\-escapes
|
2009-12-25 07:59:25 +00:00
|
|
|
Use QCCX escape sequences instead of standard C/QuakeForge sequences in
|
|
|
|
strings. See \fBESCAPE SEQUENCES\fP for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
2003-05-15 18:53:45 +00:00
|
|
|
.B \-p, \-\-strip\-path NUM
|
2007-04-11 15:10:00 +00:00
|
|
|
Strip NUM leading path elements from file names.
|
|
|
|
eg. -p 3 will strip the
|
2007-04-11 12:04:53 +00:00
|
|
|
.I ../../../
|
|
|
|
from
|
|
|
|
.I ../../../src/foo.r
|
|
|
|
when embedding the source file name in the output code.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-q, \-\-quiet
|
2007-04-11 15:10:00 +00:00
|
|
|
Inhibit some of \*[qfcc]'s normal output.
|
|
|
|
Specifying this option multiple times further inhibits \*[qfcc]'s output.
|
|
|
|
Counteracts the effects of \fB-v\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.TP
|
2007-04-11 10:48:04 +00:00
|
|
|
.B \-r, \-\-relocatable
|
2007-04-11 12:04:53 +00:00
|
|
|
Incremental linking.
|
|
|
|
Generate a larger object file from other object files and libraries.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2003-05-15 18:53:45 +00:00
|
|
|
.B \-S, \-\-save\-temps
|
|
|
|
Do not delete temporary files.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-s, \-\-source DIR
|
2007-04-11 15:10:00 +00:00
|
|
|
Look for \*[progs.src] in \fBDIR\fP instead of the current directory.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B \-\-traditional
|
2007-04-11 12:04:53 +00:00
|
|
|
Use traditional QuakeC syntax, semantics and \*(lqbugs\*(rq.
|
|
|
|
Also implies the \fBv6only\fP, \fBno-short-circuit\fP and
|
|
|
|
\fBno-local-merging\fP code generation options (see
|
|
|
|
\fBCODE GENERATION OPTIONS\fP).
|
|
|
|
This is the default when using \fBprogs.src\fP mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2003-10-24 21:23:03 +00:00
|
|
|
.B \-U, \-\-undefine SYMBOL
|
|
|
|
Undefine a preprocessor symbol, if the preprocessor is in use.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-V, \-\-version
|
2007-04-11 15:10:00 +00:00
|
|
|
Show the version of \*[qfcc].
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-v, \-\-verbose
|
|
|
|
Display more output than usual.
|
2007-04-11 15:10:00 +00:00
|
|
|
Specifying this option multiple times further increases \*[qfcc]'s output.
|
|
|
|
Counteracts the effects of \fB-q\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
2003-05-16 00:08:20 +00:00
|
|
|
.B \-W, \-\-warn OPTION,...
|
2007-04-11 12:04:53 +00:00
|
|
|
Set warning options.
|
|
|
|
See \fBWARNING OPTIONS\fP for details.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B \-z
|
2007-04-11 12:04:53 +00:00
|
|
|
Compress object files when writing them.
|
|
|
|
This is especially useful when creating libraries, especially if using the
|
|
|
|
object oriented features, but can be quite slow.
|
2007-04-11 15:10:00 +00:00
|
|
|
This has no effect when creating \fBprogs.dat\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.SH "CODE GENERATION OPTIONS"
|
2001-10-26 23:55:42 +00:00
|
|
|
Code generation options are processed in the order of their appearance on the
|
2007-04-11 12:04:53 +00:00
|
|
|
command line.
|
|
|
|
Unsupported options are ignored.
|
2007-04-11 15:10:00 +00:00
|
|
|
The following options are supported by \*[qfcc]'s \fB\-\-code\fP argument:
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
|
|
|
.B cow
|
2007-04-11 12:04:53 +00:00
|
|
|
Allow assignment to initialized globals.
|
|
|
|
In Quake-C and Ruamoko, a global that has been initialized to a value is not
|
|
|
|
a variable, but a named constant.
|
|
|
|
However, \fBqcc\fP never really enforced this.
|
2007-04-11 15:10:00 +00:00
|
|
|
The \fBcow\fP option allows \*[qfcc] to gracefully cope with QuakeC source
|
2007-04-11 12:04:53 +00:00
|
|
|
that assigns values to initialized globals in this manner.
|
|
|
|
(also known as \*(lqcopy on write\*(rq\(emnever mind the bovine connotations)
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B cpp
|
2007-04-11 15:10:00 +00:00
|
|
|
Preprocess all input files with \*[cpp].
|
|
|
|
This includes the \*[progs.src] file when used.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2012-05-02 15:22:24 +00:00
|
|
|
.B crc
|
|
|
|
Write the CRC of \fBprogdefs.h\fP to \*(lqprogs.dat\*(rq. Default for v6 progs,
|
|
|
|
otherwise defaults to off. However, \fB\-\-progdefs\fP has the effect of
|
|
|
|
forcing this option.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2012-05-02 15:22:24 +00:00
|
|
|
.TP
|
2001-10-26 23:55:42 +00:00
|
|
|
.B debug
|
2007-04-11 12:04:53 +00:00
|
|
|
Generate debug code for QuakeForge engines.
|
|
|
|
The QuakeForge engine has the ability to load line number and other debugging
|
|
|
|
information for use in diagnosing progs crashes.
|
2007-04-11 15:10:00 +00:00
|
|
|
This option tells \*[qfcc] to generate this information.
|
2007-04-11 12:04:53 +00:00
|
|
|
It is written to a secondary file with the extension \*(lqsym\*(rq\(emif your
|
|
|
|
output file is \*(lqprogs.dat\*(rq, the symbol file will be
|
|
|
|
\*(lqprogs.sym\*(rq.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B fast\-float
|
2007-04-11 12:04:53 +00:00
|
|
|
Use float values directly in \*(lqif\*(rq statements.
|
|
|
|
Defaults to on.
|
2007-04-11 15:10:00 +00:00
|
|
|
This option is always enabled when using version 6 progs (\fBv6only\fP is in
|
|
|
|
effect).
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B local-merging
|
|
|
|
Clump the local variables from all functions into one block of data the size
|
|
|
|
of the largest group of locals, resulting in large savings of global data
|
2007-04-11 12:04:53 +00:00
|
|
|
space.
|
|
|
|
When off, each function's local variable block is separate from the others,
|
|
|
|
preserving the behaviour of traditional \fBqcc\fP, but using much more global
|
|
|
|
data.
|
2007-04-11 15:10:00 +00:00
|
|
|
This can be a problem because instructions can access addresses up to 32767 in
|
|
|
|
older servers or 65535 in most modern servers.
|
2007-04-11 12:04:53 +00:00
|
|
|
Defaults to off for traditional mode, and on for advanced mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2003-10-22 08:27:38 +00:00
|
|
|
.B short\-circuit
|
2007-04-11 12:04:53 +00:00
|
|
|
Generate short circuit code for logical operators (\fB&&\fP and \fB||\fP).
|
|
|
|
For \fBA && B\fP, if \fBA\fP is false, the expression is known to be false and
|
|
|
|
the code for \fBB\fP will not be executed.
|
|
|
|
Similar for \fBA || B\fP, but if \fBA\fP is true, the expression is known to
|
|
|
|
be true and the code for \fBB\fP will not be executed.
|
|
|
|
Defaults to off for traditional mode, and on for advanced mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-10-22 08:27:38 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B single-cpp
|
2007-04-11 15:10:00 +00:00
|
|
|
In \fBprogs.src\fP mode, when \*[cpp] is used, produce an intermediate file
|
2007-04-11 12:04:53 +00:00
|
|
|
that is a series of \fB#include\fP directives, one for each source file.
|
2007-04-11 15:10:00 +00:00
|
|
|
This file is then passed to \*[cpp] and the resulting output is compiled in
|
2007-04-11 12:04:53 +00:00
|
|
|
one go.
|
|
|
|
This results in preprocessor directives in early files affecting later files,
|
|
|
|
as would be expected in \fBprogs.src\fP mode.
|
|
|
|
Without this option, each source file is independent with respect to the
|
|
|
|
preprocessor.
|
2007-04-11 15:10:00 +00:00
|
|
|
Has no effect in separate compilation mode.
|
2007-04-11 12:04:53 +00:00
|
|
|
Defaults to on.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2004-04-27 20:24:37 +00:00
|
|
|
.TP
|
2005-06-10 07:31:25 +00:00
|
|
|
.B vector\-calls
|
2007-04-11 15:10:00 +00:00
|
|
|
When a function is passed a constant vector, this causes the vector to be
|
|
|
|
passed using three float copy instructions instead of one vector copy
|
|
|
|
instruction.
|
2007-04-11 12:04:53 +00:00
|
|
|
This can save a good number of pr_globals where those vectors contain many
|
|
|
|
duplicate coordinates but do not match entirely.
|
|
|
|
However, this will generate slower code for such calls.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2005-06-10 07:31:25 +00:00
|
|
|
.TP
|
2011-03-07 01:21:40 +00:00
|
|
|
.B vector\-components
|
|
|
|
Create extra symbols for accessing the components of a vector variable or
|
|
|
|
field. For example, \fBvector vel\fP will also create \fBvel_x\fP,
|
|
|
|
\fBvel_y\fP, and \fBvel_z\fP. Defaults to on for traditional code and off
|
|
|
|
for advanced.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2011-03-07 01:21:40 +00:00
|
|
|
.TP
|
2001-08-31 16:43:26 +00:00
|
|
|
.B v6only
|
|
|
|
Restrict the compiler to only version 6 progs (original Quake/QuakeWorld)
|
2007-04-11 12:04:53 +00:00
|
|
|
features.
|
|
|
|
This means that the compiled data file should be able to run on older servers,
|
|
|
|
as long as you have not used any QuakeForge-specific built-in functions.
|
2007-04-11 15:10:00 +00:00
|
|
|
Also disables compiler features (such as integers and string manipulation
|
|
|
|
support) that require extensions.
|
2007-04-11 12:04:53 +00:00
|
|
|
Defaults to on for traditional mode and off for advanced mode.
|
2010-01-13 06:26:50 +00:00
|
|
|
.PP
|
|
|
|
Any of the above can be prefixed with \fBno\-\fP to negate its meaning.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.SH "WARNING OPTIONS"
|
2001-10-26 23:55:42 +00:00
|
|
|
Warning options are processed in the order of their appearance on the command
|
2007-04-11 12:04:53 +00:00
|
|
|
line.
|
|
|
|
Unsupported options are ignored.
|
2007-04-11 15:10:00 +00:00
|
|
|
The following options are supported by \*[qfcc]'s \fB\-\-warn\fP argument:
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2001-10-26 23:55:42 +00:00
|
|
|
.B cow
|
2007-04-11 12:04:53 +00:00
|
|
|
Emit a warning when the source assigns a value to a named constant.
|
|
|
|
See the description of the \fBcow\fP code generation option above for a
|
2007-04-12 07:42:22 +00:00
|
|
|
description of what this means.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B error
|
|
|
|
Promote warnings to errors.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B executable
|
|
|
|
Emit a warning when non-executable statements (eg, \fB==\fP used for
|
|
|
|
assignment) are encountered.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B initializer
|
|
|
|
Emit a warning when too many structure/array initializer elements are given.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B integer-divide
|
|
|
|
Emit a warning when both constants in a division operation are integers.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2003-07-29 18:31:12 +00:00
|
|
|
.B interface\-check
|
|
|
|
Emit a warning when a method is declared in an implementation but not in the
|
|
|
|
interface for a class.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-07-29 18:31:12 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B precedence
|
|
|
|
Emit a warning when potentially ambiguous logic is used without parentheses.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2010-02-20 12:01:49 +00:00
|
|
|
.B redeclared
|
|
|
|
Emit a warning when a local variable is redeclared.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2010-02-20 12:01:49 +00:00
|
|
|
.TP
|
2013-06-26 00:08:51 +00:00
|
|
|
.B switch
|
|
|
|
Emit a warning when an enum value is not handled in a switch statement that
|
|
|
|
tests an enum.
|
|
|
|
Using a default label will cause all otherwise unhandled enum values to be
|
|
|
|
handled (for good or evil).
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2013-06-26 00:08:51 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B traditional
|
|
|
|
Emit a warning when code that should be an error is allowed by traditional
|
2007-04-11 12:04:53 +00:00
|
|
|
\fBqcc\fP.
|
|
|
|
Has effect only in traditional mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2002-01-05 18:46:05 +00:00
|
|
|
.B undef\-function
|
2001-08-31 16:43:26 +00:00
|
|
|
Emit a warning when a function is called, but has not yet been defined.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.TP
|
2007-04-10 13:00:21 +00:00
|
|
|
.B unimplemented
|
|
|
|
Emit a warning when a class method has not been implemented.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
|
|
|
.B unused
|
|
|
|
Emit a warning for unused local variables.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2007-04-10 13:00:21 +00:00
|
|
|
.TP
|
2002-01-05 18:46:05 +00:00
|
|
|
.B uninited\-var
|
2007-04-10 13:00:21 +00:00
|
|
|
Emit a warning when a variable is read from that has not been initialized to a
|
2001-10-26 23:55:42 +00:00
|
|
|
value.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2002-01-05 18:46:05 +00:00
|
|
|
.B vararg\-integer
|
2001-08-31 16:43:26 +00:00
|
|
|
Emit a warning when a function that takes a variable number of arguments is
|
|
|
|
passed a constant of an integer type.
|
2001-10-26 23:55:42 +00:00
|
|
|
.PP
|
2007-04-11 12:04:53 +00:00
|
|
|
Any of the above can be prefixed with \fBno\-\fP to negate its meaning.
|
|
|
|
There are also two special options:
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
|
|
|
.B all
|
|
|
|
Turns on all warning options except \fBerror\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
|
|
|
.B none
|
|
|
|
Turns off all warning options except \fBerror\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.SH "NOTICE OPTIONS"
|
|
|
|
Notices are used to flag code constructs that may have changed semantics but
|
2007-04-11 12:04:53 +00:00
|
|
|
shouldn't be treated as warnings.
|
|
|
|
They are also used for internal debugging purposes, so if you see any cryptic
|
|
|
|
notices, please report them as a bug (normal notices should be fairly
|
|
|
|
self-explanatory).
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B none
|
|
|
|
Silences all notice messages.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B warn
|
2007-04-11 12:04:53 +00:00
|
|
|
Promote notices to warnings.
|
|
|
|
If warnings are being treated as errors, so will notices.
|
|
|
|
Disabling warnings has no effect on this option.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.SH "CPP NAME"
|
2007-04-11 15:10:00 +00:00
|
|
|
When preprocessing source files, \*[qfcc] calls \*[cpp] (the C
|
2007-04-11 12:04:53 +00:00
|
|
|
preprocessor) with a configurable command line.
|
|
|
|
This is useful when you wish to use an alternative preprocessor (though it
|
2007-04-11 15:10:00 +00:00
|
|
|
must be command line compatible with \*[cpp]) or when \*[qfcc] has been
|
|
|
|
misconfigured to call \*[cpp] incorrectly for your operating system.
|
2007-04-11 12:04:53 +00:00
|
|
|
If the latter is the case, please report the details (operating system,
|
|
|
|
detection methods, correct execution specification).
|
|
|
|
The base default execution spec (on most Linux systems) is
|
|
|
|
\fBcpp %d -o %o %i\fP.
|
|
|
|
This spec is similar in concept to a \fBprintf\fP string.
|
|
|
|
The name of the program may be either absolute (eg \fB/lib/cpp\fP) or relative
|
|
|
|
as the \fBPATH\fP will be searched.
|
|
|
|
Available substitutions:
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B %d
|
2004-04-28 04:49:15 +00:00
|
|
|
Mainly for defines (\-D, \-U and \-I) but \fB%d\fP will be replaced by all
|
2007-04-11 15:10:00 +00:00
|
|
|
\*[cpp] options that \*[qfcc] passes to \*[cpp]
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B %o
|
2007-04-11 12:04:53 +00:00
|
|
|
This will be replaced by the output file path.
|
2007-04-11 15:10:00 +00:00
|
|
|
Could be either absolute or relative, depending on whether \*[qfcc] is
|
2007-04-11 12:04:53 +00:00
|
|
|
deleting temporary files or not.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2003-05-15 18:53:45 +00:00
|
|
|
.TP
|
|
|
|
.B %i
|
2007-04-11 12:04:53 +00:00
|
|
|
This will be replaced by the input file path.
|
2007-04-11 15:10:00 +00:00
|
|
|
Generally as given to \*[qfcc].
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2007-04-11 15:10:00 +00:00
|
|
|
.SH "COMPILATION MODES"
|
|
|
|
\*[qfcc] has two, mutually exclusive, modes of operation: \fBprogs.src\fP
|
|
|
|
mode and \*(lqseparate compilation\*(rq mode.
|
|
|
|
.SS "progs.src mode"
|
|
|
|
This is the traditional method of compiling QuakeC programs.
|
|
|
|
It is selected when no file arguments are given to \*[qfcc].
|
|
|
|
Note that the \fB-lLIB\fP option is considered to be a file argument.
|
|
|
|
.P
|
2007-04-12 07:42:22 +00:00
|
|
|
In this mode, the file \*[progs.src] is used to specify the output file name
|
|
|
|
and the input source files.
|
2007-04-11 15:10:00 +00:00
|
|
|
While it is customary to write each file name on a separate line, file names
|
|
|
|
are really just white-space separated strings (use double quotes around files
|
|
|
|
with spaces, though using files with spaces is a gibbing offence).
|
|
|
|
\fB//\fP is used to denote a comment.
|
|
|
|
The comment extends to the end of the current line.
|
|
|
|
The first file name in the file specified the output file name.
|
|
|
|
This may be overridden using the \fB-o\fP option.
|
|
|
|
All subsequent file names specify QuakeC source files.
|
|
|
|
.P
|
|
|
|
The source files are cumulatively compiled in the order they are listed in
|
2007-04-12 07:42:22 +00:00
|
|
|
\*[progs.src].
|
2007-04-11 15:10:00 +00:00
|
|
|
Cumulatively compiled means that all symbols other than frame macros defined in
|
|
|
|
earlier source files are visible in later source files.
|
|
|
|
Once the all source files have been compiled, the finished program is written
|
|
|
|
to the output file as a normal \fIprogs.dat\fP file.
|
|
|
|
.P
|
|
|
|
If the \fB-c\fP option is given, instead of a \fIprogs.dat\fP file, an object
|
2007-04-12 07:42:22 +00:00
|
|
|
file is written.
|
|
|
|
This object file can then be linked against other object files
|
|
|
|
to produce the \fIprogs.dat\fP file.
|
|
|
|
This is useful when mod extensions are in library form and converting the main
|
|
|
|
mod from \fBprogs.src\fP style to separate compilation is undesirable.
|
2007-04-11 15:10:00 +00:00
|
|
|
.P
|
|
|
|
\fBprogs.src\fP mode implies \fB--traditional\fP.
|
2007-04-12 07:42:22 +00:00
|
|
|
However, this can be overridden using \fB--advanced\fP.
|
2007-04-11 15:10:00 +00:00
|
|
|
.P
|
2007-04-12 07:42:22 +00:00
|
|
|
When \*[cpp] has not been disabled, \*[progs.src] is first passed through
|
|
|
|
\*[cpp].
|
2007-04-11 15:10:00 +00:00
|
|
|
The result is then parsed as above, but unless the \fBno-single-cpp\fP code
|
|
|
|
option has been given, rather than compiling each source file, an intermediate
|
|
|
|
file is generated containing a series of frame macro reset and \fB#include\fP
|
|
|
|
directives, one for each file.
|
2007-04-12 07:42:22 +00:00
|
|
|
This intermediate file is then passed to \*[cpp] and the resulting single file
|
2007-04-12 10:53:38 +00:00
|
|
|
containing all of the preprocessed source code is then compiled.
|
2007-04-11 15:10:00 +00:00
|
|
|
.SS "\*(lqseparate compilation\*(rq mode"
|
2007-04-12 07:42:22 +00:00
|
|
|
This mode is more generally useful.
|
|
|
|
It is particularly well suited to building object libraries for use in other
|
|
|
|
programs.
|
2007-04-12 10:53:38 +00:00
|
|
|
Separate compilation mode is automatically selected when any file arguments
|
2007-04-12 07:42:22 +00:00
|
|
|
(including \fB-lLIB\fP) are given on the command line.
|
|
|
|
.P
|
|
|
|
Each file argument is processed in the order given.
|
|
|
|
Files ending in \fI.r\fP, \fI.qc\fP, or \fI.c\fP (part of an experimental
|
|
|
|
hack to put qfcc support into automake) are treated as sources and compiled
|
|
|
|
to object file.
|
|
|
|
All other files (including \fB-lLIB\fP) are passed untouched to the linker
|
|
|
|
unless the \fB-c\fP is given.
|
|
|
|
If \fB-c\fP is given, then object files are ignored and the linking stage will
|
|
|
|
be skipped.
|
|
|
|
Each source file is fully independent of the others.
|
|
|
|
When linking (\fB-c\fP has not been given), any generated object files will be
|
|
|
|
deleted unless \fB-S\fP is on the command line.
|
|
|
|
However, no object file given on the command line will be deleted.
|
|
|
|
.P
|
2007-04-12 10:53:38 +00:00
|
|
|
When linking, if the \fB-r\fP option is given, instead of the output file being
|
|
|
|
a normal progs file, it will be an object file that can be linked against other
|
|
|
|
object files.
|
|
|
|
.P
|
2007-04-12 07:42:22 +00:00
|
|
|
While separate compilation mode implies \fB--advanced\fP, this can be
|
|
|
|
overridden using \fB--traditional\fP.
|
|
|
|
.P
|
|
|
|
When using \*[cpp], each source file is passed through the preprocessor
|
|
|
|
individually.
|
|
|
|
Each file is truly independent of any other file on the command line.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.SH "ESCAPE SEQUENCES"
|
|
|
|
\*[qfcc] supports a variety of string escape sequences. This includes those of
|
|
|
|
\fBqcc\fP (which are a subset of those in standard C), standard C and
|
|
|
|
\fBqccx\fP. There are some conflicts between the escape sequences, but
|
|
|
|
\fB\-\-qccx\-escapes\fP selects which set to use.
|
2018-08-19 10:31:52 +00:00
|
|
|
.SS Standard escape sequences:
|
|
|
|
These are the supported escape sequences from standard C, with the addition of
|
|
|
|
\(rse (escape), which would be nice if it was in standard C.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
2018-08-19 10:31:52 +00:00
|
|
|
.B \(rsa
|
|
|
|
Bell character (not in quake engines). Equivalent to \(rsx07.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rsb
|
|
|
|
Backspace character (not in quake engines). Equivalent to \(rsx08. This
|
|
|
|
conflicts with \fBqccx\fP. In \fBqccx\fP, this toggles bronze characters. Use
|
|
|
|
\fB\-\-qccx\-escapes\fP to select \fBqccx\fP behaviour.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rse
|
|
|
|
Escape character (not in quake engines). Equivalent to \(rsx1b. Not actually
|
|
|
|
standard, but it should be.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rsf
|
|
|
|
Formfeed character (not in quake engines). Equivalent to \(rsx0c.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rsn
|
|
|
|
Line feed.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
2018-08-19 10:31:52 +00:00
|
|
|
.B \(rsr
|
|
|
|
Carriage return. Equivalent to \(rsx0d.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rst
|
|
|
|
Tab character. Equivalent to \(rsx09.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rsv
|
|
|
|
Vertical tab. Equivalent to \(rsx0b.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rs\(rs
|
|
|
|
Backslash.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs\'
|
|
|
|
Single quote.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rs"
|
|
|
|
Double quote.
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rs?
|
|
|
|
Question mark. Avoids trigraphs in standard C, but supported for compatibility.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs0-7
|
2010-01-13 06:22:33 +00:00
|
|
|
Octal character code, up to three digits. This conflicts with \fBqccx\fP. In
|
|
|
|
\fBqccx\fP, this produces gold digits. Use \fB\-\-qccx\-escapes\fP to select
|
|
|
|
\fBqccx\fP behaviour.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2010-01-13 06:22:33 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs8-9
|
|
|
|
Produce gold digits.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rsx0-9A-Fa-f
|
2010-01-13 06:22:33 +00:00
|
|
|
Hexadecimal character code, any number of digits, but only the least
|
|
|
|
significant byte will be used.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
.SS Quake character set extension escape sequences:
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rsb
|
2018-08-19 10:31:52 +00:00
|
|
|
Toggle bronze characters. Requires \fB\-\-qccx\-escapes\fP.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
2012-07-14 02:47:26 +00:00
|
|
|
.B \(rss
|
|
|
|
Toggle "bold" characters (add 0x80).
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs[
|
|
|
|
Gold [ character. Equivalent to \(rsx90.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs]
|
|
|
|
Gold ] character. Equivalent to \(rsx91.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs.
|
|
|
|
Center dot. Equivalent to \(rsx1c.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs<
|
|
|
|
Turn on "bold" characters (add 0x80). This conflicts with \fBqccx\fP. In
|
2018-08-19 10:31:52 +00:00
|
|
|
\fBqccx\fP, this produces the separator left end. Equivalent to \(rsx1d. Use
|
2009-12-25 07:59:25 +00:00
|
|
|
\fB\-\-qccx\-escapes\fP to select \fBqccx\fP behaviour.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs\-
|
2018-08-19 10:31:52 +00:00
|
|
|
Separator center. Equivalent to \(rsx1e.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs>
|
|
|
|
Turn off "bold" characters (add 0x80). This conflicts with \fBqccx\fP. In
|
2018-08-19 10:31:52 +00:00
|
|
|
\fBqccx\fP, this produces the separator right end. Equivalent to \(rsx1f. Use
|
2009-12-25 07:59:25 +00:00
|
|
|
\fB\-\-qccx\-escapes\fP to select \fBqccx\fP behaviour.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rs^
|
|
|
|
Make the next character "bold" (add 0x80).
|
|
|
|
|
|
|
|
.TP
|
|
|
|
.B \(rs0-9
|
|
|
|
Produce gold digits. Requires \fB\-\-qccx\-escapes\fP (except \(rs8 and \(rs9:
|
|
|
|
they are always available).
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs(
|
2018-08-19 10:31:52 +00:00
|
|
|
Slider left end. Equivalent to \(rsx80.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs=
|
|
|
|
Slider center. Equivalent to \(rsx81.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs)
|
2018-08-19 10:31:52 +00:00
|
|
|
Slider right end. Equivalent to \(rsx82.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.TP
|
|
|
|
.B \(rs{0-255}
|
2018-08-19 10:31:52 +00:00
|
|
|
Decimal character code. Quake specific as qccx added this to allow specifying
|
|
|
|
the character code directly as \(rs0-\(rs9 were already used for specifying
|
|
|
|
gold digits.
|
|
|
|
|
2009-12-25 07:59:25 +00:00
|
|
|
.P
|
|
|
|
\fB\-\-qccx\-escapes\fP has no effect on sequences that do not conflict.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2007-04-12 10:53:38 +00:00
|
|
|
.SH TRADITIONAL VS ADVANCED
|
|
|
|
Compared to \fBqcc\fP, \*[qfcc] has many advanced features and is much stricter
|
|
|
|
about type checking.
|
|
|
|
\*[qfcc] also uses the same operator semantics and precedence rules as
|
|
|
|
standard \fBC\fP.
|
|
|
|
Unfortunately, this means that most older QuakeC code will not compile, or even
|
|
|
|
worse, will compile incorrectly.
|
|
|
|
.P
|
|
|
|
To address this situation, \*[qfcc] has a \*(lqtraditional\*(rq mode for
|
|
|
|
compiling old progs.
|
|
|
|
This mode, enabled with \fB--traditional\fP or by default in \fBprogs.src\fP
|
|
|
|
mode, removes the new keywords required by \*[qfcc]'s advanced features,
|
|
|
|
converts new errors to warnings, some warnings to notices and inverts
|
|
|
|
precedence order where required (eg, (!var & flag)).
|
|
|
|
Traditional mode also affects several code generation options (as always, this
|
|
|
|
can be overridden):
|
|
|
|
.IP \(bu 4
|
|
|
|
code output is restricted to version 6 progs instructions
|
|
|
|
.IP \(bu 4
|
|
|
|
short circuit boolean logic is disabled
|
|
|
|
.IP \(bu 4
|
|
|
|
each function has a private area of data for its local variables (this wastes
|
|
|
|
a lot of data space).
|
|
|
|
.P
|
|
|
|
Advanced mode is simply \*[qfcc] in its natural state.
|
|
|
|
Using \fB--advanced\fP, \*[qfcc] can be put in to advanced mode while using the
|
|
|
|
\fBprogs.src\fP compilation mode.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-09-26 03:39:44 +00:00
|
|
|
.SH "FAQ"
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2001-12-14 05:33:00 +00:00
|
|
|
.B Where did the name Ruamoko come from?
|
2002-01-05 18:46:05 +00:00
|
|
|
In Maori mythology, Ruamoko is the youngest child of Ranginui, the
|
2007-04-11 12:04:53 +00:00
|
|
|
Sky-father, and Papatuanuku, the Earth-mother.
|
2007-04-12 07:42:22 +00:00
|
|
|
Ruamoko is the god of volcanoes and earthquakes.
|
2007-04-11 12:04:53 +00:00
|
|
|
For more information, see the Web site at <\fBhttp://maori.com/kmst1.htm\fP>.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-12-14 05:33:00 +00:00
|
|
|
.TP
|
2005-06-10 07:31:25 +00:00
|
|
|
.B qfcc hangs
|
2007-04-11 15:10:00 +00:00
|
|
|
This is almost always caused by qfcc incorrectly invoking \*[cpp].
|
2007-04-11 12:04:53 +00:00
|
|
|
Using the \fB--cpp\fP option (refer to the \fBCPP NAME\fP section above), the
|
2007-04-11 15:10:00 +00:00
|
|
|
correct method for invoking \*[cpp] can be specified.
|
|
|
|
Once you have found this, please send the correct \*[cpp] command line,
|
2007-04-11 12:04:53 +00:00
|
|
|
preferably along with the output of \fBconfig.guess\fP, to the team.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2005-06-10 07:31:25 +00:00
|
|
|
.TP
|
2001-09-26 03:39:44 +00:00
|
|
|
.B qfcc is singing a bad 80s rap song to me. What's going on?
|
2004-04-28 04:49:15 +00:00
|
|
|
\*(lqice ice baby\*(rq is QuakeForge-speak for \*(lqInternal Compiler
|
2007-04-11 12:04:53 +00:00
|
|
|
Error\*(rq.
|
2007-04-11 15:10:00 +00:00
|
|
|
It usually means there's a bug in \*[qfcc], so please report it to the team.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
2001-10-26 23:55:42 +00:00
|
|
|
.TP
|
2001-09-26 03:39:44 +00:00
|
|
|
.B qfcc is mooing at me. What's wrong with you people?
|
2007-04-11 12:04:53 +00:00
|
|
|
The compiler doesn't like being treated like a slab of beef.
|
|
|
|
Seriously, the code you are trying to compile is using constants as if they
|
|
|
|
weren't.
|
2002-01-05 18:46:05 +00:00
|
|
|
Normally, qfcc would just stop and tell the code to sit in the corner for a
|
|
|
|
while, but you told it not to do that by passing the \fBcow\fP option to
|
2007-04-11 12:04:53 +00:00
|
|
|
\fB\-\-code\fP, so it has its revenge by mooing out a warning.
|
|
|
|
Or something like that.
|
|
|
|
To disable the warning, pass \fBno-cow\fP to \fB\-\-warn\fP.
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-08-31 16:43:26 +00:00
|
|
|
.SH "FILES"
|
2007-04-11 12:04:53 +00:00
|
|
|
.I progs.src
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH "SEE ALSO"
|
2007-04-11 12:04:53 +00:00
|
|
|
.BR quakeforge (1),
|
|
|
|
.BR pak (1)
|
2018-08-19 10:31:52 +00:00
|
|
|
|
|
|
|
|
2001-02-24 06:58:54 +00:00
|
|
|
.SH AUTHORS
|
2001-12-14 05:33:00 +00:00
|
|
|
The original \fBqcc\fP program, for compiling the QuakeC language, was written
|
2007-04-11 12:04:53 +00:00
|
|
|
by Id Software, Inc.
|
|
|
|
The members of the QuakeForge Project have modified it to work with a new,
|
|
|
|
but very similar language called \fBRuamoko\fP.
|