diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-11-07 18:00:30 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-11-07 18:00:30 -0500 |
commit | b52ca53f448d0f9c01708a6ce2b03be3a71d3993 (patch) | |
tree | ef7406c859d566bc94cd1a77e9d5b4d539c64436 /src/chrtrans/makeuctb.c | |
parent | 1c6757afa67bdaba78ca9d902165126e54bd8061 (diff) | |
download | lynx-snapshots-b52ca53f448d0f9c01708a6ce2b03be3a71d3993.tar.gz |
snapshot of project "lynx", label v2-8-6dev_8
Diffstat (limited to 'src/chrtrans/makeuctb.c')
-rw-r--r-- | src/chrtrans/makeuctb.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c index a71cf20c..a5a1c122 100644 --- a/src/chrtrans/makeuctb.c +++ b/src/chrtrans/makeuctb.c @@ -141,8 +141,8 @@ int unicount[MAX_FONTLEN]; struct unimapdesc_str themap_str = {0, NULL, 0, 0}; -static char *tblname; -static char *hdrname; +static const char *tblname; +static const char *hdrname; static int RawOrEnc = 0; static int Raw_found = 0; /* whether explicit R directive found */ @@ -248,7 +248,7 @@ int lowest_eight = 999; int main(int argc, char **argv) { - static char *first_ifdefs[] = + static const char *first_ifdefs[] = { "/*", " * Compile-in this chunk of code unless we've turned it off specifically", @@ -279,7 +279,7 @@ int main(int argc, char **argv) "#define UC_CHARSET_SETUP%s /*nothing*/", "#else" }; - static char *last_ifdefs[] = + static const char *last_ifdefs[] = { "", "#endif /* NO_CHARSET%s */", @@ -323,7 +323,8 @@ int main(int argc, char **argv) chdr = stdout; hdrname = "stdout"; } else { - strcpy(hdrname = outname, tblname); + strcpy(outname, tblname); + hdrname = outname; if ((p = strrchr(outname, '.')) == 0) p = outname + strlen(outname); strcpy(p, ".h"); |