Lines Matching defs:ppc

213 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc);
1137 PcaPathConf *ppc; /* The object to be returned */
1146 ppc = (PcaPathConf *)malloc(sizeof(PcaPathConf));
1147 if(!ppc) {
1156 if(pca_init_PcaPathConf(ppc, pc))
1157 return del_PcaPathConf(ppc);
1158 return ppc;
1165 * ppc PcaPathConf * The structre to be initialized.
1172 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc)
1182 ppc->id = PPC_ID_CODE;
1183 ppc->pc = pc;
1184 ppc->escaped = 1;
1185 ppc->file_start = -1;
1193 * ppc PcaPathConf * The object to be deleted.
1197 PcaPathConf *del_PcaPathConf(PcaPathConf *ppc)
1199 if(ppc) {
1200 ppc->pc = NULL; /* It is up to the caller to delete the cache */
1204 free(ppc);
1217 PcaPathConf *ppc; /* The configuration arguments */
1240 ppc = (PcaPathConf *) data;
1245 if(ppc->id != PPC_ID_CODE) {
1253 pc = ppc->pc;
1259 if(ppc->file_start < 0) {
1266 start_path = line + ppc->file_start;
1308 prefix = pca_prepare_prefix(pc, start_path, prefix_len, ppc->escaped);
1370 ppc->escaped))
1392 prefix = pca_prepare_prefix(pc, start_path, prefix_len, ppc->escaped);
1412 if(pca_prepare_suffix(pc, filename + prefix_len, ppc->escaped) ||
1420 prefix = pca_prepare_prefix(pc, start_path, prefix_len, ppc->escaped);
1586 * ppc PcaPathConf * The pca_path_completions() configuration object
1592 void ppc_literal_escapes(PcaPathConf *ppc, int literal)
1594 if(ppc)
1595 ppc->escaped = !literal;
1606 * ppc PcaPathConf * The pca_path_completions() configuration object
1611 void ppc_file_start(PcaPathConf *ppc, int start_index)
1613 if(ppc)
1614 ppc->file_start = start_index;