From 7e0bcbe68594efd637e0b8ead7986f75fa14c92a Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Wed, 2 Apr 2008 23:03:56 +0000 Subject: [PATCH] Adds parser tester. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@404 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../examples/statusitem/controller.pas | 1 + bindings/pascocoa/parser/objcparser.lpi | 303 +----------------- bindings/pascocoa/parser/testparser.sh | 1 + 3 files changed, 7 insertions(+), 298 deletions(-) create mode 100755 bindings/pascocoa/parser/testparser.sh diff --git a/bindings/pascocoa/examples/statusitem/controller.pas b/bindings/pascocoa/examples/statusitem/controller.pas index 7ba8e52f1..dd92c5936 100644 --- a/bindings/pascocoa/examples/statusitem/controller.pas +++ b/bindings/pascocoa/examples/statusitem/controller.pas @@ -75,6 +75,7 @@ constructor TMyController.Create; var fileName: CFStringRef; begin + { The class is registered on the Objective-C runtime before the NSObject constructor is called } if not CreateClassDefinition(Str_TMyController, Str_NSObject) then WriteLn('Failed to create objc class'); inherited Create; diff --git a/bindings/pascocoa/parser/objcparser.lpi b/bindings/pascocoa/parser/objcparser.lpi index e0f7d4a10..d291dc732 100755 --- a/bindings/pascocoa/parser/objcparser.lpi +++ b/bindings/pascocoa/parser/objcparser.lpi @@ -9,11 +9,11 @@ + - @@ -30,303 +30,22 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -340,16 +59,4 @@ - - - - - - - - - - - - diff --git a/bindings/pascocoa/parser/testparser.sh b/bindings/pascocoa/parser/testparser.sh new file mode 100755 index 000000000..6fc119871 --- /dev/null +++ b/bindings/pascocoa/parser/testparser.sh @@ -0,0 +1 @@ +./objcparser /System/Library/Frameworks/AppKit.framework/Headers/NSButton.h > NSButton.inc