diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-03-18 04:47:01 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-03-18 04:47:01 +0000 |
| commit | 6cbde8909b551f9561f0a06c210fb9fc059c4485 (patch) | |
| tree | 3d24e8bf8197cd62ccc5662523d0e88428d2e3a5 /src/xutf8/ucs2fontmap.c | |
| parent | 5d601837b99ceb6285718034959bf38ca4a749cb (diff) | |
xutf8 files code conformance:
o C files containing C++ "//" comments -> C style "/* */" comments
o Converted unintended doxygen style comments to regular C comments
o FLTK brace/indent coding standard conformance
o Tested linux + sgi
o Avoided mods to xutf8/lcUniConv [libiconv/FSF code]
to avoid unwanted diffs with future updates of that lib
as per Fabien's fltk.dev request 03/14/09.
(Those files already compliant anyway)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/xutf8/ucs2fontmap.c')
| -rw-r--r-- | src/xutf8/ucs2fontmap.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/xutf8/ucs2fontmap.c b/src/xutf8/ucs2fontmap.c index 50535f6ef..f1b966981 100644 --- a/src/xutf8/ucs2fontmap.c +++ b/src/xutf8/ucs2fontmap.c @@ -32,8 +32,8 @@ #define conv_t void* #define ucs4_t unsigned int typedef struct { - unsigned short indx; - unsigned short used; + unsigned short indx; + unsigned short used; } Summary16; @@ -62,10 +62,10 @@ typedef struct { #include "headers/symbol_.h" #include "headers/dingbats_.h" - /*************** conv_gen.c ************/ +/*************** conv_gen.c ************/ + /*const*/ -int ucs2fontmap(char *s, unsigned int ucs, int enc) -{ +int ucs2fontmap(char *s, unsigned int ucs, int enc) { switch(enc) { case 0: /* iso10646-1 */ s[0] = (char) ((ucs & 0xFF00) >> 8); @@ -302,8 +302,7 @@ int ucs2fontmap(char *s, unsigned int ucs, int enc) }; /*const*/ -int encoding_number(const char *enc) -{ +int encoding_number(const char *enc) { if (!enc || !strncmp(enc, "iso10646-1", 10)) { return 0; } else if (!strcmp(enc, "iso8859-1")) { |
