* as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
[fw/sdcc] / as / z80 / asdata.c
index 4b14c4f363488c1c2ce8b94a5e56f3d1bafeec03..69c5a3df4b4b2cd2cc5efee39bd63d9e12633304 100644 (file)
@@ -1,13 +1,20 @@
-/* asdata.c */
+/* asdata.c
 
-/*
- * (C) Copyright 1989-1995
- * All Rights Reserved
- *
- * Alan R. Baldwin
- * 721 Berkeley St.
- * Kent, Ohio  44240
- */
+   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/>. */
 
 #include <stdio.h>
 #include <setjmp.h>
@@ -73,10 +80,14 @@ int     pass;           /*      assembler pass number
                          */
 int     lflag;          /*      -l, generate listing flag
                          */
+int     cflag;          /*      -c, generate sdcdb debug info
+                         */
 int     gflag;          /*      -g, make undefined symbols global flag
                          */
 int     aflag;          /*      -a, make all symbols global flag
                          */
+int     jflag;          /*      -j, generate debug information flag
+                         */
 int     oflag;          /*      -o, generate relocatable output flag
                          */
 int     sflag;          /*      -s, generate symbol table flag
@@ -101,10 +112,10 @@ char    *ep;            /*      pointer into error list
                          */
 char    eb[NERR];       /*      array of generated error codes
                          */
-char    *ip;            /*      pointer into the assembler-source
+const char *ip;         /*      pointer into the assembler-source
                          *      text line in ib[]
                          */
-char    ib[NINPUT];     /*      assembler-source text line
+const char *ib;         /*      assembler-source text line
                          */
 char    *cp;            /*      pointer to assembler output
                          *      array cb[]
@@ -146,7 +157,7 @@ char    module[NCPS];   /*      module name string
  *      struct  mne
  *      {
  *              struct  mne *m_mp;      Hash link
- *              char    m_id[NCPS];     Mnemonic
+ *              char    *m_id;          Mnemonic
  *              char    m_type;         Mnemonic subtype
  *              char    m_flag;         Mnemonic flags
  *              Addr_T  m_valu;         Value
@@ -171,7 +182,7 @@ struct  mne     *mnehash[NHASH];
  *      {
  *              struct  sym  *s_sp;     Hash link
  *              struct  tsym *s_tsym;   Temporary symbol link
- *              char    s_id[NCPS];     Symbol
+ *              char    *s_id;          Symbol
  *              char    s_type;         Symbol subtype
  *              char    s_flag;         Symbol flags
  *              struct  area *s_area;   Area line, 0 if absolute