Searched defs:first (Results 1 - 25 of 58) sorted by relevance

123

/ast/src/lib/libast/comp/
H A Dbasename.c35 register char *first, *last; local
36 for(first=last=pathname; *last; last++);
38 if(last>first)
39 while(*--last=='/' && last > first);
40 if(last==first && *last=='/')
43 if(*first=='/')
49 for(first=last++;first>pathname && *first!='/';first
[all...]
/ast/src/lib/libast/sfio/
H A Dsffilbuf.c26 ** If n == 0, if the buffer is not empty, just return the first byte;
27 ** otherwise fill the buffer and return the first byte.
43 reg int first, local, rcrv, rc, justseek; local
56 for(first = 1;; first = 0, (f->mode &= ~SF_LOCK) )
64 { /* on first iteration, n is amount beyond current buffer;
66 if((first && n <= 0) || (!first && n <= r) ||
/ast/src/lib/libcmd/
H A Dbasename.c71 register char *first, *last; local
73 for(first=last=pathname; *last; last++);
75 if(last>first)
76 while(*--last=='/' && last > first);
77 if(last==first && *last=='/')
80 if(*first=='/')
86 for(first=last++;first>pathname && *first!='/';first
[all...]
H A Dfold.c61 "(spaces or tabs), within the first \awidth\a column positions or "
91 register char *cp, *first; local
110 first = cp;
116 while((cp-first) > (width-col))
119 col = last_space - first;
122 sfwrite(out,first,col);
123 first += col;
126 if(cp>first+1 || (n!=T_NL && n!=T_BS))
139 if((cp+(--col)-first)>0)
143 n = (TABSIZE-1) - (cp+col-1-first)
[all...]
H A Dcut.c37 "forms. The first is two positive integers separated by a hyphen "
117 * compare the first of an array of integers
374 unsigned char *bp, *first; local
390 first = cp;
453 first = bp = cp += c - i;
525 /* set to delimiter unless the first field */
541 copy = first;
554 if(inword && nodelim && !cut->sflag && (c=cp-first)>0)
559 sfwrite(fdtmp,(char*)first,c);
H A Dtail.c38 "is output before all but the first file but this can be changed "
158 register Sfoff_t first; local
165 if ((first = sfseek(fp, (Sfoff_t)0, SEEK_CUR)) < 0)
169 if ((offset = last - number) < first)
170 return first;
175 if ((offset = last - SF_BUFSIZE) < first)
176 offset = first;
189 if (offset == first)
193 return first;
/ast/src/lib/libcodex/
H A Dcodexlib.h54 Codexmeth_t* first; member in struct:Codexstate_s
/ast/src/lib/libtk/generic/
H A DtkTextIndex.c60 int lineIndex; /* Index of desired line (0 means first
157 * first character in segPtr.
214 TkTextIndex first, last;
240 * First look for the form "tag.first" or "tag.last" where "tag"
249 if ((p[1] == 'f') && (strncmp(p+1, "first", 5) == 0)) {
265 TkTextMakeIndex(textPtr->tree, 0, 0, &first);
268 TkBTreeStartSearch(&first, &last, tagPtr, &search);
269 if (!TkBTreeCharTagged(&first, tagPtr) && !TkBTreeNextTag(&search)) {
500 * return value is the address of the first character after the
664 * before srcPtr, or to the first characte
210 TkTextIndex first, last; local
[all...]
H A DtkTextTag.c82 static int TagSortProc _ANSI_ARGS_((CONST VOID *first,
117 TkTextIndex first, last, index1, index2;
451 TkBTreeTag(TkTextMakeIndex(textPtr->tree, 0, 0, &first),
580 * The first character is tagged. See if there is an
714 TkTextMakeIndex(textPtr->tree, 0, 0, &first);
717 TkBTreeStartSearch(&first, &last, tagPtr, &tSearch);
718 if (TkBTreeCharTagged(&first, tagPtr)) {
719 TkTextPrintIndex(&first, position);
1007 * The return value is -1 if the first argument should be before
1019 TagSortProc(first, secon
116 TkTextIndex first, last, index1, index2; local
[all...]
H A DtkScrollbar.c119 double firstFraction; /* Position of first visible thing in window,
524 char first[TCL_DOUBLE_SPACE], last[TCL_DOUBLE_SPACE];
526 Tcl_PrintDouble(interp, scrollPtr->firstFraction, first);
528 Tcl_AppendResult(interp, first, " ", last, (char *) NULL);
558 double first, last;
560 if (Tcl_GetDouble(interp, argv[2], &first) != TCL_OK) {
566 if (first < 0) {
568 } else if (first > 1.0) {
571 scrollPtr->firstFraction = first;
522 char first[TCL_DOUBLE_SPACE], last[TCL_DOUBLE_SPACE]; local
556 double first, last; local
/ast/src/cmd/std/
H A Dunexpand.c36 "position to be decremented by 1 unless already in the first column.]" "[+?If no \afile\a is given, or if the \afile\a is \b-\b, \bexpand\b "
70 "unless already in the first column.]"
135 register char *cp, *first, *buff; local
148 first = cp-n;
159 if(tabmax==0 || cp==first+1)
165 tabspace -= (cp-first)%tabspace;
214 n = (cp-1)-first;
236 first -= (n-1);
243 if((first+=2) > cp)
244 first
[all...]
/ast/src/lib/libz/
H A Dcrc32.c16 protection on the static variables used to control the first-use generation
18 first call get_crc_table() to initialize the tables before allowing more than
100 The first table is simply the CRC of all possible eight bit values. This is
112 static volatile int first = 1; /* flag to limit concurrent making */ local
118 if (first) {
119 first = 0;
136 and then the byte reversal of those as well as the first table */
150 else { /* not first */
398 /* apply len2 zeros to crc1 (first square will put the operator for one
/ast/src/lib/libast/disc/
H A Dsfdcdos.c119 register char *cp = (char*)buff, *first, *cpmax; local
197 first=cp;
204 if((m=(cp-first)-1) >0)
205 memcpy(first-count, first, m);
H A Dsfkeyprintf.c58 int first; member in struct:__anon260
72 #define initfield(f,s) ((f)->first = (f)->delimiter = *((f)->next = (s)))
87 if (f->first)
88 f->first = 0;
/ast/src/lib/libast/port/
H A Dmc.c65 int first; local
99 first = 1;
126 if (first)
128 first = 0;
/ast/src/lib/libast/uwin/
H A Drcmd.c323 int first = 1; local
352 if (first == 1) {
357 first = 0;
/ast/src/cmd/ksh93/sh/
H A Dexpand.c279 int first, last, incr, count = 0; local
287 /* first search for {...,...} */
308 first = strtol(pat,&endc,0);
314 else if(last<first)
354 first = *pat;
362 else if(first>last)
417 pat[0] = first;
423 sfsprintf(pat=tmp,sizeof(tmp),format,first);
427 if(incr*(first+incr) > last*incr)
430 first
[all...]
H A Dstring.c52 register int first; local
56 if(sp==0 || (first= *sp)==0)
59 while((c= *tp->sh_name) && (CC_NATIVE!=CC_ASCII || c <= first))
61 if(first == c && strcmp(sp,tp->sh_name)==0)
76 register int first; local
93 if((first= *sp)==0)
104 if(first == c)
195 /* skip to first character which matches start of oldsp */
/ast/src/lib/libtksh/tcl/
H A DtclCmdIL.c60 static int SortCompareProc _ANSI_ARGS_((CONST VOID *first,
391 * Skip over the first "index" elements of the list, then add
545 int first, last, result;
551 " list first last\"", (char *) NULL);
556 first = INT_MAX;
559 if (Tcl_GetInt(interp, argv[2], &first) != TCL_OK) {
563 if (first < 0) {
564 first = 0;
576 if ((first > last) && !firstIsEnd) {
584 for (count = 0, begin = argv[1]; count < first; begi
537 int first, last, result; local
644 int i, first, last, count, result, size, firstIsEnd; local
[all...]
/ast/src/lib/librecsort/
H A Drsmerge.c436 /* fill first cache */
849 Rsobj_t first, *o, *t, *endobj; local
851 obj = mg->obj+mg->cpos; o = &first;
/ast/src/cmd/dsslib/netflow/
H A Dflow-dump.c50 Nflong_t first; member in struct:Rec_1_s
86 Nflong_t first; member in struct:Rec_5_s
120 Nflong_t first; member in struct:Rec_7_s
338 rp->start = state->boot + (Nftime_t)rp->first * US;
/ast/src/cmd/mailx/
H A Dhead.c721 int first = 1; local
797 if (first) {
798 first = 0;
H A Dlist.c892 * Find the first message whose flags & m == f and return
896 first(int f, int m) function
/ast/src/cmd/mailx/port/
H A Dmime.c457 arg(register Parse_t* pp, int first) argument
479 else if (first < 0 && pp->name.data == (s - 1))
489 if (first < 0)
495 else if (c == '=' && !first)
497 first = 1;
501 else if (first < 0 && isspace(c))
505 if (first >= 0 || !q)
510 pp->name.size = s - pp->name.data - (q && first < 0);
/ast/src/lib/libast/misc/
H A Dglob.c299 char first; local
329 first = (rescan == prefix);
347 if (!first && !*rescan && *(rescan - 2) == gp->gl_delim)

Completed in 635 milliseconds

123