CINXE.COM
~vcs-imports/libiconv/trunk : revision 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta name="generator" content="<function generator_string at 0x7f7aecc201f0>" /> <title>~vcs-imports/libiconv/trunk : revision 1</title> <link rel="stylesheet" href="/static/css/global.css" /> <link rel="shortcut icon" href="/static/images/favicon.png" /> <script type="text/javascript"> var global_path = '/~vcs-imports/libiconv/trunk/'; var collapsed_icon_path = '/static/images/treeCollapsed.png'; var expanded_icon_path = '/static/images/treeExpanded.png'; </script> <script type="text/javascript" src="/static/javascript/jquery.min.js"></script> <script type="text/javascript" src="/static/javascript/custom.js"></script> <link rel="stylesheet" type="text/css" media="all" href="/static/css/diff.css"/> <script type="text/javascript" src="/static/javascript/diff.js"></script> <script type="text/javascript"> var link_data = {}; var specific_path = "tools/8bit_tab_to_h.c"; var path_to_id = {}; </script> </head> <body class="public"> <!-- Loggerhead Content Area --> <div class="black-link"> <a href="https://code.launchpad.net/~vcs-imports/libiconv/trunk"> ← Back to branch summary </a> </div> <h1 class="branch-name"> ~vcs-imports/libiconv/trunk </h1> <ul id="menuTabs"> <li><a href="/~vcs-imports/libiconv/trunk/changes" title="Changes" id="on">Changes</a></li> <li><a href="/~vcs-imports/libiconv/trunk/files" title="Files">Files</a></li> </ul> <div id="loggerheadCont"> <div id="search_terms"></div> <div id="breadcrumbs"> <a href="https://code.launchpad.net/~vcs-imports/libiconv/trunk">~vcs-imports/libiconv/trunk</a> <span class="breadcrumb">» Revision <a title="View changes to all files" href="/~vcs-imports/libiconv/trunk/revision/1">1</a> </span> <span class="breadcrumb"> : <a href="/~vcs-imports/libiconv/trunk/view/1/tools/8bit_tab_to_h.c" title="Annotate tools/8bit_tab_to_h.c">tools/8bit_tab_to_h.c</a> </span> </div> <p> <a href="/~vcs-imports/libiconv/trunk/revision/1"> « back to all changes in this revision </a> </p> <p> Viewing changes to <a href="/~vcs-imports/libiconv/trunk/view/1/tools/8bit_tab_to_h.c" title="Annotate tools/8bit_tab_to_h.c">tools/8bit_tab_to_h.c</a> </p> <ul id="submenuTabs"> <li id="first"><a href="/~vcs-imports/libiconv/trunk/files/1" title="browse files at revision 1">browse files at revision 1</a></li> <li> <a href="/~vcs-imports/libiconv/trunk/revision/1?remember=1" title="compare with another revision">compare with another revision</a></li> <li> <a id="download_link" href="/~vcs-imports/libiconv/trunk/diff/1">download diff</a> </li> <li> <a href="/~vcs-imports/libiconv/trunk/tarball/1">download tarball</a> </li> <li id="last"><a href="/~vcs-imports/libiconv/trunk/changes/1" title="view history from revision 1">view history from revision 1</a></li> </ul> <div class="infoContainer"> <div id="infTxt"> <ul> <li class="committer"> <strong>Committer:</strong> <span>Bruno Haible</span> </li> <li class="timer"> <strong>Date:</strong> <span>1999-12-31 12:50:49 UTC</span> </li> <li class="revid"> <strong>Revision ID:</strong> <span>git-v1:3af9cd39c56e113876d5d85416b106eaaf8fa23c</span> </li> </ul> <div class="tags">Tags: v0.3</div> <div class="clear"><!-- --></div> <div class="information">Import聽from聽libiconv-0.3.<br/></div> </div> <ul id="list-files"> <ul> <li class="desc">files added:</li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/AUTHORS#AUTHORS" title="View changes to AUTHORS in revision 1">AUTHORS</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/COPYING.LIB#COPYING.LIB" title="View changes to COPYING.LIB in revision 1">COPYING.LIB</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/DESIGN#DESIGN" title="View changes to DESIGN in revision 1">DESIGN</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/Makefile.devel#Makefile.devel" title="View changes to Makefile.devel in revision 1">Makefile.devel</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/Makefile.in#Makefile.in" title="View changes to Makefile.in in revision 1">Makefile.in</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/Makefile.msvc#Makefile.msvc" title="View changes to Makefile.msvc in revision 1">Makefile.msvc</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/NEWS#NEWS" title="View changes to NEWS in revision 1">NEWS</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/NOTES#NOTES" title="View changes to NOTES in revision 1">NOTES</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/PORTS#PORTS" title="View changes to PORTS in revision 1">PORTS</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/README#README" title="View changes to README in revision 1">README</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/README.win32#README.win32" title="View changes to README.win32 in revision 1">README.win32</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/TODO#TODO" title="View changes to TODO in revision 1">TODO</a> </li> </ul> <ul> <li class="files" id="directory"> autoconf </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/acgeneral.m4#autoconf/acgeneral.m4" title="View changes to autoconf/acgeneral.m4 in revision 1">autoconf/acgeneral.m4</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/aclocal.m4#autoconf/aclocal.m4" title="View changes to autoconf/aclocal.m4 in revision 1">autoconf/aclocal.m4</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/acspecific.m4#autoconf/acspecific.m4" title="View changes to autoconf/acspecific.m4 in revision 1">autoconf/acspecific.m4</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/autoconf#autoconf/autoconf" title="View changes to autoconf/autoconf in revision 1">autoconf/autoconf</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/autoconf.m4#autoconf/autoconf.m4" title="View changes to autoconf/autoconf.m4 in revision 1">autoconf/autoconf.m4</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/config.guess#autoconf/config.guess" title="View changes to autoconf/config.guess in revision 1">autoconf/config.guess</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/config.sub#autoconf/config.sub" title="View changes to autoconf/config.sub in revision 1">autoconf/config.sub</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/ltconfig#autoconf/ltconfig" title="View changes to autoconf/ltconfig in revision 1">autoconf/ltconfig</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/autoconf/ltmain.sh#autoconf/ltmain.sh" title="View changes to autoconf/ltmain.sh in revision 1">autoconf/ltmain.sh</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/configure#configure" title="View changes to configure in revision 1">configure</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/configure.in#configure.in" title="View changes to configure.in in revision 1">configure.in</a> </li> </ul> <ul> <li class="files" id="directory"> extras </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/extras/ChangeLog#extras/ChangeLog" title="View changes to extras/ChangeLog in revision 1">extras/ChangeLog</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/extras/iconv_string.c#extras/iconv_string.c" title="View changes to extras/iconv_string.c in revision 1">extras/iconv_string.c</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/extras/iconv_string.h#extras/iconv_string.h" title="View changes to extras/iconv_string.h in revision 1">extras/iconv_string.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/extras/locale_charset.c#extras/locale_charset.c" title="View changes to extras/locale_charset.c in revision 1">extras/locale_charset.c</a> </li> </ul> <ul> <li class="files" id="directory"> include </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/include/libiconv.h.in#include/libiconv.h.in" title="View changes to include/libiconv.h.in in revision 1">include/libiconv.h.in</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/include/libiconv.h.msvc#include/libiconv.h.msvc" title="View changes to include/libiconv.h.msvc in revision 1">include/libiconv.h.msvc</a> </li> </ul> <ul> <li class="files" id="directory"> man </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/man/Makefile.in#man/Makefile.in" title="View changes to man/Makefile.in in revision 1">man/Makefile.in</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/man/iconv.3#man/iconv.3" title="View changes to man/iconv.3 in revision 1">man/iconv.3</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/man/iconv_close.3#man/iconv_close.3" title="View changes to man/iconv_close.3 in revision 1">man/iconv_close.3</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/man/iconv_open.3#man/iconv_open.3" title="View changes to man/iconv_open.3 in revision 1">man/iconv_open.3</a> </li> </ul> <ul> <li class="files" id="directory"> src </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/Makefile.in#src/Makefile.in" title="View changes to src/Makefile.in in revision 1">src/Makefile.in</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/Makefile.msvc#src/Makefile.msvc" title="View changes to src/Makefile.msvc in revision 1">src/Makefile.msvc</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/aliases.gperf#src/aliases.gperf" title="View changes to src/aliases.gperf in revision 1">src/aliases.gperf</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/aliases.h#src/aliases.h" title="View changes to src/aliases.h in revision 1">src/aliases.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/armscii_8.h#src/armscii_8.h" title="View changes to src/armscii_8.h in revision 1">src/armscii_8.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ascii.h#src/ascii.h" title="View changes to src/ascii.h in revision 1">src/ascii.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/big5.h#src/big5.h" title="View changes to src/big5.h in revision 1">src/big5.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ces_big5.h#src/ces_big5.h" title="View changes to src/ces_big5.h in revision 1">src/ces_big5.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ces_gbk.h#src/ces_gbk.h" title="View changes to src/ces_gbk.h in revision 1">src/ces_gbk.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cns11643.h#src/cns11643.h" title="View changes to src/cns11643.h in revision 1">src/cns11643.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cns11643_1.h#src/cns11643_1.h" title="View changes to src/cns11643_1.h in revision 1">src/cns11643_1.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cns11643_2.h#src/cns11643_2.h" title="View changes to src/cns11643_2.h in revision 1">src/cns11643_2.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cns11643_3.h#src/cns11643_3.h" title="View changes to src/cns11643_3.h in revision 1">src/cns11643_3.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cns11643_inv.h#src/cns11643_inv.h" title="View changes to src/cns11643_inv.h in revision 1">src/cns11643_inv.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/config.h.in#src/config.h.in" title="View changes to src/config.h.in in revision 1">src/config.h.in</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/config.h.msvc#src/config.h.msvc" title="View changes to src/config.h.msvc in revision 1">src/config.h.msvc</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1133.h#src/cp1133.h" title="View changes to src/cp1133.h in revision 1">src/cp1133.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1250.h#src/cp1250.h" title="View changes to src/cp1250.h in revision 1">src/cp1250.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1251.h#src/cp1251.h" title="View changes to src/cp1251.h in revision 1">src/cp1251.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1252.h#src/cp1252.h" title="View changes to src/cp1252.h in revision 1">src/cp1252.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1253.h#src/cp1253.h" title="View changes to src/cp1253.h in revision 1">src/cp1253.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1254.h#src/cp1254.h" title="View changes to src/cp1254.h in revision 1">src/cp1254.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1255.h#src/cp1255.h" title="View changes to src/cp1255.h in revision 1">src/cp1255.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1256.h#src/cp1256.h" title="View changes to src/cp1256.h in revision 1">src/cp1256.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1257.h#src/cp1257.h" title="View changes to src/cp1257.h in revision 1">src/cp1257.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp1258.h#src/cp1258.h" title="View changes to src/cp1258.h in revision 1">src/cp1258.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp850.h#src/cp850.h" title="View changes to src/cp850.h in revision 1">src/cp850.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp866.h#src/cp866.h" title="View changes to src/cp866.h in revision 1">src/cp866.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp874.h#src/cp874.h" title="View changes to src/cp874.h in revision 1">src/cp874.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp932.h#src/cp932.h" title="View changes to src/cp932.h in revision 1">src/cp932.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp932ext.h#src/cp932ext.h" title="View changes to src/cp932ext.h in revision 1">src/cp932ext.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp936ext.h#src/cp936ext.h" title="View changes to src/cp936ext.h in revision 1">src/cp936ext.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp950.h#src/cp950.h" title="View changes to src/cp950.h in revision 1">src/cp950.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/cp950ext.h#src/cp950ext.h" title="View changes to src/cp950ext.h in revision 1">src/cp950ext.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/encodings.def#src/encodings.def" title="View changes to src/encodings.def in revision 1">src/encodings.def</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/euc_cn.h#src/euc_cn.h" title="View changes to src/euc_cn.h in revision 1">src/euc_cn.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/euc_jp.h#src/euc_jp.h" title="View changes to src/euc_jp.h in revision 1">src/euc_jp.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/euc_kr.h#src/euc_kr.h" title="View changes to src/euc_kr.h in revision 1">src/euc_kr.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/euc_tw.h#src/euc_tw.h" title="View changes to src/euc_tw.h in revision 1">src/euc_tw.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gb12345.h#src/gb12345.h" title="View changes to src/gb12345.h in revision 1">src/gb12345.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gb12345ext.h#src/gb12345ext.h" title="View changes to src/gb12345ext.h in revision 1">src/gb12345ext.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gb2312.h#src/gb2312.h" title="View changes to src/gb2312.h in revision 1">src/gb2312.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gbk.h#src/gbk.h" title="View changes to src/gbk.h in revision 1">src/gbk.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gbkext1.h#src/gbkext1.h" title="View changes to src/gbkext1.h in revision 1">src/gbkext1.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gbkext2.h#src/gbkext2.h" title="View changes to src/gbkext2.h in revision 1">src/gbkext2.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/gbkext_inv.h#src/gbkext_inv.h" title="View changes to src/gbkext_inv.h in revision 1">src/gbkext_inv.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/genaliases.c#src/genaliases.c" title="View changes to src/genaliases.c in revision 1">src/genaliases.c</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/georgian_academy.h#src/georgian_academy.h" title="View changes to src/georgian_academy.h in revision 1">src/georgian_academy.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/georgian_ps.h#src/georgian_ps.h" title="View changes to src/georgian_ps.h in revision 1">src/georgian_ps.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/hp_roman8.h#src/hp_roman8.h" title="View changes to src/hp_roman8.h in revision 1">src/hp_roman8.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/hz.h#src/hz.h" title="View changes to src/hz.h in revision 1">src/hz.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iconv.c#src/iconv.c" title="View changes to src/iconv.c in revision 1">src/iconv.c</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_cn.h#src/iso2022_cn.h" title="View changes to src/iso2022_cn.h in revision 1">src/iso2022_cn.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_cnext.h#src/iso2022_cnext.h" title="View changes to src/iso2022_cnext.h in revision 1">src/iso2022_cnext.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_jp.h#src/iso2022_jp.h" title="View changes to src/iso2022_jp.h in revision 1">src/iso2022_jp.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_jp1.h#src/iso2022_jp1.h" title="View changes to src/iso2022_jp1.h in revision 1">src/iso2022_jp1.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_jp2.h#src/iso2022_jp2.h" title="View changes to src/iso2022_jp2.h in revision 1">src/iso2022_jp2.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso2022_kr.h#src/iso2022_kr.h" title="View changes to src/iso2022_kr.h in revision 1">src/iso2022_kr.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_1.h#src/iso8859_1.h" title="View changes to src/iso8859_1.h in revision 1">src/iso8859_1.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_10.h#src/iso8859_10.h" title="View changes to src/iso8859_10.h in revision 1">src/iso8859_10.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_13.h#src/iso8859_13.h" title="View changes to src/iso8859_13.h in revision 1">src/iso8859_13.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_14.h#src/iso8859_14.h" title="View changes to src/iso8859_14.h in revision 1">src/iso8859_14.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_15.h#src/iso8859_15.h" title="View changes to src/iso8859_15.h in revision 1">src/iso8859_15.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_2.h#src/iso8859_2.h" title="View changes to src/iso8859_2.h in revision 1">src/iso8859_2.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_3.h#src/iso8859_3.h" title="View changes to src/iso8859_3.h in revision 1">src/iso8859_3.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_4.h#src/iso8859_4.h" title="View changes to src/iso8859_4.h in revision 1">src/iso8859_4.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_5.h#src/iso8859_5.h" title="View changes to src/iso8859_5.h in revision 1">src/iso8859_5.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_6.h#src/iso8859_6.h" title="View changes to src/iso8859_6.h in revision 1">src/iso8859_6.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_7.h#src/iso8859_7.h" title="View changes to src/iso8859_7.h in revision 1">src/iso8859_7.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_8.h#src/iso8859_8.h" title="View changes to src/iso8859_8.h in revision 1">src/iso8859_8.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/iso8859_9.h#src/iso8859_9.h" title="View changes to src/iso8859_9.h in revision 1">src/iso8859_9.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/java.h#src/java.h" title="View changes to src/java.h in revision 1">src/java.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/jisx0201.h#src/jisx0201.h" title="View changes to src/jisx0201.h in revision 1">src/jisx0201.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/jisx0208.h#src/jisx0208.h" title="View changes to src/jisx0208.h in revision 1">src/jisx0208.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/jisx0212.h#src/jisx0212.h" title="View changes to src/jisx0212.h in revision 1">src/jisx0212.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/johab.h#src/johab.h" title="View changes to src/johab.h in revision 1">src/johab.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/johab_hangul.h#src/johab_hangul.h" title="View changes to src/johab_hangul.h in revision 1">src/johab_hangul.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/koi8_r.h#src/koi8_r.h" title="View changes to src/koi8_r.h in revision 1">src/koi8_r.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/koi8_ru.h#src/koi8_ru.h" title="View changes to src/koi8_ru.h in revision 1">src/koi8_ru.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/koi8_u.h#src/koi8_u.h" title="View changes to src/koi8_u.h in revision 1">src/koi8_u.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ksc5601.h#src/ksc5601.h" title="View changes to src/ksc5601.h in revision 1">src/ksc5601.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_arabic.h#src/mac_arabic.h" title="View changes to src/mac_arabic.h in revision 1">src/mac_arabic.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_centraleurope.h#src/mac_centraleurope.h" title="View changes to src/mac_centraleurope.h in revision 1">src/mac_centraleurope.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_croatian.h#src/mac_croatian.h" title="View changes to src/mac_croatian.h in revision 1">src/mac_croatian.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_cyrillic.h#src/mac_cyrillic.h" title="View changes to src/mac_cyrillic.h in revision 1">src/mac_cyrillic.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_greek.h#src/mac_greek.h" title="View changes to src/mac_greek.h in revision 1">src/mac_greek.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_hebrew.h#src/mac_hebrew.h" title="View changes to src/mac_hebrew.h in revision 1">src/mac_hebrew.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_iceland.h#src/mac_iceland.h" title="View changes to src/mac_iceland.h in revision 1">src/mac_iceland.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_roman.h#src/mac_roman.h" title="View changes to src/mac_roman.h in revision 1">src/mac_roman.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_romania.h#src/mac_romania.h" title="View changes to src/mac_romania.h in revision 1">src/mac_romania.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_thai.h#src/mac_thai.h" title="View changes to src/mac_thai.h in revision 1">src/mac_thai.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_turkish.h#src/mac_turkish.h" title="View changes to src/mac_turkish.h in revision 1">src/mac_turkish.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mac_ukraine.h#src/mac_ukraine.h" title="View changes to src/mac_ukraine.h in revision 1">src/mac_ukraine.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/mulelao.h#src/mulelao.h" title="View changes to src/mulelao.h in revision 1">src/mulelao.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/nextstep.h#src/nextstep.h" title="View changes to src/nextstep.h in revision 1">src/nextstep.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/sjis.h#src/sjis.h" title="View changes to src/sjis.h in revision 1">src/sjis.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/tcvn.h#src/tcvn.h" title="View changes to src/tcvn.h in revision 1">src/tcvn.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/tis620.h#src/tis620.h" title="View changes to src/tis620.h in revision 1">src/tis620.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs2.h#src/ucs2.h" title="View changes to src/ucs2.h in revision 1">src/ucs2.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs2internal.h#src/ucs2internal.h" title="View changes to src/ucs2internal.h in revision 1">src/ucs2internal.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs2swapped.h#src/ucs2swapped.h" title="View changes to src/ucs2swapped.h in revision 1">src/ucs2swapped.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs4.h#src/ucs4.h" title="View changes to src/ucs4.h in revision 1">src/ucs4.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs4internal.h#src/ucs4internal.h" title="View changes to src/ucs4internal.h in revision 1">src/ucs4internal.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/ucs4swapped.h#src/ucs4swapped.h" title="View changes to src/ucs4swapped.h in revision 1">src/ucs4swapped.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/utf16.h#src/utf16.h" title="View changes to src/utf16.h in revision 1">src/utf16.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/utf7.h#src/utf7.h" title="View changes to src/utf7.h in revision 1">src/utf7.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/utf8.h#src/utf8.h" title="View changes to src/utf8.h in revision 1">src/utf8.h</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/src/viscii.h#src/viscii.h" title="View changes to src/viscii.h in revision 1">src/viscii.h</a> </li> </ul> <ul> <li class="files" id="directory"> tools </li> </ul> <ul> <li class="files" id="file"> <b><a href="#tools/8bit_tab_to_h.c">tools/8bit_tab_to_h.c</a></b> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/tools/Makefile#tools/Makefile" title="View changes to tools/Makefile in revision 1">tools/Makefile</a> </li> </ul> <ul> <li class="files" id="file"> <a href="/~vcs-imports/libiconv/trunk/revision/1/tools/cjk_tab_to_h.c#tools/cjk_tab_to_h.c" title="View changes to tools/cjk_tab_to_h.c in revision 1">tools/cjk_tab_to_h.c</a> </li> </ul> </ul> <div class="clear"><!-- --></div> </div> <!-- Table --> <p class="expand show_if_js"><a id="toggle_unified_sbs" href="#">Show diffs side-by-side</a></p> <p class="codin"><img alt="added" src="/static/images/newCode.gif" /> added</p> <p class="codin"><img alt="removed" src="/static/images/deleteCode.gif" /> removed</p> <form onSubmit="compute_diff_links(); return false">Lines of Context:<input type="text" id="contextLines" size="2" length="7" value="3" onKeyUp="compute_diff_links(); return false"/></form> <div class="clear"><!-- --></div> <div> <div class="diff"> <div class="diffBox"> <a class="the-link" href="/~vcs-imports/libiconv/trunk/revision/1/tools/8bit_tab_to_h.c" id="tools/8bit_tab_to_h.c" title="View changes to tools/8bit_tab_to_h.c only"> <img class="expand_diff" src="/static/images/treeExpanded.png"/> tools/8bit_tab_to_h.c </a> </div> <div style="overflow: hidden"> <div class="container"> <div class="loading" style="display:none"> <img src="/static/images/spinner.gif" /> </div> <div class="diffinfo"> <div class="pseudotable unified"> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">1</div> <div class="code insert">/*</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">2</div> <div class="code insert"> * Generates an 8-bit character set table from a .TXT table as found on</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">3</div> <div class="code insert"> * ftp.unicode.org or from a table containing the 256 Unicode values as</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">4</div> <div class="code insert"> * hexadecimal integers.</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">5</div> <div class="code insert"> * Examples:</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">6</div> <div class="code insert"> *</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">7</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-1 iso8859_1 < tab8859_1</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">8</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-2 iso8859_2 < tab8859_2</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">9</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-3 iso8859_3 < tab8859_3</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">10</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-4 iso8859_4 < tab8859_4</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">11</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-5 iso8859_5 < tab8859_5</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">12</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-6 iso8859_6 < tab8859_6</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">13</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-7 iso8859_7 < tab8859_7</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">14</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-8 iso8859_8 < tab8859_8</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">15</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-9 iso8859_9 < tab8859_9</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">16</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-10 iso8859_10 < tab8859_10</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">17</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-14 iso8859_14 < tab8859_14</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">18</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-15 iso8859_15 < tab8859_15</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">19</div> <div class="code insert"> * ./8bit_tab_to_h JISX0201.1976-0 jisx0201 < jis0201</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">20</div> <div class="code insert"> * ./8bit_tab_to_h TIS620.2533-1 tis620 < tabtis620</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">21</div> <div class="code insert"> * ./8bit_tab_to_h KOI8-R koi8_r < tabkoi8_r</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">22</div> <div class="code insert"> * ./8bit_tab_to_h KOI8-U koi8_u < tabkoi8_u</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">23</div> <div class="code insert"> * ./8bit_tab_to_h ARMSCII-8 armscii_8 < tabarmscii_8</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">24</div> <div class="code insert"> * ./8bit_tab_to_h CP1133 cp1133 < tabibm_cp1133</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">25</div> <div class="code insert"> * ./8bit_tab_to_h MULELAO-1 mulelao < tabmulelao_1</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">26</div> <div class="code insert"> * ./8bit_tab_to_h VISCII1.1-1 viscii1 < tabviscii</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">27</div> <div class="code insert"> * ./8bit_tab_to_h TCVN-5712 tcvn < tabtcvn</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">28</div> <div class="code insert"> * ./8bit_tab_to_h GEORGIAN-ACADEMY georgian_ac < tabgeorgian_academy</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">29</div> <div class="code insert"> * ./8bit_tab_to_h GEORGIAN-PS georgian_ps < tabgeorgian_ps</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">30</div> <div class="code insert"> *</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">31</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-1 iso8859_1 < 8859-1.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">32</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-2 iso8859_2 < 8859-2.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">33</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-3 iso8859_3 < 8859-3.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">34</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-4 iso8859_4 < 8859-4.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">35</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-5 iso8859_5 < 8859-5.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">36</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-6 iso8859_6 < 8859-6.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">37</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-7 iso8859_7 < 8859-7.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">38</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-8 iso8859_8 < 8859-8.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">39</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-9 iso8859_9 < 8859-9.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">40</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-10 iso8859_10 < 8859-10.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">41</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-14 iso8859_14 < 8859-14.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">42</div> <div class="code insert"> * ./8bit_tab_to_h ISO-8859-15 iso8859_15 < 8859-15.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">43</div> <div class="code insert"> * ./8bit_tab_to_h JISX0201.1976-0 jisx0201 < JIS0201.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">44</div> <div class="code insert"> * ./8bit_tab_to_h KOI8-R koi8_r < KOI8-R.TXT</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">45</div> <div class="code insert"> */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">46</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">47</div> <div class="code insert">#include <stdio.h></div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">48</div> <div class="code insert">#include <stdlib.h></div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">49</div> <div class="code insert">#include <stdbool.h></div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">50</div> <div class="code insert">#include <string.h></div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">51</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">52</div> <div class="code insert">int main (int argc, char *argv[])</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">53</div> <div class="code insert">{</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">54</div> <div class="code insert"> const char* charsetname;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">55</div> <div class="code insert"> const char* c_charsetname;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">56</div> <div class="code insert"> const char* filename;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">57</div> <div class="code insert"> const char* directory;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">58</div> <div class="code insert"> int charset2uni[0x100];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">59</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">60</div> <div class="code insert"> if (argc != 3 && argc != 4 && argc != 5)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">61</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">62</div> <div class="code insert"> charsetname = argv[1];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">63</div> <div class="code insert"> c_charsetname = argv[2];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">64</div> <div class="code insert"> if (argc > 3) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">65</div> <div class="code insert"> filename = argv[3];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">66</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">67</div> <div class="code insert"> char* s = (char*) malloc(strlen(c_charsetname)+strlen(".h")+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">68</div> <div class="code insert"> strcpy(s,c_charsetname); strcat(s,".h");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">69</div> <div class="code insert"> filename = s;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">70</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">71</div> <div class="code insert"> directory = (argc > 4 ? argv[4] : "");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">72</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">73</div> <div class="code insert"> fprintf(stderr, "Creating %s%s\n", directory, filename);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">74</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">75</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">76</div> <div class="code insert"> int i, c;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">77</div> <div class="code insert"> c = getc(stdin);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">78</div> <div class="code insert"> ungetc(c,stdin);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">79</div> <div class="code insert"> if (c == '#') {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">80</div> <div class="code insert"> /* Read a unicode.org style .TXT file. */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">81</div> <div class="code insert"> for (i = 0; i < 0x100; i++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">82</div> <div class="code insert"> charset2uni[i] = 0xfffd;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">83</div> <div class="code insert"> for (;;) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">84</div> <div class="code insert"> c = getc(stdin);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">85</div> <div class="code insert"> if (c == EOF)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">86</div> <div class="code insert"> break;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">87</div> <div class="code insert"> if (c == '\n' || c == ' ' || c == '\t')</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">88</div> <div class="code insert"> continue;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">89</div> <div class="code insert"> if (c == '#') {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">90</div> <div class="code insert"> do { c = getc(stdin); } while (!(c == EOF || c == '\n'));</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">91</div> <div class="code insert"> continue;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">92</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">93</div> <div class="code insert"> ungetc(c,stdin);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">94</div> <div class="code insert"> if (scanf("0x%x", &i) != 1 || !(i >= 0 && i < 0x100))</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">95</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">96</div> <div class="code insert"> do { c = getc(stdin); } while (c == ' ' || c == '\t');</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">97</div> <div class="code insert"> if (c != EOF)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">98</div> <div class="code insert"> ungetc(c,stdin);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">99</div> <div class="code insert"> if (c == '\n' || c == '#')</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">100</div> <div class="code insert"> continue;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">101</div> <div class="code insert"> if (scanf("0x%x", &charset2uni[i]) != 1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">102</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">103</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">104</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">105</div> <div class="code insert"> /* Read a table of hexadecimal Unicode values. */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">106</div> <div class="code insert"> for (i = 0; i < 0x100; i++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">107</div> <div class="code insert"> if (scanf("%x", &charset2uni[i]) != 1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">108</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">109</div> <div class="code insert"> if (charset2uni[i] < 0 || charset2uni[i] == 0xffff)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">110</div> <div class="code insert"> charset2uni[i] = 0xfffd;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">111</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">112</div> <div class="code insert"> if (scanf("%x", &i) != EOF)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">113</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">114</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">115</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">116</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">117</div> <div class="code insert"> /* Write the output file. */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">118</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">119</div> <div class="code insert"> FILE* f;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">120</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">121</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">122</div> <div class="code insert"> char* fname = malloc(strlen(directory)+strlen(filename)+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">123</div> <div class="code insert"> strcpy(fname,directory); strcat(fname,filename);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">124</div> <div class="code insert"> f = fopen(fname,"w");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">125</div> <div class="code insert"> if (f == NULL)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">126</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">127</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">128</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">129</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">130</div> <div class="code insert"> fprintf(f, "/*\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">131</div> <div class="code insert"> fprintf(f, " * %s\n", charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">132</div> <div class="code insert"> fprintf(f, " */\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">133</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">134</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">135</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">136</div> <div class="code insert"> int i, i1, i2, i3;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">137</div> <div class="code insert"> int line[16];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">138</div> <div class="code insert"> int tableno;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">139</div> <div class="code insert"> struct { int minline; int maxline; } tables[16];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">140</div> <div class="code insert"> bool some_invalid;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">141</div> <div class="code insert"> bool final_ret_reached;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">142</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">143</div> <div class="code insert"> for (i1 = 0; i1 < 16; i1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">144</div> <div class="code insert"> bool all_invalid = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">145</div> <div class="code insert"> bool all_identity = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">146</div> <div class="code insert"> for (i2 = 0; i2 < 16; i2++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">147</div> <div class="code insert"> i = 16*i1+i2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">148</div> <div class="code insert"> if (charset2uni[i] != 0xfffd)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">149</div> <div class="code insert"> all_invalid = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">150</div> <div class="code insert"> if (charset2uni[i] != i)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">151</div> <div class="code insert"> all_identity = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">152</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">153</div> <div class="code insert"> if (all_invalid)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">154</div> <div class="code insert"> line[i1] = -2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">155</div> <div class="code insert"> else if (all_identity)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">156</div> <div class="code insert"> line[i1] = -1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">157</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">158</div> <div class="code insert"> line[i1] = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">159</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">160</div> <div class="code insert"> tableno = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">161</div> <div class="code insert"> for (i1 = 0; i1 < 16; i1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">162</div> <div class="code insert"> if (line[i1] >= 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">163</div> <div class="code insert"> if (i1 > 0 && tableno > 0 && line[i1-1] == tableno-1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">164</div> <div class="code insert"> line[i1] = tableno-1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">165</div> <div class="code insert"> tables[tableno-1].maxline = i1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">166</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">167</div> <div class="code insert"> tableno++;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">168</div> <div class="code insert"> line[i1] = tableno-1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">169</div> <div class="code insert"> tables[tableno-1].minline = tables[tableno-1].maxline = i1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">170</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">171</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">172</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">173</div> <div class="code insert"> some_invalid = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">174</div> <div class="code insert"> for (i = 0; i < 0x100; i++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">175</div> <div class="code insert"> if (charset2uni[i] == 0xfffd)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">176</div> <div class="code insert"> some_invalid = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">177</div> <div class="code insert"> if (tableno > 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">178</div> <div class="code insert"> int t;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">179</div> <div class="code insert"> for (t = 0; t < tableno; t++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">180</div> <div class="code insert"> fprintf(f, "static const unsigned short %s_2uni", c_charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">181</div> <div class="code insert"> if (tableno > 1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">182</div> <div class="code insert"> fprintf(f, "_%d", t+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">183</div> <div class="code insert"> fprintf(f, "[%d] = {\n", 16*(tables[t].maxline-tables[t].minline+1));</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">184</div> <div class="code insert"> for (i1 = tables[t].minline; i1 <= tables[t].maxline; i1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">185</div> <div class="code insert"> fprintf(f, " /* 0x%02x */\n", 16*i1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">186</div> <div class="code insert"> for (i2 = 0; i2 < 2; i2++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">187</div> <div class="code insert"> fprintf(f, " ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">188</div> <div class="code insert"> for (i3 = 0; i3 < 8; i3++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">189</div> <div class="code insert"> i = 16*i1+8*i2+i3;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">190</div> <div class="code insert"> fprintf(f, " 0x%04x,", charset2uni[i]);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">191</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">192</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">193</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">194</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">195</div> <div class="code insert"> fprintf(f, "};\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">196</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">197</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">198</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">199</div> <div class="code insert"> final_ret_reached = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">200</div> <div class="code insert"> fprintf(f, "static int\n%s_mbtowc (conv_t conv, wchar_t *pwc, const unsigned char *s, int n)\n", c_charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">201</div> <div class="code insert"> fprintf(f, "{\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">202</div> <div class="code insert"> fprintf(f, " unsigned char c = *s;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">203</div> <div class="code insert"> if (some_invalid) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">204</div> <div class="code insert"> for (i1 = 0; i1 < 16;) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">205</div> <div class="code insert"> int t = line[i1];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">206</div> <div class="code insert"> const char* indent;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">207</div> <div class="code insert"> for (i2 = i1; i2 < 16 && line[i2] == t; i2++);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">208</div> <div class="code insert"> indent = (i1 == 0 && i2 == 16 ? " " : " ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">209</div> <div class="code insert"> if (i1 == 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">210</div> <div class="code insert"> if (i2 == 16) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">211</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">212</div> <div class="code insert"> fprintf(f, " if (c < 0x%02x) {\n", 16*i2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">213</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">214</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">215</div> <div class="code insert"> if (i2 == 16) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">216</div> <div class="code insert"> fprintf(f, " else {\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">217</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">218</div> <div class="code insert"> fprintf(f, " else if (c < 0x%02x) {\n", 16*i2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">219</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">220</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">221</div> <div class="code insert"> if (t == -2) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">222</div> <div class="code insert"> final_ret_reached = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">223</div> <div class="code insert"> } else if (t == -1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">224</div> <div class="code insert"> fprintf(f, "%s*pwc = (wchar_t) c;\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">225</div> <div class="code insert"> fprintf(f, "%sreturn 1;\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">226</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">227</div> <div class="code insert"> fprintf(f, "%s", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">228</div> <div class="code insert"> some_invalid = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">229</div> <div class="code insert"> for (i = 16*i1; i < 16*i2; i++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">230</div> <div class="code insert"> if (charset2uni[i] == 0xfffd)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">231</div> <div class="code insert"> some_invalid = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">232</div> <div class="code insert"> if (some_invalid)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">233</div> <div class="code insert"> fprintf(f, "unsigned short wc = ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">234</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">235</div> <div class="code insert"> fprintf(f, "*pwc = (wchar_t) ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">236</div> <div class="code insert"> fprintf(f, "%s_2uni", c_charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">237</div> <div class="code insert"> if (tableno > 1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">238</div> <div class="code insert"> fprintf(f, "_%d", t+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">239</div> <div class="code insert"> fprintf(f, "[c");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">240</div> <div class="code insert"> if (tables[t].minline > 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">241</div> <div class="code insert"> fprintf(f, "-0x%02x", 16*tables[t].minline);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">242</div> <div class="code insert"> fprintf(f, "];\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">243</div> <div class="code insert"> if (some_invalid) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">244</div> <div class="code insert"> fprintf(f, "%sif (wc != 0xfffd) {\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">245</div> <div class="code insert"> fprintf(f, "%s *pwc = (wchar_t) wc;\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">246</div> <div class="code insert"> fprintf(f, "%s return 1;\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">247</div> <div class="code insert"> fprintf(f, "%s}\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">248</div> <div class="code insert"> final_ret_reached = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">249</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">250</div> <div class="code insert"> fprintf(f, "%sreturn 1;\n", indent);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">251</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">252</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">253</div> <div class="code insert"> if (!(i1 == 0 && i2 == 16))</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">254</div> <div class="code insert"> fprintf(f, " }\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">255</div> <div class="code insert"> i1 = i2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">256</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">257</div> <div class="code insert"> if (final_ret_reached)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">258</div> <div class="code insert"> fprintf(f, " return RET_ILSEQ;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">259</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">260</div> <div class="code insert"> for (i1 = 0; i1 < 16;) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">261</div> <div class="code insert"> int t = line[i1];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">262</div> <div class="code insert"> for (i2 = i1; i2 < 16 && line[i2] == t; i2++);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">263</div> <div class="code insert"> if (i1 == 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">264</div> <div class="code insert"> if (i2 == 16) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">265</div> <div class="code insert"> fprintf(f, " ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">266</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">267</div> <div class="code insert"> fprintf(f, " if (c < 0x%02x)\n ", 16*i2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">268</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">269</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">270</div> <div class="code insert"> if (i2 == 16) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">271</div> <div class="code insert"> fprintf(f, " else\n ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">272</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">273</div> <div class="code insert"> fprintf(f, " else if (c < 0x%02x)\n ", 16*i2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">274</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">275</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">276</div> <div class="code insert"> if (t == -1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">277</div> <div class="code insert"> fprintf(f, "*pwc = (wchar_t) c;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">278</div> <div class="code insert"> else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">279</div> <div class="code insert"> fprintf(f, "*pwc = (wchar_t) %s_2uni", c_charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">280</div> <div class="code insert"> if (tableno > 1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">281</div> <div class="code insert"> fprintf(f, "_%d", t+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">282</div> <div class="code insert"> fprintf(f, "[c");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">283</div> <div class="code insert"> if (tables[t].minline > 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">284</div> <div class="code insert"> fprintf(f, "-0x%02x", 16*tables[t].minline);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">285</div> <div class="code insert"> fprintf(f, "];\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">286</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">287</div> <div class="code insert"> i1 = i2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">288</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">289</div> <div class="code insert"> fprintf(f, " return 1;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">290</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">291</div> <div class="code insert"> fprintf(f, "}\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">292</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">293</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">294</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">295</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">296</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">297</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">298</div> <div class="code insert"> int uni2charset[0x10000];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">299</div> <div class="code insert"> bool pages[0x100];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">300</div> <div class="code insert"> int line[0x2000];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">301</div> <div class="code insert"> int tableno;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">302</div> <div class="code insert"> struct { int minline; int maxline; int usecount; const char* suffix; } tables[0x2000];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">303</div> <div class="code insert"> bool need_c;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">304</div> <div class="code insert"> bool fix_0000;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">305</div> <div class="code insert"> int i, j, p, j1, j2, t;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">306</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">307</div> <div class="code insert"> for (j = 0; j < 0x10000; j++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">308</div> <div class="code insert"> uni2charset[j] = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">309</div> <div class="code insert"> for (p = 0; p < 0x100; p++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">310</div> <div class="code insert"> pages[p] = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">311</div> <div class="code insert"> for (i = 0; i < 0x100; i++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">312</div> <div class="code insert"> j = charset2uni[i];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">313</div> <div class="code insert"> if (j != 0xfffd) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">314</div> <div class="code insert"> uni2charset[j] = i;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">315</div> <div class="code insert"> pages[j>>8] = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">316</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">317</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">318</div> <div class="code insert"> for (j1 = 0; j1 < 0x2000; j1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">319</div> <div class="code insert"> bool all_invalid = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">320</div> <div class="code insert"> bool all_identity = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">321</div> <div class="code insert"> for (j2 = 0; j2 < 8; j2++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">322</div> <div class="code insert"> j = 8*j1+j2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">323</div> <div class="code insert"> if (uni2charset[j] != 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">324</div> <div class="code insert"> all_invalid = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">325</div> <div class="code insert"> if (uni2charset[j] != j)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">326</div> <div class="code insert"> all_identity = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">327</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">328</div> <div class="code insert"> if (all_invalid)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">329</div> <div class="code insert"> line[j1] = -2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">330</div> <div class="code insert"> else if (all_identity)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">331</div> <div class="code insert"> line[j1] = -1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">332</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">333</div> <div class="code insert"> line[j1] = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">334</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">335</div> <div class="code insert"> tableno = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">336</div> <div class="code insert"> for (j1 = 0; j1 < 0x2000; j1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">337</div> <div class="code insert"> if (line[j1] >= 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">338</div> <div class="code insert"> if (tableno > 0</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">339</div> <div class="code insert"> && ((j1 > 0 && line[j1-1] == tableno-1)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">340</div> <div class="code insert"> || ((tables[tableno-1].maxline >> 5) == (j1 >> 5)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">341</div> <div class="code insert"> && j1 - tables[tableno-1].maxline <= 8))) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">342</div> <div class="code insert"> line[j1] = tableno-1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">343</div> <div class="code insert"> tables[tableno-1].maxline = j1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">344</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">345</div> <div class="code insert"> tableno++;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">346</div> <div class="code insert"> line[j1] = tableno-1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">347</div> <div class="code insert"> tables[tableno-1].minline = tables[tableno-1].maxline = j1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">348</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">349</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">350</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">351</div> <div class="code insert"> for (t = 0; t < tableno; t++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">352</div> <div class="code insert"> tables[t].usecount = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">353</div> <div class="code insert"> j1 = 8*tables[t].minline;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">354</div> <div class="code insert"> j2 = 8*(tables[t].maxline+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">355</div> <div class="code insert"> for (j = j1; j < j2; j++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">356</div> <div class="code insert"> if (uni2charset[j] != 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">357</div> <div class="code insert"> tables[t].usecount++;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">358</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">359</div> <div class="code insert"> for (t = 0, p = -1, i = 0; t < tableno; t++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">360</div> <div class="code insert"> if (tables[t].usecount > 1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">361</div> <div class="code insert"> char* s;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">362</div> <div class="code insert"> if (p == tables[t].minline >> 5) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">363</div> <div class="code insert"> s = (char*) malloc(5+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">364</div> <div class="code insert"> sprintf(s, "%02x_%d", p, ++i);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">365</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">366</div> <div class="code insert"> p = tables[t].minline >> 5;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">367</div> <div class="code insert"> s = (char*) malloc(2+1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">368</div> <div class="code insert"> sprintf(s, "%02x", p);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">369</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">370</div> <div class="code insert"> tables[t].suffix = s;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">371</div> <div class="code insert"> } else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">372</div> <div class="code insert"> tables[t].suffix = NULL;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">373</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">374</div> <div class="code insert"> {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">375</div> <div class="code insert"> p = -1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">376</div> <div class="code insert"> for (t = 0; t < tableno; t++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">377</div> <div class="code insert"> if (tables[t].usecount > 1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">378</div> <div class="code insert"> p = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">379</div> <div class="code insert"> fprintf(f, "static const unsigned char %s_page%s[%d] = {\n", c_charsetname, tables[t].suffix, 8*(tables[t].maxline-tables[t].minline+1));</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">380</div> <div class="code insert"> for (j1 = tables[t].minline; j1 <= tables[t].maxline; j1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">381</div> <div class="code insert"> if ((j1 % 0x20) == 0 && j1 > tables[t].minline)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">382</div> <div class="code insert"> fprintf(f, " /* 0x%04x */\n", 8*j1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">383</div> <div class="code insert"> fprintf(f, " ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">384</div> <div class="code insert"> for (j2 = 0; j2 < 8; j2++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">385</div> <div class="code insert"> j = 8*j1+j2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">386</div> <div class="code insert"> fprintf(f, " 0x%02x,", uni2charset[j]);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">387</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">388</div> <div class="code insert"> fprintf(f, " /* 0x%02x-0x%02x */\n", 8*(j1 % 0x20), 8*(j1 % 0x20)+7);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">389</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">390</div> <div class="code insert"> fprintf(f, "};\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">391</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">392</div> <div class="code insert"> if (p >= 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">393</div> <div class="code insert"> fprintf(f, "\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">394</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">395</div> <div class="code insert"> need_c = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">396</div> <div class="code insert"> for (j1 = 0; j1 < 0x2000;) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">397</div> <div class="code insert"> t = line[j1];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">398</div> <div class="code insert"> for (j2 = j1; j2 < 0x2000 && line[j2] == t; j2++);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">399</div> <div class="code insert"> if (t >= 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">400</div> <div class="code insert"> j2 = tables[t].maxline+1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">401</div> <div class="code insert"> if (!(t == -2 || (t == -1 && j1 == 0)))</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">402</div> <div class="code insert"> need_c = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">403</div> <div class="code insert"> j1 = j2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">404</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">405</div> <div class="code insert"> fix_0000 = false;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">406</div> <div class="code insert"> fprintf(f, "static int\n%s_wctomb (conv_t conv, unsigned char *r, wchar_t wc, int n)\n", c_charsetname);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">407</div> <div class="code insert"> fprintf(f, "{\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">408</div> <div class="code insert"> if (need_c)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">409</div> <div class="code insert"> fprintf(f, " unsigned char c = 0;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">410</div> <div class="code insert"> for (j1 = 0; j1 < 0x2000;) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">411</div> <div class="code insert"> t = line[j1];</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">412</div> <div class="code insert"> for (j2 = j1; j2 < 0x2000 && line[j2] == t; j2++);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">413</div> <div class="code insert"> if (t >= 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">414</div> <div class="code insert"> if (j1 != tables[t].minline) abort();</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">415</div> <div class="code insert"> if (j2 > tables[t].maxline+1) abort();</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">416</div> <div class="code insert"> j2 = tables[t].maxline+1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">417</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">418</div> <div class="code insert"> if (t == -2) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">419</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">420</div> <div class="code insert"> if (j1 == 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">421</div> <div class="code insert"> fprintf(f, " ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">422</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">423</div> <div class="code insert"> fprintf(f, " else ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">424</div> <div class="code insert"> if (t >= 0 && tables[t].usecount == 0) abort();</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">425</div> <div class="code insert"> if (t >= 0 && tables[t].usecount == 1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">426</div> <div class="code insert"> if (j2 != j1+1) abort();</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">427</div> <div class="code insert"> for (j = 8*j1; j < 8*j2; j++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">428</div> <div class="code insert"> if (uni2charset[j] != 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">429</div> <div class="code insert"> fprintf(f, "if (wc == 0x%04x)\n c = 0x%02x;\n", j, uni2charset[j]);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">430</div> <div class="code insert"> break;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">431</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">432</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">433</div> <div class="code insert"> if (j1 == 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">434</div> <div class="code insert"> fprintf(f, "if (wc < 0x%04x)", 8*j2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">435</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">436</div> <div class="code insert"> fprintf(f, "if (wc >= 0x%04x && wc < 0x%04x)", 8*j1, 8*j2);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">437</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">438</div> <div class="code insert"> if (t == -1) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">439</div> <div class="code insert"> if (j1 == 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">440</div> <div class="code insert"> /* If wc == 0, the function must return 1, not -1. */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">441</div> <div class="code insert"> fprintf(f, " {\n *r = wc;\n return 1;\n }\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">442</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">443</div> <div class="code insert"> fprintf(f, "\n c = wc;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">444</div> <div class="code insert"> } else {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">445</div> <div class="code insert"> fprintf(f, "\n c = %s_page%s[wc", c_charsetname, tables[t].suffix);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">446</div> <div class="code insert"> if (tables[t].minline > 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">447</div> <div class="code insert"> fprintf(f, "-0x%04x", 8*j1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">448</div> <div class="code insert"> fprintf(f, "];\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">449</div> <div class="code insert"> if (j1 == 0 && uni2charset[0] == 0)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">450</div> <div class="code insert"> /* If wc == 0, the function must return 1, not -1. */</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">451</div> <div class="code insert"> fix_0000 = true;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">452</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">453</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">454</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">455</div> <div class="code insert"> j1 = j2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">456</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">457</div> <div class="code insert"> if (need_c) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">458</div> <div class="code insert"> if (fix_0000)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">459</div> <div class="code insert"> fprintf(f, " if (c != 0 || wc == 0) {\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">460</div> <div class="code insert"> else</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">461</div> <div class="code insert"> fprintf(f, " if (c != 0) {\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">462</div> <div class="code insert"> fprintf(f, " *r = c;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">463</div> <div class="code insert"> fprintf(f, " return 1;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">464</div> <div class="code insert"> fprintf(f, " }\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">465</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">466</div> <div class="code insert"> fprintf(f, " return RET_ILSEQ;\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">467</div> <div class="code insert"> fprintf(f, "}\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">468</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">469</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">470</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">471</div> <div class="code insert"> if (ferror(f) || fclose(f))</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">472</div> <div class="code insert"> exit(1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">473</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">474</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">475</div> <div class="code insert">#if 0</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">476</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">477</div> <div class="code insert"> int i1, i2, i3, i1_min, i1_max, j1, j2;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">478</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">479</div> <div class="code insert"> i1_min = 16;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">480</div> <div class="code insert"> i1_max = -1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">481</div> <div class="code insert"> for (i1 = 0; i1 < 16; i1++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">482</div> <div class="code insert"> for (i2 = 0; i2 < 16; i2++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">483</div> <div class="code insert"> if (charset2uni[16*i1+i2] != 0xfffd) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">484</div> <div class="code insert"> if (i1_min > i1) i1_min = i1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">485</div> <div class="code insert"> if (i1_max < i1) i1_max = i1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">486</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">487</div> <div class="code insert"> printf("static const unsigned short %s_2uni[%d] = {\n",</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">488</div> <div class="code insert"> name, 16*(i1_max-i1_min+1));</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">489</div> <div class="code insert"> for (i1 = i1_min; i1 <= i1_max; i1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">490</div> <div class="code insert"> printf(" /""* 0x%02x *""/\n", 16*i1);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">491</div> <div class="code insert"> for (i2 = 0; i2 < 2; i2++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">492</div> <div class="code insert"> printf(" ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">493</div> <div class="code insert"> for (i3 = 0; i3 < 8; i3++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">494</div> <div class="code insert"> if (i3 > 0) printf(" ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">495</div> <div class="code insert"> printf("0x%04x,", charset2uni[16*i1+8*i2+i3]);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">496</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">497</div> <div class="code insert"> printf("\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">498</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">499</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">500</div> <div class="code insert"> printf("};\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">501</div> <div class="code insert"> printf("\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">502</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">503</div> <div class="code insert"> for (p = 0; p < 0x100; p++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">504</div> <div class="code insert"> pages[p] = 0;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">505</div> <div class="code insert"> for (i = 0; i < 0x100; i++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">506</div> <div class="code insert"> if (charset2uni[i] != 0xfffd)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">507</div> <div class="code insert"> pages[charset2uni[i]>>8] = 1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">508</div> <div class="code insert"> for (p = 0; p < 0x100; p++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">509</div> <div class="code insert"> if (pages[p]) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">510</div> <div class="code insert"> int j1_min = 32;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">511</div> <div class="code insert"> int j1_max = -1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">512</div> <div class="code insert"> for (j1 = 0; j1 < 32; j1++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">513</div> <div class="code insert"> for (j2 = 0; j2 < 8; j2++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">514</div> <div class="code insert"> if (uni2charset[256*p+8*j1+j2] != 0) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">515</div> <div class="code insert"> if (j1_min > j1) j1_min = j1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">516</div> <div class="code insert"> if (j1_max < j1) j1_max = j1;</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">517</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">518</div> <div class="code insert"> printf("static const unsigned char %s_page%02x[%d] = {\n",</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">519</div> <div class="code insert"> name, p, 8*(j1_max-j1_min+1));</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">520</div> <div class="code insert"> for (j1 = j1_min; j1 <= j1_max; j1++) {</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">521</div> <div class="code insert"> printf(" ");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">522</div> <div class="code insert"> for (j2 = 0; j2 < 8; j2++)</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">523</div> <div class="code insert"> printf("0x%02x, ", uni2charset[256*p+8*j1+j2]);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">524</div> <div class="code insert"> printf("/""* 0x%02x-0x%02x *""/\n", 8*j1, 8*j1+7);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">525</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">526</div> <div class="code insert"> printf("};\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">527</div> <div class="code insert"> }</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">528</div> <div class="code insert"> printf("\n");</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">529</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">530</div> <div class="code insert">}</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">531</div> <div class="code insert">#endif</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">532</div> <div class="code insert"> </div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">533</div> <div class="code insert"> exit(0);</div> <div class="clear"><!-- --></div> </div> <div class="pseudorow insert-row"> <div class="lineNumber first"> </div> <div class="lineNumber second">534</div> <div class="code insert">}</div> <div class="clear"><!-- --></div> </div> </div> </div> </div> </div> </div> <ul id="pages"> <!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them, so some magic has to be done to just show the previous and next N page numbers <li class="active">1</li> <tal:block tal:repeat="page_number python:range(navigation.page_count)"> <li><a href="#" tal:content="page_number"></a></li> </tal:block>--> <li class="next"> <a href="/~vcs-imports/libiconv/trunk/revision/1286?start_revid=1287">Older »</a> </li> </ul> </div> <p id="footer" class="fl"> Loggerhead is a web-based interface for <a href="https://www.breezy-vcs.org/">Breezy</a> <br /> Version: 2.0.1 </p> </div> </body> </html>