Lines Matching defs:cstate
2920 ELFEDIT_CPL_STATE *cstate = (ELFEDIT_CPL_STATE *) cpldata;
2930 ((cstate->ecpl_token_len != 0) &&
2931 ((strlen(str) < cstate->ecpl_token_len))))
2936 if (strncasecmp(cstate->ecpl_token_str, str,
2937 cstate->ecpl_token_len) != 0)
2940 if (strncmp(cstate->ecpl_token_str, str,
2941 cstate->ecpl_token_len) != 0)
2945 if (cstate->ecpl_add_mod_colon) {
2951 (void) cpl_add_completion(cstate->ecpl_cpl, cstate->ecpl_line,
2952 cstate->ecpl_word_start, cstate->ecpl_word_end,
2953 str + cstate->ecpl_token_len, type_suffix, cont_suffix);
2986 match_module_cmds(ELFEDIT_CPL_STATE *cstate, elfeditGC_module_t *mod)
2993 elfedit_cpl_match(cstate, *cmd_name, 1);
3009 ELFEDIT_CPL_STATE *cstate = (ELFEDIT_CPL_STATE *) cpldata;
3017 elfedit_cpl_match(cstate, modlist->ml_mod->mod_name, 1);
3033 ELFEDIT_CPL_STATE *cstate = (ELFEDIT_CPL_STATE *) cpldata;
3044 for (colon_pos = cstate->ecpl_token_str;
3054 * Setting cstate->add_mod_colon tells elfedit_cpl_match()
3061 cstate->ecpl_add_mod_colon = 1;
3063 cstate->ecpl_add_mod_colon = 0;
3066 match_module_cmds(cstate,
3079 elfedit_strnbcpy(buf, cstate->ecpl_token_str,
3080 colon_pos - cstate->ecpl_token_str, sizeof (buf));
3094 * Make a copy of the cstate, and adjust the line and
3101 colon_state = *cstate;
3127 ELFEDIT_CPL_STATE cstate;
3158 /* Set up the cstate block, containing the completion state */
3160 cstate.ecpl_cpl = cpl;
3161 cstate.ecpl_line = line;
3162 cstate.ecpl_word_start = tokst->tokst_buf[ndx].tok_line_off;
3163 cstate.ecpl_word_end = word_end;
3164 cstate.ecpl_add_mod_colon = 0;
3165 cstate.ecpl_token_str = tokst->tokst_buf[ndx].tok_str;
3166 cstate.ecpl_token_len = tokst->tokst_buf[ndx].tok_len;
3173 elfedit_cpl_command(&cstate);
3290 elfedit_cpl_atoconst(&cstate, ELFEDIT_CONST_OUTSTYLE);
3307 elfedit_cpl_atoconst(&cstate,
3339 elfedit_cpl_match(&cstate, item.oai_name, 1);
3365 &cstate, ndx, argv, num_opt);
3372 &cstate, ndx, argv, num_opt);