diff options
Diffstat (limited to 'packages/cocoaint/utils/source/objp.php')
| -rw-r--r-- | packages/cocoaint/utils/source/objp.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/cocoaint/utils/source/objp.php b/packages/cocoaint/utils/source/objp.php index f268414b9c..03d91bcf6b 100644 --- a/packages/cocoaint/utils/source/objp.php +++ b/packages/cocoaint/utils/source/objp.php @@ -1539,6 +1539,7 @@ class ObjectivePParser extends ObjectivePParserBase { $this->PrintOutput(0, "{\$endif}"); } + // print class/protocol forward declarations if (($header["classes"]) || ($header["protocols"])) { $this->PrintOutput(0, ""); $this->PrintOutput(0, "{\$ifdef FORWARD}"); @@ -1561,6 +1562,7 @@ class ObjectivePParser extends ObjectivePParserBase { $this->PrintOutput(0, "{\$endif}"); } + // print classes if ($header["classes"]) { $this->PrintOutput(0, ""); $this->PrintOutput(0, "{\$ifdef CLASSES}"); @@ -1582,13 +1584,12 @@ class ObjectivePParser extends ObjectivePParserBase { $this->PrintOutput(0, "{\$endif}"); } - + // print protocols if ($header["protocols"]) { $this->PrintOutput(0, "{\$ifdef PROTOCOLS}"); $this->PrintOutput(0, "{\$ifndef $macro"."_PAS_P}"); $this->PrintOutput(0, "{\$define $macro"."_PAS_P}"); - foreach ($header["protocols"] as $protocol) { $this->PrintOutput(1, ""); $this->PrintOutput(0, "{ ".$protocol["name"]." Protocol }"); @@ -1946,9 +1947,10 @@ class ObjectivePParser extends ObjectivePParserBase { $this->PrintOutput(0, ""); $this->PrintOutput(0, "type"); - foreach ($all_classes as $class) - $this->PrintOutput(1, $class." = objcclass external;"); - + foreach ($all_classes as $class) { + $this->PrintOutput(1, $class." = objcclass external;"); + } + $this->PrintOutput(0, ""); $this->PrintOutput(0, "implementation"); $this->PrintOutput(0, ""); |
