X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.h;h=764d2445c010b0c1160f7a1e5b21a18a707c45b1;hp=7594056e165645055fc114d400db482c0d76a1a6;hb=3385b366632d03745033fa6b19faabf60219bc6b;hpb=d28f432296e812643e236d1bfc9b556a7b11c461 diff --git a/sect.h b/sect.h index 7594056..764d244 100644 --- a/sect.h +++ b/sect.h @@ -1,9 +1,10 @@ -//////////////////////////////////////////////////////////////////////////////////////////////////// +// // RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System // SECT.H - Code Generation, Fixups and Section Management // Copyright (C) 199x Landon Dyer, 2011 Reboot and Friends // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986 // Source Utilised with the Kind Permission of Landon Dyer +// #ifndef __SECT_H__ #define __SECT_H__ @@ -79,12 +80,12 @@ // Chunks are used to hold generated code and fixup records #define CHUNK struct _chunk CHUNK { - CHUNK *chnext; // Next, previous chunks in section - CHUNK *chprev; + CHUNK * chnext; // Next, previous chunks in section + CHUNK * chprev; LONG chloc; // Base addr of this chunk LONG challoc; // #bytes allocated for chunk LONG ch_size; // #bytes chunk actually uses - char *chptr; // Data for this chunk + char * chptr; // Data for this chunk }; // Section descriptor @@ -92,10 +93,10 @@ CHUNK { SECT { WORD scattr; // Section attributes LONG sloc; // Current loc-in / size-of section - CHUNK *sfcode; // First chunk in section - CHUNK *scode; // Last chunk in section - CHUNK *sffix; // First fixup chunk - CHUNK *sfix; // Last fixup chunk + CHUNK * sfcode; // First chunk in section + CHUNK * scode; // Last chunk in section + CHUNK * sffix; // First fixup chunk + CHUNK * sfix; // Last fixup chunk }; // A mark is of the form: @@ -105,7 +106,7 @@ SECT { // .L [symbol] symbol involved in external reference #define MCHUNK struct _mchunk MCHUNK { - MCHUNK *mcnext; // Next mark chunk + MCHUNK * mcnext; // Next mark chunk PTR mcptr; // Vector of marks LONG mcalloc; // #marks allocted to mark block LONG mcused; // #marks used in block @@ -126,12 +127,12 @@ extern unsigned fwindex; // Globals, external etc extern LONG sloc; extern WORD scattr; -extern char *chptr; +extern char * chptr; extern LONG ch_size; extern int cursect; extern SECT sect[]; extern LONG challoc; -extern CHUNK *scode; +extern CHUNK * scode; // Prototypes void init_sect(void); @@ -143,4 +144,4 @@ int fixup(WORD, LONG, TOKEN *); int fixups(void); int resfix(int); -#endif // __SECT_H__ \ No newline at end of file +#endif // __SECT_H__