Changeset b3ad342
- Timestamp:
- Feb 15, 2025, 10:50:57 PM (5 weeks ago)
- Branches:
- master
- Children:
- dcf8054
- Parents:
- ef9f11c
- Location:
- libcfa/prelude
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/Makefile.am
ref9f11c rb3ad342 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Wed Nov 1 21:09:25 202314 ## Update Count : 2 2113 ## Last Modified On : Sat Feb 15 12:17:19 2025 14 ## Update Count : 233 15 15 ############################################################################### 16 16 … … 47 47 48 48 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cfa ${srcdir}/prototypes.c 49 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk - f ${srcdir}/prototypes.awk > ${@}49 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -v wordsize="${AM_CFLAGS}" -f ${srcdir}/prototypes.awk > ${@} 50 50 51 51 prelude.cfa : prelude-gen.cc -
libcfa/prelude/prototypes.awk
ref9f11c rb3ad342 10 10 # Created On : Sat May 16 07:57:37 2015 11 11 # Last Modified By : Peter A. Buhr 12 # Last Modified On : Wed Nov 1 20:44:04 202313 # Update Count : 3712 # Last Modified On : Sat Feb 15 13:16:28 2025 13 # Update Count : 60 14 14 # 15 15 … … 30 30 types[i+=1] = "WINT"; vtypes[i] = "unsigned int" 31 31 types[i+=1] = "INT"; vtypes[i] = "int" 32 types[i+=1] = "ULONGLONG"; vtypes[i] = "unsigned long long "33 types[i+=1] = "ULONG"; vtypes[i] = "unsigned long "34 types[i+=1] = "UNSIGNED"; vtypes[i] = "unsigned "32 types[i+=1] = "ULONGLONG"; vtypes[i] = "unsigned long long int" 33 types[i+=1] = "ULONG"; vtypes[i] = "unsigned long int" 34 types[i+=1] = "UNSIGNED"; vtypes[i] = "unsigned int" 35 35 types[i+=1] = "COMPLEX_LONGDOUBLE"; vtypes[i] = "_Complex long double" 36 36 types[i+=1] = "COMPLEX_DOUBLE"; vtypes[i] = "_Complex double" … … 38 38 types[i+=1] = "LONGDOUBLEPTR"; vtypes[i] = "long double *" 39 39 types[i+=1] = "LONGDOUBLE"; vtypes[i] = "long double" 40 types[i+=1] = "LONGLONG"; vtypes[i] = "long long "41 types[i+=1] = "LONG"; vtypes[i] = "long "40 types[i+=1] = "LONGLONG"; vtypes[i] = "long long int" 41 types[i+=1] = "LONG"; vtypes[i] = "long int" 42 42 types[i+=1] = "DFLOAT32"; vtypes[i] = "__Unsupported" 43 43 types[i+=1] = "DFLOAT64"; vtypes[i] = "__Unsupported" … … 67 67 types[i+=1] = "STRING"; vtypes[i] = "char *" 68 68 types[i+=1] = "FILEPTR"; vtypes[i] = "struct _IO_FILE *" 69 types[i+=1] = "SIZE"; vtypes[i] = "unsigned long" 69 types[i+=1] = "SIZE"; vtypes[i] = "unsigned long int" 70 size_t = i; 70 71 types[i+=1] = "VAR"; vtypes[i] = "..." 71 72 types[i+=1] = "VALIST_ARG"; vtypes[i] = "__builtin_va_list" … … 74 75 types[i+=1] = "WORD"; vtypes[i] = "" 75 76 types[i+=1] = "SSIZE"; vtypes[i] = "long int" 77 ssize_t = i; 76 78 types[i+=1] = "PID"; vtypes[i] = "int" 77 79 types[i+=1] = "I16"; vtypes[i] = "__int128" 78 80 types[i+=1] = "I8"; vtypes[i] = "long long int" 79 81 types[i+=1] = "I4"; vtypes[i] = "int" 80 types[i+=1] = "I2"; vtypes[i] = "short "82 types[i+=1] = "I2"; vtypes[i] = "short int" 81 83 types[i+=1] = "I1"; vtypes[i] = "char" 82 84 N = i + 1 … … 92 94 93 95 END { 96 # variable wordsize passed from Makefile 97 if ( index( wordsize, "-m32" ) != 0 ) { # adjust size_t/ssize_t for 32-bit build 98 vtypes[size_t] = "unsigned int" 99 vtypes[ssize_t] = "signed int" 100 } # if 101 94 102 printf( "#define DEF_BUILTIN(ENUM, NAME, CLASS, TYPE, LIBTYPE, BOTH_P, FALLBACK_P, NONANSI_P, ATTRS, IMPLICIT, COND) TYPE(NAME)\n" ); 95 103 printf( "#define FUNC_SIMPLE(RETURN, NAME, ARGS...) RETURN NAME(ARGS);\n" );
Note: See TracChangeset
for help on using the changeset viewer.