Showing with 41 additions and 40 deletions.
  1. +35 −35 src/magicport.json
  2. +2 −0 src/objc.h
  3. +4 −5 src/objc_stubs.c
70 changes: 35 additions & 35 deletions src/magicport.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,41 +111,41 @@
]
},
{
"module" : "objc",
"package" : "",
"imports" : [
"arraytypes",
"cond",
"dclass",
"dmangle",
"dmodule",
"dscope",
"dstruct",
"expression",
"func",
"globals",
"id",
"identifier",
"mtype",
"root.outbuffer",
"root.stringtable"
],
"members" : [
"struct ObjcSelector",
"struct Objc_ClassDeclaration",
"struct Objc_FuncDeclaration",
"function objc_ClassDeclaration_semantic_PASSinit_LINKobjc",
"function objc_InterfaceDeclaration_semantic_objcExtern",
"function objc_FuncDeclaration_semantic_setSelector",
"function objc_isUdaSelector",
"function objc_FuncDeclaration_semantic_validateSelector",
"function objc_FuncDeclaration_semantic_checkLinkage",
"function objc_tryMain_dObjc",
"function objc_tryMain_init"
],
"extra" : [
"extern(C++) void objc_initSymbols();"
]
"module" : "objc",
"package" : "",
"imports" : [
"arraytypes",
"cond",
"dclass",
"dmangle",
"dmodule",
"dscope",
"dstruct",
"expression",
"func",
"globals",
"id",
"identifier",
"mtype",
"root.outbuffer",
"root.stringtable"
],
"members" : [
"struct ObjcSelector",
"struct Objc_ClassDeclaration",
"struct Objc_FuncDeclaration",
"function objc_ClassDeclaration_semantic_PASSinit_LINKobjc",
"function objc_InterfaceDeclaration_semantic_objcExtern",
"function objc_FuncDeclaration_semantic_setSelector",
"function objc_isUdaSelector",
"function objc_FuncDeclaration_semantic_validateSelector",
"function objc_FuncDeclaration_semantic_checkLinkage",
"function objc_tryMain_dObjc",
"function objc_tryMain_init"
],
"extra" : [
"extern(C++) void objc_initSymbols();"
]
},
{
"module" : "dclass",
Expand Down
2 changes: 2 additions & 0 deletions src/objc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class FuncDeclaration;
class ClassDeclaration;
class InterfaceDeclaration;
class ObjcSelector;
struct Scope;
class StructDeclaration;

class ObjcSelector
{
Expand Down
9 changes: 4 additions & 5 deletions src/objc_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@
* https://github.com/D-Programming-Language/dmd/blob/master/src/objc_stubs.c
*/

#include "objc.h"
#include "arraytypes.h"
#include "class.c"
#include "aggregate.h"
#include "mars.h"
#include "objc.h"
#include "outbuffer.h"
#include "parse.h"
#include "scope.h"

class ClassDeclaration;
class FuncDeclaration;
class Identifier;
class InterfaceDeclaration;

// MARK: ObjcSelector

Expand Down Expand Up @@ -74,7 +73,7 @@ bool Objc_ClassDeclaration::isInterface()

Objc_FuncDeclaration::Objc_FuncDeclaration()
{
this->fdecl = fdecl;
this->fdecl = NULL;
selector = NULL;
}

Expand Down