Ignore:
Timestamp:
Jan 31, 2015, 5:49:17 AM (10 years ago)
Author:
bird
Message:

Initial code for the string expansion 'compiler'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/function.c

    r2765 r2768  
    58085808#endif /* CONFIG_WITH_VALUE_LENGTH */
    58095809
     5810#ifdef CONFIG_WITH_COMPILER
     5811/* Used by the "compiler" to get all info about potential functions. */
     5812make_function_ptr_t
     5813lookup_function_for_compiler (const char *name, unsigned int len,
     5814                              unsigned char *minargsp, unsigned char *maxargsp,
     5815                              char *expargsp, const char **funcnamep)
     5816{
     5817  const struct function_table_entry *entry_p = lookup_function (name, len);
     5818  if (!entry_p)
     5819    return 0;
     5820  *minargsp  = entry_p->minimum_args;
     5821  *maxargsp  = entry_p->maximum_args;
     5822  *expargsp  = entry_p->expand_args;
     5823  *funcnamep = entry_p->name;
     5824  return entry_p->func_ptr;
     5825}
     5826#endif /* CONFIG_WITH_COMPILER */
     5827
    58105828
    58115829
Note: See TracChangeset for help on using the changeset viewer.