;;
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)
;;
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)
-/* $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;
filename = strdup("<STDIN>");
}
- nasm_parser.doparse(&raw_preproc, &dbg_outfmt, in);
+ nasm_parser.doparse(&raw_preproc, &dbg_objfmt, in);
if (filename)
free(filename);
-/* $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;
char *keyword;
/* NULL-terminated list of debugging formats that are valid to use with
- * this output format.
+ * this object format.
*/
/* struct debugfmt_s **debugfmts;*/
* use)
*/
/* struct debugfmt_s *default_df;*/
-} outfmt;
+} objfmt;
-/* Available output formats */
-extern outfmt dbg_outfmt;
+/* Available object formats */
+extern objfmt dbg_objfmt;
#endif
-/* $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
/* 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).
*
* 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 */
-/* $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
/* 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. */
-noinst_LIBRARIES = liboutfmt.a
+noinst_LIBRARIES = libobjfmt.a
-liboutfmt_a_SOURCES = \
- outfmt.c
+libobjfmt_a_SOURCES = \
+ objfmt.c
INCLUDES = \
-I$(top_srcdir)/src \
-/* $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"
};
-/* $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"
};
+++ /dev/null
-/* $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"
-};
-/* $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;
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;
-/* $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;
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;
-/* $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;
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;
-/* $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;
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;
-SUBDIRS = parsers preprocs outfmts
+SUBDIRS = parsers preprocs objfmts
INCLUDES = -I$(top_srcdir)/intl
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
-/* $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;
filename = strdup("<STDIN>");
}
- nasm_parser.doparse(&raw_preproc, &dbg_outfmt, in);
+ nasm_parser.doparse(&raw_preproc, &dbg_objfmt, in);
if (filename)
free(filename);
-/* $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;
char *keyword;
/* NULL-terminated list of debugging formats that are valid to use with
- * this output format.
+ * this object format.
*/
/* struct debugfmt_s **debugfmts;*/
* use)
*/
/* struct debugfmt_s *default_df;*/
-} outfmt;
+} objfmt;
-/* Available output formats */
-extern outfmt dbg_outfmt;
+/* Available object formats */
+extern objfmt dbg_objfmt;
#endif
-noinst_LIBRARIES = liboutfmt.a
+noinst_LIBRARIES = libobjfmt.a
-liboutfmt_a_SOURCES = \
- outfmt.c
+libobjfmt_a_SOURCES = \
+ objfmt.c
INCLUDES = \
-I$(top_srcdir)/src \
-/* $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"
};
-/* $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"
};
+++ /dev/null
-/* $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"
-};
+++ /dev/null
-/* $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
-/* $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
/* 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).
*
* 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 */
-/* $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;
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;
-/* $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;
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;
-/* $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
/* 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. */
-/* $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;
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;
-/* $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;
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;