]> gitweb.factorcode.org Git - factor.git/commitdiff
libclang: add more return types
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 18 Dec 2023 19:40:12 +0000 (13:40 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 18 Dec 2023 19:42:29 +0000 (13:42 -0600)
extra/libclang/libclang.factor

index a1bc9978fea9e9b1b693dc7f890bf42dedaff746..c734a9f221cdbf151d97675467c84b7fbb5c3d39 100644 (file)
@@ -128,10 +128,22 @@ STRUCT: malloced
     "struct " ?head drop
     {
         { [ dup "_Bool" = ] [ drop "bool" ] }
-        { [ dup "unsigned char" = ] [ drop "uchar" ] }
+        { [ "int8_t" ?head ] [ trim-blanks "char" prepend ] }
+        { [ "int16_t" ?head ] [ trim-blanks "short" prepend ] }
+        { [ "int32_t" ?head ] [ trim-blanks "int" prepend ] }
+        { [ "int64_t" ?head ] [ trim-blanks "longlong" prepend ] }
+        { [ "uint8_t" ?head ] [ trim-blanks "uchar" prepend ] }
+        { [ "uint16_t" ?head ] [ trim-blanks "ushort" prepend ] }
+        { [ "uint32_t" ?head ] [ trim-blanks "uint" prepend ] }
+        { [ "uint64_t" ?head ] [ trim-blanks "ulonglong" prepend ] }
+        { [ "signed char" ?head ] [ trim-blanks "char" prepend ] }
+        { [ "signed short" ?head ] [ trim-blanks "short" prepend ] }
+        { [ "signed int" ?head ] [ trim-blanks "int" prepend ] }
+        { [ "signed long" ?head ] [ trim-blanks "long" prepend ] }
         { [ "unsigned char" ?head ] [ trim-blanks "uchar" prepend ] }
-        { [ "unsigned int" ?head ] [ trim-blanks "uint" prepend ] }
         { [ "unsigned short" ?head ] [ trim-blanks "ushort" prepend ] }
+        { [ "unsigned int" ?head ] [ trim-blanks "uint" prepend ] }
+        { [ "unsigned long" ?head ] [ trim-blanks "ulong" prepend ] }
         { [ dup "(*)" swap subseq? ] [ drop "void*" ] }
         [ ]
     } cond ;