/src/.libs/
/src/charname.h
/src/fr-charname.h
-/src/freeze.c
/src/iconvdecl.h
/src/merged.c
/src/recode
Both methods give different recodings. These differences are annoying,
the fuzziness will have to be explained and settle down one day.
-@cindex Recode, a Macintosh port
-As a side note, some people ask if there is a Macintosh port of Recode.
-I'm not aware of any. I presume that if the tool
-fills a need for Macintosh users, someone will port it one of these days?
-
@node AtariST, , Apple-Mac, Micros
@section Atari ST code
C_SURFACES = base64.c dump.c endline.c permut.c quoted.c
L_SURFACES =
-recode_SOURCES = main.c freeze.c mixed.c
+recode_SOURCES = main.c mixed.c
recode_LDADD = librecode.la ../lib/libgnu.la
librecode_la_SOURCES = charname.c combine.c fr-charname.c iconv.c \
/* If true, show a list of one or all known charsets, then exit. */
static bool show_symbols = false;
-/* If true, dump all tables as a big C module. */
-static bool freeze_tables = false;
-
/* If true, check all charsets for subsets, then exit. */
static bool find_subsets = false;
/* The following charset name will be ignored, if given. */
static const char *ignored_name = NULL;
-#if 0
-/* Unabridged names of BEFORE and AFTER charsets, even if still aliases.
- These are used for naming the array in produced C code. */
-static const char *before_full_name;
-static const char *after_full_name;
-#endif
-
/* Ordinals of list, BEFORE and AFTER charset. */
static RECODE_SYMBOL list_charset;
-#if 0
-static RECODE_SYMBOL before_charset;
-static RECODE_SYMBOL after_charset;
-#endif
/* Flag telling usage that we are decoding charsets. */
bool decoding_charset_flag = false;
#ifdef SIGPIPE
signal (SIGPIPE, signal_handler);
#endif
-#if 0
- signal (SIGINT, signal_handler);
- signal (SIGTERM, signal_handler);
-#endif
}
\f
/* Main control. */
-l, --list[=FORMAT] list one or all known charsets and aliases\n\
-k, --known=PAIRS restrict charsets according to known PAIRS list\n\
-h, --header[=[LN/]NAME] write table NAME on stdout using LN, then exit\n\
- -F, --freeze-tables write out a C module holding all tables\n\
-T, --find-subsets report all charsets being subset of others\n\
-C, --copyright display Copyright and copying conditions\n\
--help display this help and exit\n\
{"diacritics", no_argument, NULL, 'd'},
{"find-subsets", no_argument, NULL, 'T'},
{"force", no_argument, NULL, 'f'},
- {"freeze-tables", no_argument, NULL, 'F'},
{"header", optional_argument, NULL, 'h'},
{"help", no_argument, &show_help, 1},
{"ignore", required_argument, NULL, 'x'},
print_copyright ();
exit (EXIT_SUCCESS);
- case 'F':
- freeze_tables = true;
- break;
-
case 'S':
if (optarg)
switch (argmatch (optarg, language_strings, NULL, 0))
abort ();
}
- if (freeze_tables)
- {
- recode_freeze_tables (outer);
- exit (EXIT_SUCCESS);
- }
-
/* Set strict mapping. */
if (strict_mapping)
return single;
}
-#if 0
-
-/*-------------------------------------------.
-| Create and initialize a new data surface. |
-`-------------------------------------------*/
-
-bool
-declare_data_surface (RECODE_OUTER outer, const char *name,
- struct recode_quality resurfacer_quality,
- Recode_init resurfacer_init_routine,
- Recode_transform resurfacer_transform_routine,
- struct recode_quality unsurfacer_quality,
- Recode_init unsurfacer_init_routine,
- Recode_transform unsurfacer_transform_routine)
-{
-}
-
-/*-------------------------------------------------.
-| Create and initialize a new structural surface. |
-`-------------------------------------------------*/
-
-bool
-declare_tree_surface (RECODE_OUTER outer, const char *name,
- struct recode_quality resurfacer_quality,
- Recode_init resurfacer_init_routine,
- Recode_transform resurfacer_transform_routine,
- struct recode_quality unsurfacer_quality,
- Recode_init unsurfacer_init_routine,
- Recode_transform unsurfacer_transform_routine)
-{
-}
-
-#endif
-
/*---------------------------------------------------------------.
| Declare a charset available through `iconv', given the NAME of |
| this charset (which might already exist as an alias), and the |
return true;
}
-#if 0
-
-/*------------------------------------------------.
-| Save explode data within the symbol structure. |
-`------------------------------------------------*/
-
-bool register_explode_data
- (RECODE_OUTER, const char *, const unsigned short *);
-
-bool
-register_explode_data (RECODE_OUTER outer,
- const char *name, const unsigned short *data)
-{
- RECODE_SYMBOL symbol;
-
- symbol = find_alias (outer, name, SYMBOL_CREATE_CHARSET);
- if (!symbol)
- return false;
-
- assert(symbol->type = RECODE_CHARSET);
- symbol->data_type = RECODE_EXPLODE_DATA;
- /* The cast is a way to silently discard the const. */
- symbol->data = (void *) data;
- return true;
-}
-
-#endif
-
/*--------------------------------------------------------------------------.
| Associate an explode format DATA structure with charset NAME_COMBINED, an |
| 8-bit charset. A NULL value for NAME_EXPLODED implies UCS-2. Otherwise, |
{
last_charset_printed = step->before;
add_work_string (request, last_charset_printed->name);
-#if 0
- if (unsurfacer_start == unsurfacer_end
- && last_charset_printed
- && last_charset_printed->implied_surfaces)
- add_work_character (request, '/');
-#endif
}
}
last_charset_printed = step->after;
add_work_string (request, last_charset_printed->name);
step++;
-#if 0
- if ((step == request->sequence_array + request->sequence_length
- || (step->before != outer->data_symbol
- && step->before != outer->tree_symbol))
- && last_charset_printed
- && last_charset_printed->implied_surfaces)
- add_work_character (request, '/');
-#endif
}
else
{
}
}
-#if FIXME
+#if 0
if (interrupted)
/* FIXME: It is not very clear what happened in sub-processes. */
if (task->error_so_far < task->fail_level)