# NAME

code2map − PDElib map_EnableMapping code to a PDElib mapping file

# SYNOPSIS

code2map codefile mapfile

# DESCRIPTION

code2map

Take a file of map_EnableMapping() calls and convert them into a PDElib mapping file.

       /*  Curve to Polyline  */

       map_EnableMapping (MAP_NOOPT, table, "gdx_solid -> improved gdx_solid",
                          MAP_PARAM, GMP_ADD_MISS_VERTICES, PDX_TRUE, MAP_PARAM,
                          GMP_ADD_MISS_MODELCRV, MAP_COMMIT, MAP_END);

will be translated to:

       /*  Curve to Polyline  */

       "gdx_solid -> improved gdx_solid",
       MAP_PARAM, GMP_ADD_MISS_VERTICES, TRUE, MAP_PARAM, GMP_ADD_MISS_MODELCRV,
       TRUE, MODEL, 'gdx_outmodel', COMMIT;

# EXAMPLES

To generate a mapping file:

       code2map test.c test.map

# OPTIONS

none

# ENVIRONMENT VARIABLES

none