struct / union in initializer, RFE #901.
[sdcc.git] / sdcc-extra / emu / rrgb / parse_map.h
blobedd158925f287ff09735f13fae2898305ffa565d
1 #ifndef __PARSE_MAP_H
2 #define __PARSE_MAP_H
4 #define UWORD unsigned int
5 #define SECT_AREA 1
6 #define SECT_AREA_GLOBALS 1
8 typedef struct sglobal mglobal;
9 typedef struct sglobal *pmglobal;
11 struct sglobal {
12 char name[50];
13 UWORD addr;
14 pmglobal next;
15 pmglobal sorted_next;
18 typedef struct sarea marea;
19 typedef struct sarea *pmarea;
21 struct sarea {
22 char name[50];
23 UWORD base;
24 UWORD size;
25 pmglobal globals;
26 pmarea next;
29 int parse_map( char *file_name, pmarea *first_area );
30 int global_compare( const void *glob1, const void *glob2 );
31 int sort_globals( pmglobal *first_global, pmarea first );
33 #endif