diff options
author | Demetri Obenour <demiobenour@gmail.com> | 2016-05-23 17:36:33 -0400 |
---|---|---|
committer | Demetri Obenour <demiobenour@gmail.com> | 2016-05-23 17:36:33 -0400 |
commit | 925549475edb3c8921227fdd96aa0d90a2c0745a (patch) | |
tree | 0ef1940be4b66bd1d91e5b49fef3b12cb2a559ca /src/misc.c | |
parent | 7878f90988bb794b975759495dcb50822f61886c (diff) |
Delete action_m4_define from misc.c
This function was not used and always triggered a fatal error when run.
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -111,30 +111,6 @@ void action_define (const char *defname, int value) buf_append (&defs_buf, &cpy, 1); } - -#ifdef notdef -/** Append "m4_define([[defname]],[[value]])m4_dnl\n" to the running buffer. - * @param defname The macro name. - * @param value The macro value, can be NULL, which is the same as the empty string. - */ -static void action_m4_define (const char *defname, const char * value) -{ - char buf[MAXLINE]; - - flexfatal ("DO NOT USE THIS FUNCTION!"); - - if ((int) strlen (defname) > MAXLINE / 2) { - format_pinpoint_message (_ - ("name \"%s\" ridiculously long"), - defname); - return; - } - - snprintf (buf, sizeof(buf), "m4_define([[%s]],[[%s]])m4_dnl\n", defname, value?value:""); - add_action (buf); -} -#endif - /* Append "new_text" to the running buffer. */ void add_action (const char *new_text) { |