X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FObjectFile.h;fp=src%2Floader%2FObjectFile.h;h=56319a4dd444050681fb0aef7a8886893e91c3d6;hb=8ef435410d1f8aff339e4afef87a5757e77eba45;hp=98aff02918aaef733737fd2cc23765fd8f2d0ebc;hpb=0e7b9eca67383e45e04aa419cb783c92722f7801;p=l2e.git diff --git a/src/loader/ObjectFile.h b/src/loader/ObjectFile.h index 98aff02..56319a4 100644 --- a/src/loader/ObjectFile.h +++ b/src/loader/ObjectFile.h @@ -11,7 +11,7 @@ struct Export { /// Offset of the identifier in the file. unsigned int nameOffset; /// Type ID of referenced object. - unsigned int typeId; + int typeId; /// File-offset of the object's actual data. unsigned int dataOffset; }; @@ -22,9 +22,11 @@ struct External { unsigned int nameOffset; /// Target position for linking/inlining. unsigned int referenceOffset; - /// Nonzero if the object should be copied rather that + /// Target type. + int typeId; + /// True if the object should be copied rather that /// just writing a reference. - unsigned int inlined; + bool inlined; }; struct Image { @@ -36,16 +38,18 @@ struct Image { }; struct Object { - unsigned int typeId; + int typeId; unsigned int size; + char *RawObject(); Object *Next(); }; struct Array { - unsigned int typeId; + int typeId; unsigned int size; bool ref; + char *Data(); Array *Next(); };