From: Peter Johnson Date: Thu, 28 Jun 2001 21:22:01 +0000 (-0000) Subject: Use ANSI C compliant #ifndef wrappers (_A_H_ -> YASM_A_H). X-Git-Tag: v0.1.0~447 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=616bd619947f3d4d907c009bbcdc21e6f3cea5d8;p=yasm Use ANSI C compliant #ifndef wrappers (_A_H_ -> YASM_A_H). svn path=/trunk/yasm/; revision=64 --- diff --git a/include/bytecode.h b/include/bytecode.h index 3062e4e3..d17ec0a6 100644 --- a/include/bytecode.h +++ b/include/bytecode.h @@ -1,4 +1,4 @@ -/* $Id: bytecode.h,v 1.7 2001/05/30 07:41:03 peter Exp $ +/* $Id: bytecode.h,v 1.8 2001/06/28 21:22:01 peter Exp $ * Bytecode utility functions header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _BYTECODE_H_ -#define _BYTECODE_H_ +#ifndef YASM_BYTECODE_H +#define YASM_BYTECODE_H typedef struct effaddr_s { unsigned long disp; /* address displacement */ diff --git a/include/errwarn.h b/include/errwarn.h index c17599d3..0d8d3c8f 100644 --- a/include/errwarn.h +++ b/include/errwarn.h @@ -1,4 +1,4 @@ -/* $Id: errwarn.h,v 1.6 2001/06/13 05:56:06 mu Exp $ +/* $Id: errwarn.h,v 1.7 2001/06/28 21:22:01 peter Exp $ * Error and warning reporting and related functions header file. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _ERRWARN_H_ -#define _ERRWARN_H_ +#ifndef YASM_ERRWARN_H +#define YASM_ERRWARN_H char *conv_unprint(char ch); diff --git a/include/globals.h b/include/globals.h index 8e183374..a5fe788f 100644 --- a/include/globals.h +++ b/include/globals.h @@ -1,4 +1,4 @@ -/* $Id: globals.h,v 1.2 2001/06/13 05:43:59 mu Exp $ +/* $Id: globals.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Globals header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _GLOBALS_H_ -#define _GLOBALS_H_ +#ifndef YASM_GLOBALS_H +#define YASM_GLOBALS_H extern unsigned int line_number; extern unsigned int mode_bits; diff --git a/include/section.h b/include/section.h index 41bbf5a3..cf6e057d 100644 --- a/include/section.h +++ b/include/section.h @@ -1,4 +1,4 @@ -/* $Id: section.h,v 1.1 2001/05/15 05:28:44 peter Exp $ +/* $Id: section.h,v 1.2 2001/06/28 21:22:01 peter Exp $ * Section header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SECTION_H_ -#define _SECTION_H_ +#ifndef YASM_SECTION_H +#define YASM_SECTION_H typedef struct section_s { struct section_s *next; diff --git a/include/symrec.h b/include/symrec.h index 525c4bd5..7b4ac930 100644 --- a/include/symrec.h +++ b/include/symrec.h @@ -1,4 +1,4 @@ -/* $Id: symrec.h,v 1.3 2001/06/13 05:43:59 mu Exp $ +/* $Id: symrec.h,v 1.4 2001/06/28 21:22:01 peter Exp $ * Symbol table handling header file * * Copyright (C) 2001 Michael Urman @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SYMREC_H_ -#define _SYMREC_H_ +#ifndef YASM_SYMREC_H +#define YASM_SYMREC_H typedef enum { SYM_NOSTATUS = 0, diff --git a/include/util.h b/include/util.h index df5fe7f4..448e7c14 100644 --- a/include/util.h +++ b/include/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.2 2001/06/28 08:48:32 peter Exp $ +/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#ifndef YASM_UTIL_H +#define YASM_UTIL_H #ifndef HAVE_STRDUP char *strdup(const char *str); diff --git a/libyasm/bytecode.h b/libyasm/bytecode.h index 3062e4e3..d17ec0a6 100644 --- a/libyasm/bytecode.h +++ b/libyasm/bytecode.h @@ -1,4 +1,4 @@ -/* $Id: bytecode.h,v 1.7 2001/05/30 07:41:03 peter Exp $ +/* $Id: bytecode.h,v 1.8 2001/06/28 21:22:01 peter Exp $ * Bytecode utility functions header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _BYTECODE_H_ -#define _BYTECODE_H_ +#ifndef YASM_BYTECODE_H +#define YASM_BYTECODE_H typedef struct effaddr_s { unsigned long disp; /* address displacement */ diff --git a/libyasm/errwarn.h b/libyasm/errwarn.h index c17599d3..0d8d3c8f 100644 --- a/libyasm/errwarn.h +++ b/libyasm/errwarn.h @@ -1,4 +1,4 @@ -/* $Id: errwarn.h,v 1.6 2001/06/13 05:56:06 mu Exp $ +/* $Id: errwarn.h,v 1.7 2001/06/28 21:22:01 peter Exp $ * Error and warning reporting and related functions header file. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _ERRWARN_H_ -#define _ERRWARN_H_ +#ifndef YASM_ERRWARN_H +#define YASM_ERRWARN_H char *conv_unprint(char ch); diff --git a/libyasm/linemgr.h b/libyasm/linemgr.h index 81208ecb..30153d4f 100644 --- a/libyasm/linemgr.h +++ b/libyasm/linemgr.h @@ -1,4 +1,4 @@ -/* $Id: linemgr.h,v 1.2 2001/06/13 05:43:59 mu Exp $ +/* $Id: linemgr.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Globals header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _GLOBALS_H_ -#define _GLOBALS_H_ +#ifndef YASM_GLOBALS_H +#define YASM_GLOBALS_H extern unsigned int line_number; extern unsigned int mode_bits; diff --git a/libyasm/section.h b/libyasm/section.h index 41bbf5a3..cf6e057d 100644 --- a/libyasm/section.h +++ b/libyasm/section.h @@ -1,4 +1,4 @@ -/* $Id: section.h,v 1.1 2001/05/15 05:28:44 peter Exp $ +/* $Id: section.h,v 1.2 2001/06/28 21:22:01 peter Exp $ * Section header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SECTION_H_ -#define _SECTION_H_ +#ifndef YASM_SECTION_H +#define YASM_SECTION_H typedef struct section_s { struct section_s *next; diff --git a/libyasm/symrec.h b/libyasm/symrec.h index 525c4bd5..7b4ac930 100644 --- a/libyasm/symrec.h +++ b/libyasm/symrec.h @@ -1,4 +1,4 @@ -/* $Id: symrec.h,v 1.3 2001/06/13 05:43:59 mu Exp $ +/* $Id: symrec.h,v 1.4 2001/06/28 21:22:01 peter Exp $ * Symbol table handling header file * * Copyright (C) 2001 Michael Urman @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SYMREC_H_ -#define _SYMREC_H_ +#ifndef YASM_SYMREC_H +#define YASM_SYMREC_H typedef enum { SYM_NOSTATUS = 0, diff --git a/libyasm/util.h b/libyasm/util.h index df5fe7f4..448e7c14 100644 --- a/libyasm/util.h +++ b/libyasm/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.2 2001/06/28 08:48:32 peter Exp $ +/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#ifndef YASM_UTIL_H +#define YASM_UTIL_H #ifndef HAVE_STRDUP char *strdup(const char *str); diff --git a/src/bytecode.h b/src/bytecode.h index 3062e4e3..d17ec0a6 100644 --- a/src/bytecode.h +++ b/src/bytecode.h @@ -1,4 +1,4 @@ -/* $Id: bytecode.h,v 1.7 2001/05/30 07:41:03 peter Exp $ +/* $Id: bytecode.h,v 1.8 2001/06/28 21:22:01 peter Exp $ * Bytecode utility functions header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _BYTECODE_H_ -#define _BYTECODE_H_ +#ifndef YASM_BYTECODE_H +#define YASM_BYTECODE_H typedef struct effaddr_s { unsigned long disp; /* address displacement */ diff --git a/src/errwarn.h b/src/errwarn.h index c17599d3..0d8d3c8f 100644 --- a/src/errwarn.h +++ b/src/errwarn.h @@ -1,4 +1,4 @@ -/* $Id: errwarn.h,v 1.6 2001/06/13 05:56:06 mu Exp $ +/* $Id: errwarn.h,v 1.7 2001/06/28 21:22:01 peter Exp $ * Error and warning reporting and related functions header file. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _ERRWARN_H_ -#define _ERRWARN_H_ +#ifndef YASM_ERRWARN_H +#define YASM_ERRWARN_H char *conv_unprint(char ch); diff --git a/src/globals.h b/src/globals.h index 8e183374..a5fe788f 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,4 +1,4 @@ -/* $Id: globals.h,v 1.2 2001/06/13 05:43:59 mu Exp $ +/* $Id: globals.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Globals header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _GLOBALS_H_ -#define _GLOBALS_H_ +#ifndef YASM_GLOBALS_H +#define YASM_GLOBALS_H extern unsigned int line_number; extern unsigned int mode_bits; diff --git a/src/linemgr.h b/src/linemgr.h index 81208ecb..30153d4f 100644 --- a/src/linemgr.h +++ b/src/linemgr.h @@ -1,4 +1,4 @@ -/* $Id: linemgr.h,v 1.2 2001/06/13 05:43:59 mu Exp $ +/* $Id: linemgr.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Globals header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _GLOBALS_H_ -#define _GLOBALS_H_ +#ifndef YASM_GLOBALS_H +#define YASM_GLOBALS_H extern unsigned int line_number; extern unsigned int mode_bits; diff --git a/src/section.h b/src/section.h index 41bbf5a3..cf6e057d 100644 --- a/src/section.h +++ b/src/section.h @@ -1,4 +1,4 @@ -/* $Id: section.h,v 1.1 2001/05/15 05:28:44 peter Exp $ +/* $Id: section.h,v 1.2 2001/06/28 21:22:01 peter Exp $ * Section header file * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SECTION_H_ -#define _SECTION_H_ +#ifndef YASM_SECTION_H +#define YASM_SECTION_H typedef struct section_s { struct section_s *next; diff --git a/src/symrec.h b/src/symrec.h index 525c4bd5..7b4ac930 100644 --- a/src/symrec.h +++ b/src/symrec.h @@ -1,4 +1,4 @@ -/* $Id: symrec.h,v 1.3 2001/06/13 05:43:59 mu Exp $ +/* $Id: symrec.h,v 1.4 2001/06/28 21:22:01 peter Exp $ * Symbol table handling header file * * Copyright (C) 2001 Michael Urman @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _SYMREC_H_ -#define _SYMREC_H_ +#ifndef YASM_SYMREC_H +#define YASM_SYMREC_H typedef enum { SYM_NOSTATUS = 0, diff --git a/src/util.h b/src/util.h index df5fe7f4..448e7c14 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.2 2001/06/28 08:48:32 peter Exp $ +/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#ifndef YASM_UTIL_H +#define YASM_UTIL_H #ifndef HAVE_STRDUP char *strdup(const char *str); diff --git a/util.h b/util.h index df5fe7f4..448e7c14 100644 --- a/util.h +++ b/util.h @@ -1,4 +1,4 @@ -/* $Id: util.h,v 1.2 2001/06/28 08:48:32 peter Exp $ +/* $Id: util.h,v 1.3 2001/06/28 21:22:01 peter Exp $ * Defines prototypes for replacement functions if needed. * * Copyright (C) 2001 Peter Johnson @@ -19,8 +19,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifndef _UTIL_H_ -#define _UTIL_H_ +#ifndef YASM_UTIL_H +#define YASM_UTIL_H #ifndef HAVE_STRDUP char *strdup(const char *str);