Lines Matching refs:mp
95 register struct db_user_macro *mp;
97 for (mp = db_user_macro; mp < &db_user_macro[DB_NUSER_MACRO]; mp++) {
98 if (mp->m_name[0] == 0)
100 if (strncmp(mp->m_name, name, TOK_STRING_SIZE) == 0)
101 return(mp);
111 register struct db_user_macro *mp, *ep;
118 if ((mp = db_lookup_macro(db_tok_string)) == 0) {
123 for (mp = db_user_macro; mp < ep && mp->m_name[0]; mp++);
124 if (mp >= ep)
128 strlcpy(mp->m_name, db_tok_string, TOK_STRING_SIZE);
131 for (p = mp->m_lbuf; c > 0; c = db_read_char())
134 mp->m_size = p - mp->m_lbuf;
140 struct db_user_macro *mp = NULL;
143 || (mp = db_lookup_macro(db_tok_string)) == 0) {
148 mp->m_name[0] = 0;
155 register struct db_user_macro *mp;
163 for (mp = db_user_macro; mp < &db_user_macro[DB_NUSER_MACRO]; mp++) {
164 if (mp->m_name[0] == 0)
166 if (name && strncmp(mp->m_name, name, TOK_STRING_SIZE))
168 db_printf("%s: %s", mp->m_name, mp->m_lbuf);
175 register struct db_user_macro *mp;
178 if ((mp = db_lookup_macro(name)) == 0)
192 db_exec_cmd_nest(mp->m_lbuf, mp->m_size);