gchar* xml_pfe_export_type_strdup (const gchar* name, gssize len)
{
if (! name) return (gchar*) name;
if (len < 0) len = strlen (name);
if (len == 2)
{
static mapping2_t mapping2 [] = {
, , ,
, , ,
, , ,
, , ,
} | ;
mapping2_t* M = mapping2;
for (; M->a ; M++)
{
if (!memcmp (name, M->a, 2))
{ name = M->x; len = strlen (name); break; } |
} |
} |
if (len == 7)
{
static mapping3_t mapping7 [] = {
{ "P4_FXCO", "P4_FXco", "ordinary primitive" } | ,
{ "P4_IXCO", "P4_IXco", "immediate primitive" } | ,
{ "P4_SXCO", "P4_SXco", "compiling primitive" } | ,
{ "P4_XXCO", "P4_XXco", "constructor primitive" } | ,
{ "P4_RTCO", "P4_RTco", "definining primitive" } | ,
{ "P4_OVAR", "P4_OVaR", "ordinary variable" } | ,
{ "P4_IVAR", "P4_IVaR", "immediate variable" } | ,
{ "P4_OVAL", "P4_OVaL", "ordinary valuevar" } | ,
{ "P4_IVAL", "P4_IVaL", "immediate valuevar" } | ,
{ "P4_OCON", "P4_OCoN", "ordinary constant" } | ,
{ "P4_ICON", "P4_ICoN", "immediate constant" } | ,
{ "P4_DVAR", "P4_DVaR", "threadstate variable" } | ,
{ "P4_DCON", "P4_DCoN", "threadstate valueGET" } | ,
{ "P4_DSET", "P4_DSeT", "threadstate valueSET" } | ,
{ "P4_FNYM", "P4_FNyM", "forthword synonym" } | ,
{ "P4_SNYM", "P4_SNyM", "immediate synonym" } | ,
{ "P4_xOLD", "P4_OLDx", "obsolete forthword" } | ,
{ "P4_iOLD", "P4_OLDi", "obsolete immediate" } | ,
{ "P4_EXPT", "P4_XCPT", "- exception declared" } | ,
{ "P4_OFFS", "P4_OFFs", "ordinary offsetval" } | ,
{ "P4_OVOC", "P4_OVoc", "ordinary vocabulay" } | ,
{ "P4_IVOC", "P4_IVoc", "immdatiate vocabulary" } | ,
{ "P4_SLOT", "P4_slot", "- loading slot id" } | ,
{ "P4_SSIZ", "P4_ssiz", "- loading slot size" } | ,
{ "P4_INTO", "P4_into", "- loading into" } | ,
{ "P4_LOAD", "P4_load", "- loading wordset" } | ,
} | ;
mapping3_t* M = mapping7;
for (; M->a ; M++)
{
if (!memcmp (name, M->a, 7) || !memcmp (name, M->b, 7))
{ return g_strdup (M->x); } |
} |
} |
return g_strdup_printf ("- loader type %.*s", len, name);
} |
|