diff options
| author | Urs Janssen <urs@hq.tin.org> | 2013-02-15 12:48:33 +0100 |
|---|---|---|
| committer | Urs Janssen <urs@hq.tin.org> | 2013-02-15 12:48:33 +0100 |
| commit | cec76c8b8a7a4077032a205bdb7dca70bb10be62 (patch) | |
| tree | dbb0cca22916caec5172b2ecb9d321c1f96bdc5a | |
| parent | 108b2876654bd5f64dd4a60fe1791cc939921625 (diff) | |
| download | tinycc-cec76c8b8a7a4077032a205bdb7dca70bb10be62.tar.gz tinycc-cec76c8b8a7a4077032a205bdb7dca70bb10be62.tar.bz2 | |
- document -dumpversion
- fixed a broken prototype
| -rw-r--r-- | lib/libtcc1.c | 2 | ||||
| -rw-r--r-- | tcc-doc.texi | 3 | ||||
| -rw-r--r-- | tcc.h | 2 | ||||
| -rw-r--r-- | tccpp.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 6964cd1..dacee28 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -162,7 +162,7 @@ static UDWtype __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp) n0 = nn.s.low; n1 = nn.s.high; -#if !UDIV_NEEDS_NORMALIZATION +#if !defined(UDIV_NEEDS_NORMALIZATION) if (d1 == 0) { if (d0 > n1) diff --git a/tcc-doc.texi b/tcc-doc.texi index 0d6e970..42ca806 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -176,6 +176,9 @@ In a script, it gives the following header: #!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11 @end example +@item -dumpversion +Print only the compiler version and nothing else. + @item -v Display TCC version. @@ -1105,7 +1105,7 @@ ST_FUNC void next_nomacro(void); ST_FUNC void next(void); ST_INLN void unget_tok(int last_tok); ST_FUNC void preprocess_init(TCCState *s1); -ST_FUNC void preprocess_new(); +ST_FUNC void preprocess_new(void); ST_FUNC int tcc_preprocess(TCCState *s1); ST_FUNC void skip(int c); ST_FUNC void expect(const char *msg); @@ -3042,7 +3042,7 @@ ST_FUNC void preprocess_init(TCCState *s1) s1->pack_stack_ptr = s1->pack_stack; } -ST_FUNC void preprocess_new() +ST_FUNC void preprocess_new(void) { int i, c; const char *p, *r; |
