diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-26 21:57:44 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-26 21:57:44 +0200 |
commit | 7e662d44f8c64be0533d2a4548b7ecdda45a2019 (patch) | |
tree | 0ae69f1a7c445257b5fe0b651ad45e3049736aa8 /src/pies.h | |
parent | 4769e173a6630c464c633198c3ac97da3500905a (diff) | |
download | pies-7e662d44f8c64be0533d2a4548b7ecdda45a2019.tar.gz pies-7e662d44f8c64be0533d2a4548b7ecdda45a2019.tar.bz2 |
Rearrange structures prog and component.
* config_array_to_argv (config_array_to_argv): Take four arguments.
Return argc in the memory location pointed to by the 4th one (unless NULL).
All callers updated.
(_cb_command): Fill both comp->argv and comp->argc.
(component_keywords): Pass pointer to struct component to _cb_command.
* src/pies.h (struct component): New member `argc'.
* src/progman.c (struct prog): Move idx to v.p; change its type to unsigned.
Remove v.p.argc. All uses updated.
(numprog): Rename to numcomp; change type to unsigned.
(prog_lookup_by_idx): Check only elements of type
TYPE_COMPONENT.
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -141,6 +141,7 @@ struct component enum pies_comp_mode mode; char *tag; /* Entry tag (for diagnostics purposes) */ char *program; /* Program name */ + size_t argc; /* Number of command line arguments */ char **argv; /* Program command line */ char **env; /* Program environment */ char *dir; /* Working directory */ |