diff options
author | Tristan Gingold <tgingold@free.fr> | 2014-01-20 04:49:03 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2014-01-20 04:49:03 +0100 |
commit | ef5ceab6277b6bf62d6d5121bdd0f0a253b7a602 (patch) | |
tree | b045c321f2bd23c53602ac7a86a903276b111bf9 /ortho | |
parent | 2a3d8be55d1e3abcae1bf820c2dbd1968c8e2bea (diff) | |
download | ghdl-ef5ceab6277b6bf62d6d5121bdd0f0a253b7a602.tar.gz ghdl-ef5ceab6277b6bf62d6d5121bdd0f0a253b7a602.tar.bz2 ghdl-ef5ceab6277b6bf62d6d5121bdd0f0a253b7a602.zip |
Fix interface of ortho_handle_option: do not confuse int and bool.
Diffstat (limited to 'ortho')
-rw-r--r-- | ortho/gcc/ortho-lang.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ortho/gcc/ortho-lang.c b/ortho/gcc/ortho-lang.c index 33c883b4a..65640cbd3 100644 --- a/ortho/gcc/ortho-lang.c +++ b/ortho/gcc/ortho-lang.c @@ -406,7 +406,7 @@ ortho_post_options (const char **pfilename) return false; } -extern "C" bool lang_handle_option (const char *opt, const char *arg); +extern "C" int lang_handle_option (const char *opt, const char *arg); static bool ortho_handle_option (size_t code, const char *arg, int value, int kind, @@ -424,7 +424,7 @@ ortho_handle_option (size_t code, const char *arg, int value, int kind, case OPT_c: case OPT__anaelab: /* Only a few options have a real arguments. */ - return lang_handle_option (opt, arg); + return lang_handle_option (opt, arg) != 0; default: /* The other options must have a joint argument. */ if (arg != NULL) @@ -432,7 +432,7 @@ ortho_handle_option (size_t code, const char *arg, int value, int kind, size_t len1; size_t len2; char *nopt; - + len1 = strlen (opt); len2 = strlen (arg); nopt = (char *) alloca (len1 + len2 + 1); @@ -441,7 +441,7 @@ ortho_handle_option (size_t code, const char *arg, int value, int kind, nopt[len1 + len2] = 0; opt = nopt; } - return lang_handle_option (opt, NULL); + return lang_handle_option (opt, NULL) != 0; } } |