Ignore:
Timestamp:
Mar 30, 2008, 6:13:55 AM (17 years ago)
Author:
bird
Message:

Added comp-cmds-ex, commands, commands-sc and commands-usr. Added a '%' command prefix that make the commands functions skip the line. Added a -c flag to append that'll make it call commands on each argument (similar to -v). Fixed a little bug in comp-cmds/vars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/commands.h

    r903 r1440  
    2626    unsigned int ncommand_lines;/* Number of command lines.  */
    2727    char **command_lines;       /* Commands chopped up into lines.  */
     28#ifdef CONFIG_WITH_COMMANDS_FUNC
     29    short *lines_flags;         /* One set of flag bits for each line.  */
     30#else
    2831    char *lines_flags;          /* One set of flag bits for each line.  */
     32#endif
    2933    int any_recurse;            /* Nonzero if any `lines_recurse' elt has */
    3034                                /* the COMMANDS_RECURSE bit set.  */
     
    4246# define COMMANDS_KMK_BUILTIN   128 /* kmk: kmk builtin command. */
    4347#endif
     48#ifdef CONFIG_WITH_COMMANDS_FUNC
     49# define COMMAND_GETTER_SKIP_IT 256 /* $(commands target) skips this: % */
     50#endif
    4451
    4552void execute_file_commands (struct file *file);
Note: See TracChangeset for help on using the changeset viewer.