]> gitweb.factorcode.org Git - factor.git/commitdiff
libclang: trying to fix typedefs
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 23 Dec 2023 17:21:06 +0000 (11:21 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 23 Dec 2023 17:21:16 +0000 (11:21 -0600)
extra/libclang/libclang.factor

index c734a9f221cdbf151d97675467c84b7fbb5c3d39..12c36a17725192b76287e639b0703ac191bcf427 100644 (file)
@@ -221,7 +221,7 @@ STRUCT: malloced
     [ clang_getTypedefDeclUnderlyingType cxreturn-type>factor ]
     [ cursor-name ] bi
     2dup { [ and ] [ = ] } 2||
-    [ nip "C-TYPE: " "\n" surround ] [ " " glue "TYPEDEF: " "\n" surround ] if ;
+    [ nip "TYPEDEF: void* " "\n" surround ] [ " " glue "TYPEDEF: " "\n" surround ] if ;
 
 : field-visitor ( -- callback )
     [
@@ -235,7 +235,7 @@ STRUCT: malloced
                 append-malloced drop
                 CXChildVisit_Continue
             ] }
-            [ dup g...  3drop CXChildVisit_Recurse ]
+            [ dup g... 3drop CXChildVisit_Recurse ]
         } case
         gflush
     ] CXCursorVisitor ;
@@ -250,7 +250,7 @@ STRUCT: malloced
         reset-malloced "STRUCT: " " ;\n" surround
         append-malloced drop
     ] [
-        reset-malloced "C-TYPE: " "\n" surround
+        reset-malloced "TYPEDEF: void* " "\n" surround
         append-malloced drop
     ] if ;