X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fsegments.h;h=81496ed1fbed664fd936a44e61579545fa4998dd;hb=923ae328a53d95390815c73b390165e85c06af01;hp=fde43933d583c6de23abb5b078305e10dd09432e;hpb=b3af17126c3ac6178e45b090555bed5f34507eaf;p=cc65 diff --git a/src/cc65/segments.h b/src/cc65/segments.h index fde43933d..81496ed1f 100644 --- a/src/cc65/segments.h +++ b/src/cc65/segments.h @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2001 Ullrich von Bassewitz */ +/* (C) 2000-2002 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@cc65.org */ @@ -108,9 +108,6 @@ void InitSegNames (void); void NewSegName (segment_t Seg, const char* Name); /* Set a new name for a segment */ -int ValidSegName (const char* Name); -/* Return true if the given segment name is valid, return false otherwise */ - Segments* PushSegments (struct SymEntry* Func); /* Make the new segment list current but remember the old one */ @@ -135,6 +132,12 @@ void AddCode (opc_t OPC, am_t AM, const char* Arg, struct CodeLabel* JumpTo); void AddDataLine (const char* Format, ...) attribute ((format (printf, 1, 2))); /* Add a line of data to the current data segment */ +int HaveGlobalCode (void); +/* Return true if the global code segment contains entries (which is an error) */ + +void RemoveGlobalCode (void); +/* Remove all code from the global code segment. Used for error recovery. */ + void OutputSegments (const Segments* S, FILE* F); /* Output the given segments to the file */