Applied patch #2762516
[fw/sdcc] / as / z80 / asm.h
index b403e7349fab4cfc93481eecc27a1a6b2268ca6f..0f5f0af8ed8bf679ab65353c14d3c8ecfdeadcf2 100644 (file)
@@ -1,13 +1,22 @@
-/* asm.h */
+/* asm.h
+
+   Copyright (C) 1989-1995 Alan R. Baldwin
+   721 Berkeley St., Kent, Ohio 44240
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 3, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
 /*
- * (C) Copyright 1989-1996
- * All Rights Reserved
- *
- * Alan R. Baldwin
- * 721 Berkeley St.
- * Kent, Ohio  44240
- *
  * 10-Nov-07 borutr:
  *           - add proto for strsto
  *           - change s_id from [NCPS] to pointer
@@ -22,7 +31,7 @@
  * Extensions: P. Felber
  */
 
-#define VERSION "V01.75"
+#define VERSION "V01.75 + SDCC mods"
 
 /*
  * Case Sensitivity Flag
 #define OTHERSYSTEM
 #endif
 
+/*
+ * PATH_MAX
+ */
+#include <limits.h>
+#ifndef PATH_MAX                                /* POSIX, but not required   */
+#if defined(_MSC_VER) || defined(__BORLANDC__)  /* Microsoft C or Borland C*/
+#include <stdlib.h>
+#define PATH_MAX        _MAX_PATH
+#else
+#define PATH_MAX                                /* define a reasonable value */
+#endif
+#endif
+
+#ifdef _WIN32       /* WIN32 native */
+
+#  define NATIVE_WIN32          1
+#  ifdef __MINGW32__  /* GCC MINGW32 depends on configure */
+#    include "../../sdccconf.h"
+#  else
+#    include "../../sdcc_vc.h"
+#    define PATH_MAX  _MAX_PATH
+#  endif
+
+#else               /* Assume Un*x style system */
+#  include "../../sdccconf.h"
+#endif
+
 /*
  * Assembler definitions.
  */
@@ -361,10 +397,14 @@ extern  int     pass;           /*      assembler pass number
                                  */
 extern  int     lflag;          /*      -l, generate listing flag
                                  */
+extern  int     cflag;          /*      -c, generate sdcdb debug information
+                                 */
 extern  int     gflag;          /*      -g, make undefined symbols global flag
                                  */
 extern  int     aflag;          /*      -a, make all symbols global flag
                                  */
+extern  int     jflag;          /*      -j, generate debug information flag
+                                */
 extern  int     oflag;          /*      -o, generate relocatable output flag
                                  */
 extern  int     sflag;          /*      -s, generate symbol table flag
@@ -593,6 +633,10 @@ extern  VOID            out_lw();
 extern  VOID            out_rw();
 extern  VOID            out_tw();
 
+/* asnoice.c */
+extern void DefineNoICE_Line();
+extern void DefineCDB_Line();
+
 
 /* Machine dependent variables */