-static Segment* NewSegment (const char* Name, unsigned AddrSize)
+static Segment* NewSegment (const char* Name, unsigned char AddrSize)
/* Create a new segment, insert it into the global list and return it */
{
Segment* S;
-unsigned GetSegAddrSize (unsigned SegNum)
+unsigned char GetSegAddrSize (unsigned SegNum)
/* Return the address size of the segment with the given number */
{
/* Search for the segment */
#endif
#if defined(HAVE_INLINE)
-INLINE unsigned GetCurrentSegAddrSize (void)
+INLINE unsigned char GetCurrentSegAddrSize (void)
/* Get the address size of the current segment */
{
return ActiveSeg->Def->AddrSize;
* given value.
*/
-unsigned GetSegAddrSize (unsigned SegNum);
+unsigned char GetSegAddrSize (unsigned SegNum);
/* Return the address size of the segment with the given number */
unsigned long GetPC (void);
-SegDef* NewSegDef (const char* Name, unsigned AddrSize)
+SegDef* NewSegDef (const char* Name, unsigned char AddrSize)
/* Create a new segment definition and return it */
{
/* Allocate memory */
+
#define SEGDEFS_H
-
+
/* common */
#include "addrsize.h"
/* Segment definition */
typedef struct SegDef SegDef;
struct SegDef {
- char* Name; /* Segment name */
- unsigned AddrSize; /* Default address size */
+ char* Name; /* Segment name */
+ unsigned char AddrSize; /* Default address size */
};
/* Initializer for static SegDefs */
-SegDef* NewSegDef (const char* Name, unsigned AddrSize);
+SegDef* NewSegDef (const char* Name, unsigned char AddrSize);
/* Create a new segment definition and return it */
void FreeSegDef (SegDef* D);
/* Duplicate a segment definition and return it */
-
+
/* End of segdefs.h */
#endif