History

#define __TINYC__ = version-number

grischka committed 17 years ago

Commit dd70d191 parent 5dadff31 file · +5 −1Browse files

Unified · Split

libtcc.c+5−1
@@ -1834,6 +1834,8 @@ static void tcc_cleanup(void) · 1833 unmodified lines
1834TCCState *tcc_new(void)1834TCCState *tcc_new(void)
1835{1835{
1836 TCCState *s;1836 TCCState *s;
1837 char buffer[100];
1838 int a,b,c;
1837 1839
1838 tcc_cleanup();1840 tcc_cleanup();
1839 1841
@@ -1889,7 +1891,9 @@ TCCState *tcc_new(void) · 49 unmodified lines
1889#endif1891#endif
1890#endif1892#endif
1891 /* tiny C specific defines */1893 /* tiny C specific defines */
1892 tcc_define_symbol(s, "__TINYC__", NULL);1894 sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);
1895 sprintf(buffer, "%d", a*10000 + b*100 + c);
1896 tcc_define_symbol(s, "__TINYC__", buffer);
1893 1897
1894 /* tiny C & gcc defines */1898 /* tiny C & gcc defines */
1895 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");1899 tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");

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