Lines Matching refs:cp
103 register const char *cp=arg;
106 while(c= *cp++)
115 cp=arg;
116 while((c= *cp) && c==' ' || c=='\t' || c==',')
117 cp++;
120 tablist[n] = strtol(cp,(char**)&arg,10)-1;
121 if(cp==arg)
122 error(ERROR_exit(1),"%c - invalid character in tablist",*cp);
135 register char *cp, *first, *buff;
146 while(buff = cp = sfreserve(in,SF_UNBOUND,0))
148 first = cp-n;
149 cpend = cp + sfvalue(in);
155 while((n=state[*(unsigned char*)cp++])==0);
159 if(tabmax==0 || cp==first+1)
163 cp -= 1;
165 tabspace -= (cp-first)%tabspace;
166 while(cp[n]==' ')
168 i = cp-buff;
170 if(cp[n]==0 && cp+n+1==cpend && savec==' ')
182 buff = cp+n;
184 cp += n;
185 if(n >= tabspace || cp+n>cpend)
192 buff = cp;
213 sfwrite(out,buff, (cp-1)-buff);
214 n = (cp-1)-first;
238 buff = cp;
243 if((first+=2) > cp)
244 first = cp;
247 if(cp==cpend)
250 cp[-1] = savec;
254 first = cp;
261 if(cp >= cpend)
263 if((n=cp-buff)>0)
265 n = cp-first;
277 register char *cp;
285 if (cp = strrchr(argv[0], '/')) cp++;
286 else cp = argv[0];
287 error_info.id = cp;
288 type = *cp == 'e';
306 cp = argv[opt_info.index]+1;
307 if(*cp>='0' && *cp<='9')
308 tablist = gettabs(cp, &ntabs);
323 if(cp= *argv)
327 if (!cp || streq(cp,"-"))
329 else if (!(fp = sfopen(NiL, cp, "r")))
331 error(ERROR_system(0), "%s: cannot open", cp);
339 } while (cp = *argv++);