Skip to content

Commit beab54d

Browse files
Merge pull request #80 from goblint/universal-character-names
Support for Universal Character Names, `char16_t`, and `char32_t` (part of C99/C11)
2 parents a4e3e80 + 61b65e5 commit beab54d

File tree

18 files changed

+1125
-109
lines changed

18 files changed

+1125
-109
lines changed

Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ $(OBJDIR)/machdep.ml : src/machdep-ml.c configure.ac Makefile.in
175175
@echo " sizeof_fun: int; (* Size of function *)" >> $@
176176
@echo " size_t: string; (* Type of \"sizeof(T)\" *)" >> $@
177177
@echo " wchar_t: string; (* Type of \"wchar_t\" *)" >> $@
178+
@echo " char16_t: string; (* Type of \"char16_t\" *)" >> $@
179+
@echo " char32_t: string; (* Type of \"char32_t\" *)" >> $@
178180
@echo " alignof_short: int; (* Alignment of \"short\" *)" >> $@
179181
@echo " alignof_int: int; (* Alignment of \"int\" *)" >> $@
180182
@echo " alignof_bool: int; (* Alignment of \"_Bool\" *)" >> $@

config.h.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
/* Define to 1 if you have the <sys/types.h> header file. */
4343
#undef HAVE_SYS_TYPES_H
4444

45+
/* Define to 1 if you have the <uchar.h> header file. */
46+
#undef HAVE_UCHAR_H
47+
4548
/* Define to 1 if you have the <unistd.h> header file. */
4649
#undef HAVE_UNISTD_H
4750

@@ -74,6 +77,12 @@
7477
backward compatibility; new code need not use it. */
7578
#undef STDC_HEADERS
7679

80+
/* Real integer type corresponding to char16_t. */
81+
#undef TYPE_CHAR16_T
82+
83+
/* Real integer type corresponding to char32_t. */
84+
#undef TYPE_CHAR32_T
85+
7786
/* Real integer type corresponding to size_t. */
7887
#undef TYPE_SIZE_T
7988

0 commit comments

Comments
 (0)