From: Peter Johnson Date: Thu, 27 Sep 2001 07:52:57 +0000 (-0000) Subject: Initialize BitVector framework. X-Git-Tag: v0.1.0~284 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0baab0debd008c558d65d94aa4903139e30085f6;p=yasm Initialize BitVector framework. svn path=/trunk/yasm/; revision=246 --- diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c index 11ece76a..1e869dff 100644 --- a/frontends/yasm/yasm.c +++ b/frontends/yasm/yasm.c @@ -32,6 +32,16 @@ # include #endif +#include +#define _(String) gettext(String) +#ifdef gettext_noop +#define N_(String) gettext_noop(String) +#else +#define N_(String) (String) +#endif + +#include "bitvect.h" + #include "globals.h" #include "errwarn.h" @@ -48,6 +58,12 @@ main(int argc, char *argv[]) { FILE *in; + /* Initialize BitVector (needed for floating point). */ + if (BitVector_Boot() != ErrCode_Ok) { + fprintf(stderr, _("Could not initialize BitVector")); + return EXIT_FAILURE; + } + if (argc == 2) { in = fopen(argv[1], "rt"); if (!in) { diff --git a/src/main.c b/src/main.c index 11ece76a..1e869dff 100644 --- a/src/main.c +++ b/src/main.c @@ -32,6 +32,16 @@ # include #endif +#include +#define _(String) gettext(String) +#ifdef gettext_noop +#define N_(String) gettext_noop(String) +#else +#define N_(String) (String) +#endif + +#include "bitvect.h" + #include "globals.h" #include "errwarn.h" @@ -48,6 +58,12 @@ main(int argc, char *argv[]) { FILE *in; + /* Initialize BitVector (needed for floating point). */ + if (BitVector_Boot() != ErrCode_Ok) { + fprintf(stderr, _("Could not initialize BitVector")); + return EXIT_FAILURE; + } + if (argc == 2) { in = fopen(argv[1], "rt"); if (!in) {