History

- document -dumpversion - fixed a broken prototype

Urs Janssen committed 13 years ago

Commit cec76c81 parent 108b2874 files · +6 −3Browse files

Unified · Split

4 files
  1. lib/libtcc1.c +1 −1
  2. tcc-doc.texi +3 −0
  3. tcc.h +1 −1
  4. tccpp.c +1 −1
lib/libtcc1.c+1−1
@@ -162,7 +162,7 @@ static UDWtype __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp) · 161 unmodified lines
162162 n0 = nn.s.low;
163163 n1 = nn.s.high;
164164
165−#if !UDIV_NEEDS_NORMALIZATION
165+#if !defined(UDIV_NEEDS_NORMALIZATION)
166166 if (d1 == 0)
167167 {
168168 if (d0 > n1)
tcc-doc.texi+3−0
@@ -176,6 +176,9 @@ In a script, it gives the following header: · 175 unmodified lines
176176 #!/usr/local/bin/tcc -run -L/usr/X11R6/lib -lX11
177177 @end example
178178
179+@item -dumpversion
180+Print only the compiler version and nothing else.
181+
179182 @item -v
180183 Display TCC version.
181184
tcc.h+1−1
@@ -1105,7 +1105,7 @@ ST_FUNC void next_nomacro(void); · 1104 unmodified lines
11051105 ST_FUNC void next(void);
11061106 ST_INLN void unget_tok(int last_tok);
11071107 ST_FUNC void preprocess_init(TCCState *s1);
1108−ST_FUNC void preprocess_new();
1108+ST_FUNC void preprocess_new(void);
11091109 ST_FUNC int tcc_preprocess(TCCState *s1);
11101110 ST_FUNC void skip(int c);
11111111 ST_FUNC void expect(const char *msg);
tccpp.c+1−1
@@ -3042,7 +3042,7 @@ ST_FUNC void preprocess_init(TCCState *s1) · 3041 unmodified lines
30423042 s1->pack_stack_ptr = s1->pack_stack;
30433043 }
30443044
3045−ST_FUNC void preprocess_new()
3045+ST_FUNC void preprocess_new(void)
30463046 {
30473047 int i, c;
30483048 const char *p, *r;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t