#include "cmdline.h"
#include "fname.h"
#include "print.h"
+#include "segdefs.h"
#include "target.h"
#include "tgttrans.h"
#include "version.h"
#include <string.h>
/* common */
+#include "segdefs.h"
#include "tgttrans.h"
/* cc65 */
#include "litpool.h"
#include "scanner.h"
#include "scanstrbuf.h"
-#include "segments.h"
#include "symtab.h"
#include "pragma.h"
-int ValidSegName (const char* Name)
-/* Return true if the given segment name is valid, return false otherwise */
-{
- /* Must start with '_' or a letter */
- if ((*Name != '_' && !IsAlpha(*Name)) || strlen(Name) > 80) {
- return 0;
- }
-
- /* Can have letters, digits or the underline */
- while (*++Name) {
- if (*Name != '_' && !IsAlNum(*Name)) {
- return 0;
- }
- }
-
- /* Name is ok */
- return 1;
-}
-
-
-
static Segments* NewSegments (SymEntry* Func)
/* Initialize a Segments structure (set all fields to NULL) */
{
/* */
/* */
/* */
-/* (C) 2000-2001 Ullrich von Bassewitz */
+/* (C) 2000-2002 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@cc65.org */
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 */