Lines Matching refs:cm
111 struct commandline_macro *cm; in commandline_macros_cleanup() local
115 cm = array_get(&commandline_macros, i); in commandline_macros_cleanup()
116 dofree(cm, sizeof(*cm)); in commandline_macros_cleanup()
128 struct commandline_macro *cm; in commandline_macro_add() local
130 cm = domalloc(sizeof(*cm)); in commandline_macro_add()
131 cm->where = *p; in commandline_macro_add()
132 cm->where2 = *p2; in commandline_macro_add()
133 cm->macro = macro; in commandline_macro_add()
134 cm->expansion = expansion; in commandline_macro_add()
136 array_add(&commandline_macros, cm, NULL); in commandline_macro_add()
181 struct commandline_macro *cm; in apply_commandline_macros() local
186 cm = array_get(&commandline_macros, i); in apply_commandline_macros()
187 if (cm->expansion != NULL) { in apply_commandline_macros()
188 macro_define_plain(&cm->where, cm->macro, in apply_commandline_macros()
189 &cm->where2, cm->expansion); in apply_commandline_macros()
191 macro_undef(cm->macro); in apply_commandline_macros()
193 dofree(cm, sizeof(*cm)); in apply_commandline_macros()