00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __TOYSEGMENT_H__
00012 #define __TOYSEGMENT_H__
00013
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017
00019 typedef struct ToySegment
00020 {
00022 int pos;
00024 int len;
00025 } ToySegment;
00026
00028 typedef enum SegType_e
00029 {
00030
00031 SEG_ERROR = -1
00032
00033 , SEG_CODE = 0
00034
00035 , SEG_DATA = 1
00036
00037 , SEG_HEAP = 2
00038
00039 , SEG_STACK= 3
00040 } SegType_e;
00041
00042
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046
00047 #endif