Skip to content

Commit

Permalink
Remove nonstandard defines from limits.h (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Mar 9, 2021
1 parent 67c27d9 commit 3f35b37
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
16 changes: 0 additions & 16 deletions libc/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
#define CHAR_MAX '\377'
#endif

#define SIZEOF_SHORT __SIZEOF_SHORT__
#define SIZEOF_INT __SIZEOF_INT__
#define SIZEOF_LONG __SIZEOF_LONG__
#define SIZEOF_LONG_LONG __SIZEOF_LONG_LONG__
#define SIZEOF_POINTER __SIZEOF_POINTER__
#define SIZEOF_PTRDIFF_T __SIZEOF_PTRDIFF_T__
#define SIZEOF_SIZE_T __SIZEOF_SIZE_T__
#define SIZEOF_WCHAR_T __SIZEOF_WCHAR_T__
#define SIZEOF_WINT_T __SIZEOF_WINT_T__
#define SIZEOF_FLOAT __SIZEOF_FLOAT__
#define SIZEOF_FLOAT128 __SIZEOF_FLOAT128__
#define SIZEOF_DOUBLE __SIZEOF_DOUBLE__
#define SIZEOF_FLOAT80 __SIZEOF_FLOAT80__
#define SIZEOF_LONG_DOUBLE __SIZEOF_LONG_DOUBLE__
#define SIZEOF_INTMAX __SIZEOF_INTMAX__

#define SCHAR_MAX __SCHAR_MAX__
#define SHRT_MAX __SHRT_MAX__
#define INT_MAX __INT_MAX__
Expand Down
15 changes: 0 additions & 15 deletions tool/emacs/c.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1705,21 +1705,6 @@ Keywords={
"IMAGE_BASE_VIRTUAL",
"IMAGE_BASE_REAL",
"IMAGE_BASE_PHYSICAL",
"SIZEOF_SHORT",
"SIZEOF_INT",
"SIZEOF_LONG",
"SIZEOF_LONG_LONG",
"SIZEOF_POINTER",
"SIZEOF_PTRDIFF_T",
"SIZEOF_SIZE_T",
"SIZEOF_WCHAR_T",
"SIZEOF_WINT_T",
"SIZEOF_FLOAT",
"SIZEOF_FLOAT128",
"SIZEOF_DOUBLE",
"SIZEOF_FLOAT80",
"SIZEOF_LONG_DOUBLE",
"SIZEOF_INTMAX",
"SCHAR_MAX",
"SHRT_MAX",
"INT_MAX",
Expand Down
15 changes: 0 additions & 15 deletions tool/emacs/cosmo-c-constants.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,6 @@
'("IMAGE_BASE_VIRTUAL"
"IMAGE_BASE_REAL"
"IMAGE_BASE_PHYSICAL"
"SIZEOF_SHORT"
"SIZEOF_INT"
"SIZEOF_LONG"
"SIZEOF_LONG_LONG"
"SIZEOF_POINTER"
"SIZEOF_PTRDIFF_T"
"SIZEOF_SIZE_T"
"SIZEOF_WCHAR_T"
"SIZEOF_WINT_T"
"SIZEOF_FLOAT"
"SIZEOF_FLOAT128"
"SIZEOF_DOUBLE"
"SIZEOF_FLOAT80"
"SIZEOF_LONG_DOUBLE"
"SIZEOF_INTMAX"
"CHAR_MAX"
"SCHAR_MAX"
"SHRT_MAX"
Expand Down

0 comments on commit 3f35b37

Please sign in to comment.