diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-01 18:03:10 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-06 20:28:20 +0200 |
| commit | f09e17c3c564e8310125a10c03397cbf473ff643 (patch) | |
| tree | 8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/xutf8/utils/conv_gen.c | |
| parent | b0e0c355edaa2e23148cb0260ada907aec930f05 (diff) | |
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
Diffstat (limited to 'src/xutf8/utils/conv_gen.c')
| -rw-r--r-- | src/xutf8/utils/conv_gen.c | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/src/xutf8/utils/conv_gen.c b/src/xutf8/utils/conv_gen.c index 833790269..8766971e1 100644 --- a/src/xutf8/utils/conv_gen.c +++ b/src/xutf8/utils/conv_gen.c @@ -1,5 +1,4 @@ -/* "$Id$" - * +/* * Author: Jean-Marc Lienher ( http://oksid.ch ) * Copyright 2000-2003 by O'ksi'D. * @@ -7,14 +6,14 @@ * the file "COPYING" which should have been included with this file. If this * file is missing or damaged, see the license at: * - * http://www.fltk.org/COPYING.php + * https://www.fltk.org/COPYING.php * - * Please report all bugs and problems on the following page: + * Please see the following page on how to report bugs and issues: * - * http://www.fltk.org/str.php + * https://www.fltk.org/bugs.php */ -/* +/* * generate the "if(){} else if ..." structure of ucs2fontmap() */ #include <wchar.h> @@ -37,9 +36,9 @@ int main(int argc, char **argv) { puts(" /*************** conv_gen.c ************/"); buffer[len] = '\0'; ptr = buffer; - + printf("const int ucs2fontmap" - "(char *s, unsigned int ucs, int enc)\n"); + "(char *s, unsigned int ucs, int enc)\n"); printf("{\n"); printf(" switch(enc) {\n"); printf(" case 0:\n"); @@ -49,7 +48,7 @@ int main(int argc, char **argv) { while (len > 0) { unsigned char *p = ptr; unsigned char *f, *t; - + while (*p != ']') { i++; p++; @@ -88,7 +87,7 @@ int main(int argc, char **argv) { while (*ptr != '\n') { ptr++; len--; - } + } ptr++; len--; } @@ -112,21 +111,21 @@ int main(int argc, char **argv) { ptr--; while (ptr != encode[i]) { if (*ptr == '_') { - *ptr = '-'; - ptr--; - break; + *ptr = '-'; + ptr--; + break; } ptr--; } while (ptr != encode[i]) { if (*ptr == '_') { - *ptr = '.'; + *ptr = '.'; } ptr--; } printf(" } else if (!strcmp(enc, \"%s\")", encode[i] +11); - if (!strcmp(encode[i] + 11, "big5-0")) { + if (!strcmp(encode[i] + 11, "big5-0")) { printf(" || !strcmp(enc, \"big5.eten-0\")"); } else if (!strcmp(encode[i] + 11, "dingbats")) { printf(" || !strcmp(enc, \"zapfdingbats\")"); @@ -140,11 +139,11 @@ int main(int argc, char **argv) { printf(" return %d;\n", i); i++; } - printf(" };\n"); - printf(" return -1;\n"); - printf("};\n\n"); + printf(" };\n"); + printf(" return -1;\n"); + printf("};\n\n"); - printf("/*\n"); + printf("/*\n"); printf("const char *encoding_name(int num)\n{\n"); printf(" switch (num) {\n"); i = 1; @@ -156,10 +155,6 @@ int main(int argc, char **argv) { printf(" };\n"); printf(" return \"iso10646-1\";\n"); printf("};\n\n"); - printf("*/\n"); + printf("*/\n"); return 0; } - -/* - * End of "$Id$". - */ |
