diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-09-06 04:32:03 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:14 -0600 |
commit | b1e41f328ea871696dae7024a7a1aa6e173f3b26 (patch) | |
tree | 2a98eaec8e76ff3123bad63bb650036fae1b2eff /wrapper/plugin-parse.c | |
parent | ea8a13dfa2a25f52cc245a8992fbff5d1e41106d (diff) |
it's prollu not worthy of a commit, but I'm going to `hit the hay'.
Diffstat (limited to 'wrapper/plugin-parse.c')
-rw-r--r-- | wrapper/plugin-parse.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/wrapper/plugin-parse.c b/wrapper/plugin-parse.c index 3be7543..7fd04bb 100644 --- a/wrapper/plugin-parse.c +++ b/wrapper/plugin-parse.c @@ -17,8 +17,8 @@ If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef FILE_plugin-parse.c_SEEN -#define FILE_plugin-parse.c_SEEN +#ifndef FILE_plugin_parse_c_SEEN +#define FILE_plugin_parse_c_SEEN void _plugin_parse_comment (FILE *file) { @@ -80,16 +80,7 @@ char *_plugin_parse_depend (FILE *file) struct plugin_command *_plugin_parse (struct plugin *plugin, FILE *file) { - struct plugin_command *command; - command=(struct plugin_command *)xmalloc(sizeof(*command)); - - command->plugin=plugin; - command->p_next=NULL; - - command->depend=NULL; - command->depends=NULL; - command->child=NULL; - command->d_next=NULL; + struct plugin_command *command=mkcommand(); size_t nbytes = 10; char *string = (char *)xmalloc(nbytes); |