History

gcc 3.3 compatibility fix for multi-line string literals

bellard committed 22 years ago

Commit c2ec76a1 parent 6b529841 file · +6 −0Browse files

Unified · Split

tcctest.c+6−0
@@ -16,6 +16,9 @@ · 15 unmodified lines
16 16
17#endif17#endif
18 18
19/* deprecated and no longer supported in gcc 3.3 */
20//#define ACCEPT_CR_IN_STRINGS
21
19/* __VA_ARGS__ and __func__ support */22/* __VA_ARGS__ and __func__ support */
20#define C99_MACROS23#define C99_MACROS
21 24
@@ -1679,6 +1682,8 @@ ntf("aaa=%d\n", 3); · 1657 unmodified lines
1679 pri\1682 pri\
1680\1683\
1681ntf("min=%d\n", 4);1684ntf("min=%d\n", 4);
1685
1686#ifdef ACCEPT_CR_IN_STRINGS
1682 printf("len1=%d\n", strlen("1687 printf("len1=%d\n", strlen("
1683"));1688"));
1684#ifdef CORRECT_CR_HANDLING1689#ifdef CORRECT_CR_HANDLING
@@ -1688,6 +1693,7 @@ ntf("min=%d\n", 4); · 3 unmodified lines
1688#endif1693#endif
1689 printf("len1=%d\n", strlen(" a1694 printf("len1=%d\n", strlen(" a
1690"));1695"));
1696#endif /* ACCEPT_CR_IN_STRINGS */
1691}1697}
1692 1698
1693int reltab[3] = { 1, 2, 3 };1699int reltab[3] = { 1, 2, 3 };

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