summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2001-11-03 05:17:51 +0000
committerPeter Johnson <peter@tortall.net>2001-11-03 05:17:51 +0000
commita7ac50c9181e518e4d0e0d2a6e74992bc2dd2244 (patch)
tree0c2b9c66b019129d76639e8bbe6c8f49b71dec7c /frontends
parent405df52913eea27d16aa7bde7b8e16e79e6cb3c4 (diff)
downloadyasm-a7ac50c9181e518e4d0e0d2a6e74992bc2dd2244.tar.gz
Add coretype.h, make util.h do a lot more, use util.h to simplify include
sections of C files. Also remove IdPath from top comment in files where RCSID() is used. Move RCSID() to immediately after util.h include. svn path=/trunk/yasm/; revision=313
Diffstat (limited to 'frontends')
-rw-r--r--frontends/yasm/yasm-options.c21
-rw-r--r--frontends/yasm/yasm.c21
2 files changed, 4 insertions, 38 deletions
diff --git a/frontends/yasm/yasm-options.c b/frontends/yasm/yasm-options.c
index efe7882e..5eef8b24 100644
--- a/frontends/yasm/yasm-options.c
+++ b/frontends/yasm/yasm-options.c
@@ -1,4 +1,4 @@
-/* $IdPath$
+/*
* Generic Options Support Header File
*
* Copyright (c) 2001 Stanislav Karchebny <berk@madfire.net>
@@ -27,25 +27,8 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#include "util.h"
-
-#include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <string.h>
-#endif
-
-#include <libintl.h>
-#define _(String) gettext(String)
-#ifdef gettext_noop
-#define N_(String) gettext_noop(String)
-#else
-#define N_(String) (String)
-#endif
+RCSID("$IdPath$");
#include "options.h"
#include "errwarn.h"
diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c
index 45e76049..0b4d711f 100644
--- a/frontends/yasm/yasm.c
+++ b/frontends/yasm/yasm.c
@@ -1,4 +1,4 @@
-/* $IdPath$
+/*
* Program entry point, command line parsing
*
* Copyright (C) 2001 Peter Johnson
@@ -19,21 +19,9 @@
* 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"
+RCSID("$IdPath$");
-#include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
-
-#include <libintl.h>
-#define _(String) gettext(String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
@@ -53,11 +41,6 @@
#include "preproc.h"
#include "parser.h"
-#ifdef DMALLOC
-# include <dmalloc.h>
-#endif
-
-RCSID("$IdPath$");
#ifndef countof
#define countof(x,y) (sizeof(x)/sizeof(y))