files that weren't yet.
svn path=/trunk/yasm/; revision=150
-/* $Id: yasm.c,v 1.8 2001/08/19 05:41:01 peter Exp $
+/* $Id: yasm.c,v 1.9 2001/08/19 07:33:47 peter Exp $
* Program entry point, command line parsing
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "util.h"
+
+#include <stdio.h>
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: bytecode.c,v 1.17 2001/08/19 05:41:01 peter Exp $
+/* $Id: bytecode.c,v 1.18 2001/08/19 07:33:47 peter Exp $
* Bytecode utility functions
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "util.h"
+
+#include <stdio.h>
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "bytecode.h"
+
/* Static structures for when NULL is passed to conversion functions. */
/* for Convert*ToEA() */
static effaddr eff_static;
-/* $Id: errwarn.c,v 1.20 2001/08/19 03:52:58 peter Exp $
+/* $Id: errwarn.c,v 1.21 2001/08/19 07:33:47 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
+#include <ctype.h>
#ifdef STDC_HEADERS
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
+# include <stdlib.h>
+# include <stdarg.h>
+# include <string.h>
#endif
-#include <ctype.h>
-
-#include "util.h"
-
-#include "errwarn.h"
#include "globals.h"
+#include "errwarn.h"
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
-/* $Id: expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: symrec.c,v 1.6 2001/08/19 03:52:58 peter Exp $
+/* $Id: symrec.c,v 1.7 2001/08/19 07:33:47 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
-#include "symrec.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "symrec.h"
/* private functions */
static symtab *symtab_get(char *);
-/* $Id: xstrdup.c,v 1.2 2001/06/28 22:21:17 peter Exp $
+/* $Id: xstrdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# include "config.h"
#endif
+#include "util.h"
+
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# endif
#endif
-#include "util.h"
-
char *
strdup(const char *str)
{
-/* $Id: expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: x86expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: x86expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: dbg-objfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: dbg-objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: objfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: outfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: outfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: bison.y.in,v 1.25 2001/08/19 05:44:53 peter Exp $
+/* $Id: bison.y.in,v 1.26 2001/08/19 07:33:47 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
# include "config.h"
#endif
-#include <math.h>
-#include <stdlib.h>
#include "util.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <math.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
#define YYDEBUG 1
-/* $Id: nasm-bison.y,v 1.25 2001/08/19 05:44:53 peter Exp $
+/* $Id: nasm-bison.y,v 1.26 2001/08/19 07:33:47 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
# include "config.h"
#endif
-#include <math.h>
-#include <stdlib.h>
#include "util.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <math.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
#define YYDEBUG 1
-/* $Id: nasm-parser.c,v 1.4 2001/08/19 05:41:01 peter Exp $
+/* $Id: nasm-parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
#include "util.h"
+
+#include <stdio.h>
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: parser.c,v 1.4 2001/08/19 05:41:01 peter Exp $
+/* $Id: parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
#include "util.h"
+
+#include <stdio.h>
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: token.l.in,v 1.13 2001/08/19 02:15:18 peter Exp $
+/* $Id: token.l.in,v 1.14 2001/08/19 07:33:47 peter Exp $
* Main lexer
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <string.h>
#endif
-#include "util.h"
-
-#include "symrec.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
+
#include "bison.h"
#define yylval nasm_parser_lval
-/* $Id: preproc.c,v 1.3 2001/08/19 03:52:58 peter Exp $
+/* $Id: preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
+
+#include "errwarn.h"
+
#include "outfmt.h"
#include "preproc.h"
-#include "errwarn.h"
static int is_interactive;
static FILE *in;
-/* $Id: raw-preproc.c,v 1.3 2001/08/19 03:52:58 peter Exp $
+/* $Id: raw-preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
+
+#include "errwarn.h"
+
#include "outfmt.h"
#include "preproc.h"
-#include "errwarn.h"
static int is_interactive;
static FILE *in;
-/* $Id: expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: x86expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: x86expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: bytecode.c,v 1.17 2001/08/19 05:41:01 peter Exp $
+/* $Id: bytecode.c,v 1.18 2001/08/19 07:33:47 peter Exp $
* Bytecode utility functions
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "util.h"
+
+#include <stdio.h>
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "bytecode.h"
+
/* Static structures for when NULL is passed to conversion functions. */
/* for Convert*ToEA() */
static effaddr eff_static;
-/* $Id: errwarn.c,v 1.20 2001/08/19 03:52:58 peter Exp $
+/* $Id: errwarn.c,v 1.21 2001/08/19 07:33:47 peter Exp $
* Error and warning reporting and related functions.
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#include <stdio.h>
+#include <ctype.h>
#ifdef STDC_HEADERS
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
+# include <stdlib.h>
+# include <stdarg.h>
+# include <string.h>
#endif
-#include <ctype.h>
-
-#include "util.h"
-
-#include "errwarn.h"
#include "globals.h"
+#include "errwarn.h"
/* Total error count for entire assembler run.
* Assembler should exit with EXIT_FAILURE if this is >= 0 on finish. */
-/* $Id: expr.c,v 1.5 2001/08/19 03:52:58 peter Exp $
+/* $Id: expr.c,v 1.6 2001/08/19 07:33:47 peter Exp $
* Expression handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include <stdio.h>
-#include "expr.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "expr.h"
+#include "symrec.h"
/* allocate a new expression node, with children as defined.
* If it's a unary operator, put the element on the right */
-/* $Id: main.c,v 1.8 2001/08/19 05:41:01 peter Exp $
+/* $Id: main.c,v 1.9 2001/08/19 07:33:47 peter Exp $
* Program entry point, command line parsing
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include "util.h"
+
+#include <stdio.h>
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: dbg-objfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: dbg-objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: objfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: objfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: outfmt.c,v 1.1 2001/08/19 02:15:18 peter Exp $
+/* $Id: outfmt.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* Debugging output format (used to debug output format module interface)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
#include "outfmt.h"
/* Define outfmt structure -- see outfmt.h for details */
-/* $Id: bison.y.in,v 1.25 2001/08/19 05:44:53 peter Exp $
+/* $Id: bison.y.in,v 1.26 2001/08/19 07:33:47 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
# include "config.h"
#endif
-#include <math.h>
-#include <stdlib.h>
#include "util.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <math.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
#define YYDEBUG 1
-/* $Id: nasm-bison.y,v 1.25 2001/08/19 05:44:53 peter Exp $
+/* $Id: nasm-bison.y,v 1.26 2001/08/19 07:33:47 peter Exp $
* Main bison parser
*
* Copyright (C) 2001 Peter Johnson, Michael Urman
# include "config.h"
#endif
-#include <math.h>
-#include <stdlib.h>
#include "util.h"
-#include "symrec.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <math.h>
+#endif
+
#include "globals.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
#define YYDEBUG 1
-/* $Id: nasm-parser.c,v 1.4 2001/08/19 05:41:01 peter Exp $
+/* $Id: nasm-parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
#include "util.h"
+
+#include <stdio.h>
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: parser.c,v 1.4 2001/08/19 05:41:01 peter Exp $
+/* $Id: parser.c,v 1.5 2001/08/19 07:33:47 peter Exp $
* NASM-compatible parser
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
-#include <stdio.h>
#include "util.h"
+
+#include <stdio.h>
+
#include "bytecode.h"
#include "section.h"
#include "outfmt.h"
-/* $Id: token.l.in,v 1.13 2001/08/19 02:15:18 peter Exp $
+/* $Id: token.l.in,v 1.14 2001/08/19 07:33:47 peter Exp $
* Main lexer
*
* Copyright (C) 2001 Peter Johnson
# include "config.h"
#endif
+#include "util.h"
+
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <string.h>
#endif
-#include "util.h"
-
-#include "symrec.h"
-#include "bytecode.h"
#include "errwarn.h"
#include "expr.h"
+#include "symrec.h"
+
+#include "bytecode.h"
+
#include "bison.h"
#define yylval nasm_parser_lval
-/* $Id: preproc.c,v 1.3 2001/08/19 03:52:58 peter Exp $
+/* $Id: preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
+
+#include "errwarn.h"
+
#include "outfmt.h"
#include "preproc.h"
-#include "errwarn.h"
static int is_interactive;
static FILE *in;
-/* $Id: raw-preproc.c,v 1.3 2001/08/19 03:52:58 peter Exp $
+/* $Id: raw-preproc.c,v 1.4 2001/08/19 07:33:47 peter Exp $
* Raw preprocessor (preforms NO preprocessing)
*
* 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
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdio.h>
+
+#include "errwarn.h"
+
#include "outfmt.h"
#include "preproc.h"
-#include "errwarn.h"
static int is_interactive;
static FILE *in;
-/* $Id: strdup.c,v 1.2 2001/06/28 22:21:17 peter Exp $
+/* $Id: strdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# include "config.h"
#endif
+#include "util.h"
+
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# endif
#endif
-#include "util.h"
-
char *
strdup(const char *str)
{
-/* $Id: strtoul.c,v 1.1 2001/06/29 02:06:55 peter Exp $
+/* $Id: strtoul.c,v 1.2 2001/08/19 07:33:47 peter Exp $
* strtoul() implementation for systems that don't have it.
*
* Copyright (c) 1990, 1993
# include "config.h"
#endif
-#include <limits.h>
+#include "util.h"
+
+#ifdef HAVE_LIMITS_H
+# include <limits.h>
+#endif
#include <ctype.h>
#include <errno.h>
+
#ifdef STDC_HEADERS
# include <stdlib.h>
#endif
-#include "util.h"
-
/*
* Convert a string to an unsigned long integer.
*
-/* $Id: symrec.c,v 1.6 2001/08/19 03:52:58 peter Exp $
+/* $Id: symrec.c,v 1.7 2001/08/19 07:33:47 peter Exp $
* Symbol table handling
*
* Copyright (C) 2001 Michael Urman
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdlib.h>
-#include <string.h>
-#include "symrec.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "util.h"
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <string.h>
+#endif
+
#include "globals.h"
#include "errwarn.h"
+#include "symrec.h"
/* private functions */
static symtab *symtab_get(char *);
-/* $Id: xstrdup.c,v 1.2 2001/06/28 22:21:17 peter Exp $
+/* $Id: xstrdup.c,v 1.3 2001/08/19 07:33:47 peter Exp $
* strdup() implementation for systems that don't have it.
*
* Copyright (c) 1988, 1993
# include "config.h"
#endif
+#include "util.h"
+
#ifdef STDC_HEADERS
# include <stddef.h>
# include <stdlib.h>
# endif
#endif
-#include "util.h"
-
char *
strdup(const char *str)
{