]> granicus.if.org Git - yasm/commitdiff
Rename outfmt to objfmt and related files and directories. "objfmt" is more
authorPeter Johnson <peter@tortall.net>
Sat, 15 Sep 2001 07:16:59 +0000 (07:16 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 15 Sep 2001 07:16:59 +0000 (07:16 -0000)
descriptive of what the module is actually used for ("output" is rather
generic).

svn path=/trunk/yasm/; revision=155

28 files changed:
configure.ac
configure.in
frontends/yasm/yasm.c
libyasm/objfmt.h
libyasm/parser.h
libyasm/preproc.h
modules/objfmts/dbg/Makefile.am
modules/objfmts/dbg/dbg-objfmt.c
modules/objfmts/dbg/objfmt.c
modules/objfmts/dbg/outfmt.c [deleted file]
modules/parsers/nasm/nasm-parser.c
modules/parsers/nasm/parser.c
modules/preprocs/raw/preproc.c
modules/preprocs/raw/raw-preproc.c
src/Makefile.am
src/main.c
src/objfmt.h
src/objfmts/dbg/Makefile.am
src/objfmts/dbg/dbg-objfmt.c
src/objfmts/dbg/objfmt.c
src/objfmts/dbg/outfmt.c [deleted file]
src/outfmt.h [deleted file]
src/parser.h
src/parsers/nasm/nasm-parser.c
src/parsers/nasm/parser.c
src/preproc.h
src/preprocs/raw/preproc.c
src/preprocs/raw/raw-preproc.c

index cd8eec049a78f917b5783361e04b2689bf145944..b42dbee90abde0c7c4e2f33cf259acd1fb8c3304 100644 (file)
@@ -55,4 +55,4 @@ case "$host" in
        ;;
 esac
 
-AC_OUTPUT(Makefile intl/Makefile po/Makefile.in src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/outfmts/Makefile src/outfmts/dbg/Makefile)
+AC_OUTPUT(Makefile intl/Makefile po/Makefile.in src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/objfmts/Makefile src/objfmts/dbg/Makefile)
index cd8eec049a78f917b5783361e04b2689bf145944..b42dbee90abde0c7c4e2f33cf259acd1fb8c3304 100644 (file)
@@ -55,4 +55,4 @@ case "$host" in
        ;;
 esac
 
-AC_OUTPUT(Makefile intl/Makefile po/Makefile.in src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/outfmts/Makefile src/outfmts/dbg/Makefile)
+AC_OUTPUT(Makefile intl/Makefile po/Makefile.in src/Makefile src/parsers/Makefile src/parsers/nasm/Makefile src/preprocs/Makefile src/preprocs/raw/Makefile src/objfmts/Makefile src/objfmts/dbg/Makefile)
index b5c2f61ce33bb527387ac72522cebcba06233f60..0ecbe5b16b1a42e9ada850dc750c76cbab643037 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: yasm.c,v 1.10 2001/08/19 07:46:52 peter Exp $
+/* $Id: yasm.c,v 1.11 2001/09/15 07:16:59 peter Exp $
  * Program entry point, command line parsing
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: yasm.c,v 1.10 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: yasm.c,v 1.11 2001/09/15 07:16:59 peter Exp $");
 
 char *filename = (char *)NULL;
 unsigned int line_number = 1;
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
        filename = strdup("<STDIN>");
     }
 
-    nasm_parser.doparse(&raw_preproc, &dbg_outfmt, in);
+    nasm_parser.doparse(&raw_preproc, &dbg_objfmt, in);
 
     if (filename)
        free(filename);
index 652276f3635f0e8a9d0e40dae288d79032e6410b..652157c674578f0407dc481eaa3f17943e8a80ba 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: objfmt.h,v 1.2 2001/08/19 03:52:58 peter Exp $
- * Output format module interface header file
+/* $Id: objfmt.h,v 1.3 2001/09/15 07:16:59 peter Exp $
+ * Object format module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
  *
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-#ifndef YASM_OUTFMT_H
-#define YASM_OUTFMT_H
+#ifndef YASM_OBJFMT_H
+#define YASM_OBJFMT_H
 
-/* Interface to the output format module(s) */
-typedef struct outfmt_s {
+/* Interface to the object format module(s) */
+typedef struct objfmt_s {
     /* one-line description of the format */
     char *name;
 
@@ -31,7 +31,7 @@ typedef struct outfmt_s {
     char *keyword;
 
     /* NULL-terminated list of debugging formats that are valid to use with
-     * this output format.
+     * this object format.
      */
 /*    struct debugfmt_s **debugfmts;*/
 
@@ -39,9 +39,9 @@ typedef struct outfmt_s {
      * use)
      */
 /*    struct debugfmt_s *default_df;*/
-} outfmt;
+} objfmt;
 
-/* Available output formats */
-extern outfmt dbg_outfmt;
+/* Available object formats */
+extern objfmt dbg_objfmt;
 
 #endif
index f844643e134cdb6013a7fbc353b4a236a936174b..affff6fd3a512539b9b316e40af0b91d56c4c95e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: parser.h,v 1.2 2001/08/19 03:52:58 peter Exp $
+/* $Id: parser.h,v 1.3 2001/09/15 07:16:59 peter Exp $
  * Parser module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -41,7 +41,7 @@ typedef struct parser_s {
 
     /* Main entrance point for the parser.
      *
-     * The parser needs access to both the output format module (for format-
+     * The parser needs access to both the object format module (for format-
      * specific directives and segment names), and the selected preprocessor
      * (which should naturally be in the preprocs list above).
      *
@@ -55,7 +55,7 @@ typedef struct parser_s {
      * Note that calling this has many side effects in the output format
      * module: sections and variables are declared, etc.
      */
-    section *(*doparse) (preproc *pp, outfmt *of, FILE *f);
+    section *(*doparse) (preproc *pp, objfmt *of, FILE *f);
 } parser;
 
 /* Available parsers */
index 2e884fbd6e9eb140c59f72a103702b6d5ee3fb3b..9ee4d3d30ec248317dc8165fd43cc2cb4ff1ec2f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: preproc.h,v 1.2 2001/08/19 03:52:58 peter Exp $
+/* $Id: preproc.h,v 1.3 2001/09/15 07:16:59 peter Exp $
  * Preprocessor module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -32,14 +32,14 @@ typedef struct preproc_s {
 
     /* Initializes preprocessor.
      *
-     * The preprocessor needs access to the output format module to find out
+     * The preprocessor needs access to the object format module to find out
      * any output format specific macros.
      *
      * This function also takes the FILE * to the initial starting file, but
      * not the filename (which is in a global variable and is not
      * preprocessor-specific).
      */
-    void (*initialize) (outfmt *of, FILE *f);
+    void (*initialize) (objfmt *of, FILE *f);
 
     /* Gets more preprocessed source code (up to max_size bytes) into buf.
      * Note that more than a single line may be returned in buf. */
index 0ab845cbba2c038e83013164b44e7595f32d04df..206fe1855d77638b8c6209c30528f55b0422adb3 100644 (file)
@@ -1,7 +1,7 @@
-noinst_LIBRARIES = liboutfmt.a
+noinst_LIBRARIES = libobjfmt.a
 
-liboutfmt_a_SOURCES = \
-       outfmt.c
+libobjfmt_a_SOURCES = \
+       objfmt.c
 
 INCLUDES = \
        -I$(top_srcdir)/src     \
index eb41ca4379369c5c7a605927b7fcc98d75263327..fb7b14fd75148cf9fb34d10375829aeba519493a 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: dbg-objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
+/* $Id: dbg-objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $
+ * Debugging object format (used to debug object format module interface)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
 
 #include "util.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 
-RCSID("$Id: dbg-objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: dbg-objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $");
 
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
+/* Define objfmt structure -- see objfmt.h for details */
+objfmt dbg_objfmt = {
+    "Trace of all info passed to object format module",
     "dbg"
 };
index 74eef231b90e5ffa17740c186faf8fa7728028e5..82c67358f573b81f89e4d64c3bfda68e3099e59b 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
+/* $Id: objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $
+ * Debugging object format (used to debug object format module interface)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
 
 #include "util.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 
-RCSID("$Id: objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $");
 
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
+/* Define objfmt structure -- see objfmt.h for details */
+objfmt dbg_objfmt = {
+    "Trace of all info passed to object format module",
     "dbg"
 };
diff --git a/modules/objfmts/dbg/outfmt.c b/modules/objfmts/dbg/outfmt.c
deleted file mode 100644 (file)
index ec5de2b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* $Id: outfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
- *
- *  Copyright (C) 2001  Peter Johnson
- *
- *  This file is part of YASM.
- *
- *  YASM 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 2 of the License, or
- *  (at your option) any later version.
- *
- *  YASM 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, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "util.h"
-
-#include "outfmt.h"
-
-RCSID("$Id: outfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
-
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
-    "dbg"
-};
index 87d05989f33f13c3eb91b88046a37ba898b44586..8f4c43707f6d616997997addcfb441eb1417d442 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
+/* $Id: nasm-parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * NASM-compatible parser
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: nasm-parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 extern FILE *nasm_parser_in;
 extern int nasm_parser_debug;
@@ -43,7 +43,7 @@ extern int nasm_parser_parse(void);
 int (*nasm_parser_yyinput) (char *buf, int max_size);
 
 static section *
-doparse(preproc *pp, outfmt *of, FILE *f)
+doparse(preproc *pp, objfmt *of, FILE *f)
 {
     pp->initialize(of, f);
     nasm_parser_in = f;
index 6ec060bd78c7d3440f84b25b83cfda6d77e236b2..23da8f2be9d5208f3c8a1c92ec33e4e257e20e1b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
+/* $Id: parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * NASM-compatible parser
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 extern FILE *nasm_parser_in;
 extern int nasm_parser_debug;
@@ -43,7 +43,7 @@ extern int nasm_parser_parse(void);
 int (*nasm_parser_yyinput) (char *buf, int max_size);
 
 static section *
-doparse(preproc *pp, outfmt *of, FILE *f)
+doparse(preproc *pp, objfmt *of, FILE *f)
 {
     pp->initialize(of, f);
     nasm_parser_in = f;
index f93d3b3d5149a1802a69d86f908cf0c0ae096dc3..3cd780b4a2f7f4c71e98f0b10cb398ce658add0d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $
+/* $Id: preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * Raw preprocessor (preforms NO preprocessing)
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "errwarn.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 
-RCSID("$Id: preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 static int is_interactive;
 static FILE *in;
@@ -43,7 +43,7 @@ static FILE *in;
 int isatty(int);
 
 static void
-initialize(outfmt *of, FILE *f)
+initialize(objfmt *of, FILE *f)
 {
     in = f;
     is_interactive = f ? (isatty(fileno(f)) > 0) : 0;
index 1bb5dc4c5ef0900f5d5bf2ef103739de4f8bf396..bcc859bbf6d61afc2fe8b629bdc0a82f0f63bb11 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: raw-preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $
+/* $Id: raw-preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * Raw preprocessor (preforms NO preprocessing)
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "errwarn.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 
-RCSID("$Id: raw-preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: raw-preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 static int is_interactive;
 static FILE *in;
@@ -43,7 +43,7 @@ static FILE *in;
 int isatty(int);
 
 static void
-initialize(outfmt *of, FILE *f)
+initialize(objfmt *of, FILE *f)
 {
     in = f;
     is_interactive = f ? (isatty(fileno(f)) > 0) : 0;
index 914255867f904fd0cc17acb092e6c145b42ee13d..004f162a35349babc319d1348ed77a2b443e50e5 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = parsers preprocs outfmts
+SUBDIRS = parsers preprocs objfmts
 
 INCLUDES = -I$(top_srcdir)/intl
 
@@ -17,14 +17,14 @@ yasm_SOURCES = \
        globals.h               \
        util.h                  \
        section.h               \
-       outfmt.h                \
+       objfmt.h                \
        preproc.h               \
        parser.h
 
 yasm_LDADD = \
        parsers/nasm/libparser.a        \
        preprocs/raw/libpreproc.a       \
-       outfmts/dbg/liboutfmt.a         \
+       objfmts/dbg/libobjfmt.a         \
        $(INTLLIBS)
 
 if DEV
index 17f52681bfca0a2449a085b8bde67adca8677777..b333aa88351cf1f79535e855e34f386fd2153f17 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.10 2001/08/19 07:46:52 peter Exp $
+/* $Id: main.c,v 1.11 2001/09/15 07:16:59 peter Exp $
  * Program entry point, command line parsing
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: main.c,v 1.10 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: main.c,v 1.11 2001/09/15 07:16:59 peter Exp $");
 
 char *filename = (char *)NULL;
 unsigned int line_number = 1;
@@ -61,7 +61,7 @@ main(int argc, char *argv[])
        filename = strdup("<STDIN>");
     }
 
-    nasm_parser.doparse(&raw_preproc, &dbg_outfmt, in);
+    nasm_parser.doparse(&raw_preproc, &dbg_objfmt, in);
 
     if (filename)
        free(filename);
index 652276f3635f0e8a9d0e40dae288d79032e6410b..652157c674578f0407dc481eaa3f17943e8a80ba 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: objfmt.h,v 1.2 2001/08/19 03:52:58 peter Exp $
- * Output format module interface header file
+/* $Id: objfmt.h,v 1.3 2001/09/15 07:16:59 peter Exp $
+ * Object format module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
  *
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
-#ifndef YASM_OUTFMT_H
-#define YASM_OUTFMT_H
+#ifndef YASM_OBJFMT_H
+#define YASM_OBJFMT_H
 
-/* Interface to the output format module(s) */
-typedef struct outfmt_s {
+/* Interface to the object format module(s) */
+typedef struct objfmt_s {
     /* one-line description of the format */
     char *name;
 
@@ -31,7 +31,7 @@ typedef struct outfmt_s {
     char *keyword;
 
     /* NULL-terminated list of debugging formats that are valid to use with
-     * this output format.
+     * this object format.
      */
 /*    struct debugfmt_s **debugfmts;*/
 
@@ -39,9 +39,9 @@ typedef struct outfmt_s {
      * use)
      */
 /*    struct debugfmt_s *default_df;*/
-} outfmt;
+} objfmt;
 
-/* Available output formats */
-extern outfmt dbg_outfmt;
+/* Available object formats */
+extern objfmt dbg_objfmt;
 
 #endif
index 0ab845cbba2c038e83013164b44e7595f32d04df..206fe1855d77638b8c6209c30528f55b0422adb3 100644 (file)
@@ -1,7 +1,7 @@
-noinst_LIBRARIES = liboutfmt.a
+noinst_LIBRARIES = libobjfmt.a
 
-liboutfmt_a_SOURCES = \
-       outfmt.c
+libobjfmt_a_SOURCES = \
+       objfmt.c
 
 INCLUDES = \
        -I$(top_srcdir)/src     \
index eb41ca4379369c5c7a605927b7fcc98d75263327..fb7b14fd75148cf9fb34d10375829aeba519493a 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: dbg-objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
+/* $Id: dbg-objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $
+ * Debugging object format (used to debug object format module interface)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
 
 #include "util.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 
-RCSID("$Id: dbg-objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: dbg-objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $");
 
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
+/* Define objfmt structure -- see objfmt.h for details */
+objfmt dbg_objfmt = {
+    "Trace of all info passed to object format module",
     "dbg"
 };
index 74eef231b90e5ffa17740c186faf8fa7728028e5..82c67358f573b81f89e4d64c3bfda68e3099e59b 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
+/* $Id: objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $
+ * Debugging object format (used to debug object format module interface)
  *
  *  Copyright (C) 2001  Peter Johnson
  *
 
 #include "util.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 
-RCSID("$Id: objfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: objfmt.c,v 1.4 2001/09/15 07:16:59 peter Exp $");
 
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
+/* Define objfmt structure -- see objfmt.h for details */
+objfmt dbg_objfmt = {
+    "Trace of all info passed to object format module",
     "dbg"
 };
diff --git a/src/objfmts/dbg/outfmt.c b/src/objfmts/dbg/outfmt.c
deleted file mode 100644 (file)
index ec5de2b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* $Id: outfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $
- * Debugging output format (used to debug output format module interface)
- *
- *  Copyright (C) 2001  Peter Johnson
- *
- *  This file is part of YASM.
- *
- *  YASM 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 2 of the License, or
- *  (at your option) any later version.
- *
- *  YASM 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, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "util.h"
-
-#include "outfmt.h"
-
-RCSID("$Id: outfmt.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
-
-/* Define outfmt structure -- see outfmt.h for details */
-outfmt dbg_outfmt = {
-    "Trace of all info passed to output format module",
-    "dbg"
-};
diff --git a/src/outfmt.h b/src/outfmt.h
deleted file mode 100644 (file)
index bd090e7..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/* $Id: outfmt.h,v 1.2 2001/08/19 03:52:58 peter Exp $
- * Output format module interface header file
- *
- *  Copyright (C) 2001  Peter Johnson
- *
- *  This file is part of YASM.
- *
- *  YASM 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 2 of the License, or
- *  (at your option) any later version.
- *
- *  YASM 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, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-#ifndef YASM_OUTFMT_H
-#define YASM_OUTFMT_H
-
-/* Interface to the output format module(s) */
-typedef struct outfmt_s {
-    /* one-line description of the format */
-    char *name;
-
-    /* keyword used to select format on the command line */
-    char *keyword;
-
-    /* NULL-terminated list of debugging formats that are valid to use with
-     * this output format.
-     */
-/*    struct debugfmt_s **debugfmts;*/
-
-    /* Default debugging format (set even if there's only one available to
-     * use)
-     */
-/*    struct debugfmt_s *default_df;*/
-} outfmt;
-
-/* Available output formats */
-extern outfmt dbg_outfmt;
-
-#endif
index f844643e134cdb6013a7fbc353b4a236a936174b..affff6fd3a512539b9b316e40af0b91d56c4c95e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: parser.h,v 1.2 2001/08/19 03:52:58 peter Exp $
+/* $Id: parser.h,v 1.3 2001/09/15 07:16:59 peter Exp $
  * Parser module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -41,7 +41,7 @@ typedef struct parser_s {
 
     /* Main entrance point for the parser.
      *
-     * The parser needs access to both the output format module (for format-
+     * The parser needs access to both the object format module (for format-
      * specific directives and segment names), and the selected preprocessor
      * (which should naturally be in the preprocs list above).
      *
@@ -55,7 +55,7 @@ typedef struct parser_s {
      * Note that calling this has many side effects in the output format
      * module: sections and variables are declared, etc.
      */
-    section *(*doparse) (preproc *pp, outfmt *of, FILE *f);
+    section *(*doparse) (preproc *pp, objfmt *of, FILE *f);
 } parser;
 
 /* Available parsers */
index 87d05989f33f13c3eb91b88046a37ba898b44586..8f4c43707f6d616997997addcfb441eb1417d442 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
+/* $Id: nasm-parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * NASM-compatible parser
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: nasm-parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 extern FILE *nasm_parser_in;
 extern int nasm_parser_debug;
@@ -43,7 +43,7 @@ extern int nasm_parser_parse(void);
 int (*nasm_parser_yyinput) (char *buf, int max_size);
 
 static section *
-doparse(preproc *pp, outfmt *of, FILE *f)
+doparse(preproc *pp, objfmt *of, FILE *f)
 {
     pp->initialize(of, f);
     nasm_parser_in = f;
index 6ec060bd78c7d3440f84b25b83cfda6d77e236b2..23da8f2be9d5208f3c8a1c92ec33e4e257e20e1b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
+/* $Id: parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * NASM-compatible parser
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "bytecode.h"
 #include "section.h"
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 #include "parser.h"
 
-RCSID("$Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+RCSID("$Id: parser.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 extern FILE *nasm_parser_in;
 extern int nasm_parser_debug;
@@ -43,7 +43,7 @@ extern int nasm_parser_parse(void);
 int (*nasm_parser_yyinput) (char *buf, int max_size);
 
 static section *
-doparse(preproc *pp, outfmt *of, FILE *f)
+doparse(preproc *pp, objfmt *of, FILE *f)
 {
     pp->initialize(of, f);
     nasm_parser_in = f;
index 2e884fbd6e9eb140c59f72a103702b6d5ee3fb3b..9ee4d3d30ec248317dc8165fd43cc2cb4ff1ec2f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: preproc.h,v 1.2 2001/08/19 03:52:58 peter Exp $
+/* $Id: preproc.h,v 1.3 2001/09/15 07:16:59 peter Exp $
  * Preprocessor module interface header file
  *
  *  Copyright (C) 2001  Peter Johnson
@@ -32,14 +32,14 @@ typedef struct preproc_s {
 
     /* Initializes preprocessor.
      *
-     * The preprocessor needs access to the output format module to find out
+     * The preprocessor needs access to the object format module to find out
      * any output format specific macros.
      *
      * This function also takes the FILE * to the initial starting file, but
      * not the filename (which is in a global variable and is not
      * preprocessor-specific).
      */
-    void (*initialize) (outfmt *of, FILE *f);
+    void (*initialize) (objfmt *of, FILE *f);
 
     /* Gets more preprocessed source code (up to max_size bytes) into buf.
      * Note that more than a single line may be returned in buf. */
index f93d3b3d5149a1802a69d86f908cf0c0ae096dc3..3cd780b4a2f7f4c71e98f0b10cb398ce658add0d 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $
+/* $Id: preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * Raw preprocessor (preforms NO preprocessing)
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "errwarn.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 
-RCSID("$Id: preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 static int is_interactive;
 static FILE *in;
@@ -43,7 +43,7 @@ static FILE *in;
 int isatty(int);
 
 static void
-initialize(outfmt *of, FILE *f)
+initialize(objfmt *of, FILE *f)
 {
     in = f;
     is_interactive = f ? (isatty(fileno(f)) > 0) : 0;
index 1bb5dc4c5ef0900f5d5bf2ef103739de4f8bf396..bcc859bbf6d61afc2fe8b629bdc0a82f0f63bb11 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: raw-preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $
+/* $Id: raw-preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $
  * Raw preprocessor (preforms NO preprocessing)
  *
  *  Copyright (C) 2001  Peter Johnson
 
 #include "errwarn.h"
 
-#include "outfmt.h"
+#include "objfmt.h"
 #include "preproc.h"
 
-RCSID("$Id: raw-preproc.c,v 1.6 2001/08/30 03:45:26 peter Exp $");
+RCSID("$Id: raw-preproc.c,v 1.7 2001/09/15 07:16:59 peter Exp $");
 
 static int is_interactive;
 static FILE *in;
@@ -43,7 +43,7 @@ static FILE *in;
 int isatty(int);
 
 static void
-initialize(outfmt *of, FILE *f)
+initialize(objfmt *of, FILE *f)
 {
     in = f;
     is_interactive = f ? (isatty(fileno(f)) > 0) : 0;