-/**
- * Return the TEMPLATE printf arg environment.
- * We use the firm environment with some additional handlers.
- */
-const lc_arg_env_t *TEMPLATE_get_arg_env(void) {
- static lc_arg_env_t *env = NULL;
-
- static const lc_arg_handler_t TEMPLATE_reg_handler = { TEMPLATE_get_arg_type, TEMPLATE_get_reg_name };
- static const lc_arg_handler_t TEMPLATE_const_handler = { TEMPLATE_get_arg_type, TEMPLATE_const_to_str };
- static const lc_arg_handler_t TEMPLATE_mode_handler = { TEMPLATE_get_arg_type, TEMPLATE_get_mode_suffix };
-
- if(env == NULL) {
- /* extend the firm printer */
- env = firm_get_arg_env();
- //lc_arg_new_env();
-
- lc_arg_register(env, "TEMPLATE:sreg", 'S', &TEMPLATE_reg_handler);
- lc_arg_register(env, "TEMPLATE:dreg", 'D', &TEMPLATE_reg_handler);
- lc_arg_register(env, "TEMPLATE:cnst", 'C', &TEMPLATE_const_handler);
- lc_arg_register(env, "TEMPLATE:offs", 'O', &TEMPLATE_const_handler);
- lc_arg_register(env, "TEMPLATE:mode", 'M', &TEMPLATE_mode_handler);