History

Revert "use int for ssize_t, (u)intptr_t instead of long in stddef.h"

This reverts commit 52622c3c0365ad497ce1188e433ac5f0a721c283. Because 28b7c9 was right.

Matthias Gatto committed 9 years ago

Commit 4f15d081 parent c18fc952 files · +3 −10Browse files

Unified · Split

2 files
  1. include/stddef.h +1 −8
  2. libtcc.c +2 −2
include/stddef.h+1−8
@@ -2,18 +2,11 @@ · 1 unmodified line
22 #define _STDDEF_H
33
44 typedef __SIZE_TYPE__ size_t;
5+typedef __PTRDIFF_TYPE__ ssize_t;
56 typedef __WCHAR_TYPE__ wchar_t;
67 typedef __PTRDIFF_TYPE__ ptrdiff_t;
7−
8−#ifdef __ILP32__
9−typedef int ssize_t;
10−typedef int intptr_t;
11−typedef unsigned int uintptr_t;
12−#else
13−typedef __PTRDIFF_TYPE__ ssize_t;
148 typedef __PTRDIFF_TYPE__ intptr_t;
159 typedef __SIZE_TYPE__ uintptr_t;
16−#endif
1710
1811 #ifndef __int8_t_defined
1912 #define __int8_t_defined
libtcc.c+2−2
@@ -848,8 +848,8 @@ LIBTCCAPI TCCState *tcc_new(void) · 847 unmodified lines
848848 tcc_define_symbol(s, "__LP64__", NULL);
849849 #else
850850 /* Other 32bit systems. */
851− tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned long");
852− tcc_define_symbol(s, "__PTRDIFF_TYPE__", "long");
851+ tcc_define_symbol(s, "__SIZE_TYPE__", "unsigned int");
852+ tcc_define_symbol(s, "__PTRDIFF_TYPE__", "int");
853853 tcc_define_symbol(s, "__ILP32__", NULL);
854854 #endif
855855

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