-/* $Id: yasm.c,v 1.9 2001/08/19 07:33:47 peter Exp $
+/* $Id: yasm.c,v 1.10 2001/08/19 07:46:52 peter Exp $
* Program entry point, command line parsing
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: yasm.c,v 1.10 2001/08/19 07:46:52 peter Exp $");
+
char *filename = (char *)NULL;
unsigned int line_number = 1;
unsigned int mode_bits = 32;
-/* $Id: bytecode.c,v 1.18 2001/08/19 07:33:47 peter Exp $
+/* $Id: bytecode.c,v 1.19 2001/08/19 07:46:52 peter Exp $
* Bytecode utility functions
*
* Copyright (C) 2001 Peter Johnson
#include "bytecode.h"
+RCSID("$Id: bytecode.c,v 1.19 2001/08/19 07:46:52 peter Exp $");
+
/* Static structures for when NULL is passed to conversion functions. */
/* for Convert*ToEA() */
static effaddr eff_static;
-/* $Id: errwarn.c,v 1.21 2001/08/19 07:33:47 peter Exp $
+/* $Id: errwarn.c,v 1.22 2001/08/19 07:46:52 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
#include "globals.h"
#include "errwarn.h"
+RCSID("$Id: errwarn.c,v 1.22 2001/08/19 07:46:52 peter Exp $");
+
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
unsigned int error_count = 0;
-/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: symrec.c,v 1.7 2001/08/19 07:33:47 peter Exp $
+/* $Id: symrec.c,v 1.8 2001/08/19 07:46:52 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
#include "errwarn.h"
#include "symrec.h"
+RCSID("$Id: symrec.c,v 1.8 2001/08/19 07:46:52 peter Exp $");
+
/* private functions */
static symtab *symtab_get(char *);
static symtab *symtab_new(char *, SymType);
-/* $Id: xstrdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
+/* $Id: xstrdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# endif
#endif
+RCSID("$Id: xstrdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $");
+
char *
strdup(const char *str)
{
-/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: x86expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: x86expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: x86expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: dbg-objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $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)
*
* Copyright (C) 2001 Peter Johnson
#include "outfmt.h"
+RCSID("$Id: dbg-objfmt.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",
-/* $Id: objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $Id: objfmt.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
#include "outfmt.h"
+RCSID("$Id: objfmt.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",
-/* $Id: outfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $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
#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",
-/* $Id: bison.y.in,v 1.26 2001/08/19 07:33:47 peter Exp $
+/* $Id: bison.y.in,v 1.27 2001/08/19 07:46:52 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
#include "bytecode.h"
+RCSID("$Id: bison.y.in,v 1.27 2001/08/19 07:46:52 peter Exp $");
+
#define YYDEBUG 1
void init_table(void);
-/* $Id: nasm-bison.y,v 1.26 2001/08/19 07:33:47 peter Exp $
+/* $Id: nasm-bison.y,v 1.27 2001/08/19 07:46:52 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
#include "bytecode.h"
+RCSID("$Id: nasm-bison.y,v 1.27 2001/08/19 07:46:52 peter Exp $");
+
#define YYDEBUG 1
void init_table(void);
-/* $Id: nasm-parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
+/* $Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+
extern FILE *nasm_parser_in;
extern int nasm_parser_debug;
-/* $Id: parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
+/* $Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+
extern FILE *nasm_parser_in;
extern int nasm_parser_debug;
-/* $Id: token.l.in,v 1.14 2001/08/19 07:33:47 peter Exp $
+/* $Id: token.l.in,v 1.15 2001/08/19 07:46:52 peter Exp $
* Main lexer
*
* Copyright (C) 2001 Peter Johnson
#include "bison.h"
+RCSID("$Id: token.l.in,v 1.15 2001/08/19 07:46:52 peter Exp $");
+
#define yylval nasm_parser_lval
extern int (*nasm_parser_yyinput) (char *buf, int max_size);
-/* $Id: preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
+/* $Id: preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
#include "errwarn.h"
#include "outfmt.h"
#include "preproc.h"
+RCSID("$Id: preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $");
+
static int is_interactive;
static FILE *in;
-/* $Id: raw-preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
+/* $Id: raw-preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
#include "errwarn.h"
#include "outfmt.h"
#include "preproc.h"
+RCSID("$Id: raw-preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $");
+
static int is_interactive;
static FILE *in;
-/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: x86expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: x86expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: x86expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: bytecode.c,v 1.18 2001/08/19 07:33:47 peter Exp $
+/* $Id: bytecode.c,v 1.19 2001/08/19 07:46:52 peter Exp $
* Bytecode utility functions
*
* Copyright (C) 2001 Peter Johnson
#include "bytecode.h"
+RCSID("$Id: bytecode.c,v 1.19 2001/08/19 07:46:52 peter Exp $");
+
/* Static structures for when NULL is passed to conversion functions. */
/* for Convert*ToEA() */
static effaddr eff_static;
-/* $Id: errwarn.c,v 1.21 2001/08/19 07:33:47 peter Exp $
+/* $Id: errwarn.c,v 1.22 2001/08/19 07:46:52 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
#include "globals.h"
#include "errwarn.h"
+RCSID("$Id: errwarn.c,v 1.22 2001/08/19 07:46:52 peter Exp $");
+
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
unsigned int error_count = 0;
-/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
+/* $Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
#include "expr.h"
#include "symrec.h"
+RCSID("$Id: expr.c,v 1.7 2001/08/19 07:46:52 peter Exp $");
+
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
expr *
-/* $Id: main.c,v 1.9 2001/08/19 07:33:47 peter Exp $
+/* $Id: main.c,v 1.10 2001/08/19 07:46:52 peter Exp $
* Program entry point, command line parsing
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: main.c,v 1.10 2001/08/19 07:46:52 peter Exp $");
+
char *filename = (char *)NULL;
unsigned int line_number = 1;
unsigned int mode_bits = 32;
-/* $Id: dbg-objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $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)
*
* Copyright (C) 2001 Peter Johnson
#include "outfmt.h"
+RCSID("$Id: dbg-objfmt.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",
-/* $Id: objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $Id: objfmt.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
#include "outfmt.h"
+RCSID("$Id: objfmt.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",
-/* $Id: outfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $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
#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",
-/* $Id: bison.y.in,v 1.26 2001/08/19 07:33:47 peter Exp $
+/* $Id: bison.y.in,v 1.27 2001/08/19 07:46:52 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
#include "bytecode.h"
+RCSID("$Id: bison.y.in,v 1.27 2001/08/19 07:46:52 peter Exp $");
+
#define YYDEBUG 1
void init_table(void);
-/* $Id: nasm-bison.y,v 1.26 2001/08/19 07:33:47 peter Exp $
+/* $Id: nasm-bison.y,v 1.27 2001/08/19 07:46:52 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
#include "bytecode.h"
+RCSID("$Id: nasm-bison.y,v 1.27 2001/08/19 07:46:52 peter Exp $");
+
#define YYDEBUG 1
void init_table(void);
-/* $Id: nasm-parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
+/* $Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: nasm-parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+
extern FILE *nasm_parser_in;
extern int nasm_parser_debug;
-/* $Id: parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
+/* $Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
#include "preproc.h"
#include "parser.h"
+RCSID("$Id: parser.c,v 1.6 2001/08/19 07:46:52 peter Exp $");
+
extern FILE *nasm_parser_in;
extern int nasm_parser_debug;
-/* $Id: token.l.in,v 1.14 2001/08/19 07:33:47 peter Exp $
+/* $Id: token.l.in,v 1.15 2001/08/19 07:46:52 peter Exp $
* Main lexer
*
* Copyright (C) 2001 Peter Johnson
#include "bison.h"
+RCSID("$Id: token.l.in,v 1.15 2001/08/19 07:46:52 peter Exp $");
+
#define yylval nasm_parser_lval
extern int (*nasm_parser_yyinput) (char *buf, int max_size);
-/* $Id: preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
+/* $Id: preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
#include "errwarn.h"
#include "outfmt.h"
#include "preproc.h"
+RCSID("$Id: preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $");
+
static int is_interactive;
static FILE *in;
-/* $Id: raw-preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
+/* $Id: raw-preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
#include "errwarn.h"
#include "outfmt.h"
#include "preproc.h"
+RCSID("$Id: raw-preproc.c,v 1.5 2001/08/19 07:46:52 peter Exp $");
+
static int is_interactive;
static FILE *in;
-/* $Id: strdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
+/* $Id: strdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# endif
#endif
+RCSID("$Id: strdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $");
+
char *
strdup(const char *str)
{
-/* $Id: strtoul.c,v 1.2 2001/08/19 07:33:47 peter Exp $
+/* $Id: strtoul.c,v 1.3 2001/08/19 07:46:52 peter Exp $
* strtoul() implementation for systems that don't have it.
*
* Copyright (c) 1990, 1993
# include <stdlib.h>
#endif
+RCSID("$Id: strtoul.c,v 1.3 2001/08/19 07:46:52 peter Exp $");
+
/*
* Convert a string to an unsigned long integer.
*
-/* $Id: symrec.c,v 1.7 2001/08/19 07:33:47 peter Exp $
+/* $Id: symrec.c,v 1.8 2001/08/19 07:46:52 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
#include "errwarn.h"
#include "symrec.h"
+RCSID("$Id: symrec.c,v 1.8 2001/08/19 07:46:52 peter Exp $");
+
/* private functions */
static symtab *symtab_get(char *);
static symtab *symtab_new(char *, SymType);
-/* $Id: xstrdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
+/* $Id: xstrdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# endif
#endif
+RCSID("$Id: xstrdup.c,v 1.4 2001/08/19 07:46:52 peter Exp $");
+
char *
strdup(const char *str)
{