Lines Matching defs:def
149 /* appends "#define str def\n" */
150 struct Buf *buf_strdefine (buf, str, def)
153 const char *def;
159 buf_strappend (buf, def);
164 /** Pushes "m4_define( [[def]], [[val]])m4_dnl" to end of buffer.
166 * @param def The m4 symbol to define.
170 struct Buf *buf_m4_define (struct Buf *buf, const char* def, const char* val)
177 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + strlen(val) + 2);
179 flexfatal (_("Allocation of buffer for m4 def failed"));
181 snprintf(str, strsz, fmt, def, val);
186 /** Pushes "m4_undefine([[def]])m4_dnl" to end of buffer.
188 * @param def The m4 symbol to undefine.
191 struct Buf *buf_m4_undefine (struct Buf *buf, const char* def)
197 str = (char*)flex_alloc(strsz = strlen(fmt) + strlen(def) + 2);
201 snprintf(str, strsz, fmt, def);