mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 03:39:28 +02:00
* fixed C->Pascal type translations
git-svn-id: trunk@14429 -
This commit is contained in:
parent
347d71db10
commit
919cf1151b
@ -29,7 +29,7 @@ class TObjPParser extends TPasCocoaParser {
|
||||
"unsigned char"=>"char", "short"=>"cshort", "double"=>"double", "long long"=>"clonglong",
|
||||
|
||||
// ??? new in instance var parser: (add to main section eventually)
|
||||
"signed char"=>"char", "uint64_t"=>"clonglong",
|
||||
"signed char"=>"char", "uint64_t"=>"qword",
|
||||
|
||||
// work-arounds - the type replacement needs regex to handle with spaces I guess
|
||||
"void*"=>"Pointer",
|
||||
@ -38,9 +38,9 @@ class TObjPParser extends TPasCocoaParser {
|
||||
"IBAction"=>"void", "IBOutlet"=>"",
|
||||
|
||||
// special pointers
|
||||
"const id *"=>"NSObjectArrayOfObjectsPtr", "Protocol *"=>"objc_protocol", "NSObject *"=>"NSObject",
|
||||
"const char *"=>"PChar", "const void *"=>"Pointer", "unsigned char *"=>"Pointer", "char *"=>"Pointer",
|
||||
"unsigned *"=>"Pointer", "unichar *"=>"PChar", "const unichar *"=>"PChar",
|
||||
"const id *"=>"NSObjectArrayOfObjectsPtr", "Protocol *"=>"Protocol", "NSObject *"=>"NSObject",
|
||||
"const char *"=>"PChar", "const void *"=>"Pointer", "unsigned char *"=>"Pointer", "char *"=>"PChar",
|
||||
"unsigned *"=>"Pointer", "unichar *"=>"PWideChar", "const unichar *"=>"PWideChar",
|
||||
);
|
||||
|
||||
// These methods require that the last parameter append a trailing underscore (if $trailing_underscore is on)
|
||||
@ -557,4 +557,4 @@ class TObjPParser extends TPasCocoaParser {
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user