Lines Matching refs:ma
86 struct macros *ma; in read_init() local
91 ma = &el->el_read->macros; in read_init()
92 if ((ma->macro = el_calloc(EL_MAXMACRO, sizeof(*ma->macro))) == NULL) in read_init()
94 ma->level = -1; in read_init()
95 ma->offset = 0; in read_init()
211 struct macros *ma = &el->el_read->macros; in el_wpush() local
213 if (str != NULL && ma->level + 1 < EL_MAXMACRO) { in el_wpush()
214 ma->level++; in el_wpush()
215 if ((ma->macro[ma->level] = wcsdup(str)) != NULL) in el_wpush()
217 ma->level--; in el_wpush()
358 read_pop(struct macros *ma) in read_pop() argument
362 el_free(ma->macro[0]); in read_pop()
363 for (i = 0; i < ma->level; i++) in read_pop()
364 ma->macro[i] = ma->macro[i + 1]; in read_pop()
365 ma->level--; in read_pop()
366 ma->offset = 0; in read_pop()
370 read_clearmacros(struct macros *ma) in read_clearmacros() argument
372 while (ma->level >= 0) in read_clearmacros()
373 el_free(ma->macro[ma->level--]); in read_clearmacros()
374 ma->offset = 0; in read_clearmacros()
383 struct macros *ma = &el->el_read->macros; in el_wgetc() local
388 if (ma->level < 0) in el_wgetc()
391 if (ma->macro[0][ma->offset] == '\0') { in el_wgetc()
392 read_pop(ma); in el_wgetc()
396 *cp = ma->macro[0][ma->offset++]; in el_wgetc()
398 if (ma->macro[0][ma->offset] == '\0') { in el_wgetc()
400 read_pop(ma); in el_wgetc()