Searched refs:last (Results 1 - 25 of 174) sorted by relevance

1234567

/ast/src/lib/libast/comp/
H A Ddirname.c35 register char *last; local
37 for(last=pathname; *last; last++);
39 while(last>pathname && *--last=='/');
41 for(;last>pathname && *last!='/';last--);
42 if(last
[all...]
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=='/')
44 if(*++last
[all...]
/ast/src/lib/libcmd/
H A Ddirname.c37 "the last component from \astring\a.]"
45 "Otherwise, all characters following the last \b/\b are removed. "
68 register const char *last; local
70 for(last=pathname; *last; last++);
72 while(last>pathname && *--last=='/');
74 for(;last>pathname && *last!
[all...]
H A Dbasename.c44 "characters in \astring\a, all characters up to and including the last "
71 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
[all...]
/ast/src/lib/libast/hash/
H A Dhashlast.c24 /* OBSOLETE 19960229 -- use tab->root->last.{table|bucket} */
36 * return last lookup bucket for table
42 return(tab->root->last.bucket);
H A Dhashlook.c41 register Hash_last_t* last; local
77 last = &tab->root->last;
80 last->table = tab;
83 last->bucket = (Hash_bucket_t*)name;
84 name = hashname(last->bucket);
86 else last->bucket = 0;
87 last->name = name;
88 if (flags & HASH_BUCKET) n = last->bucket->hash;
96 last
[all...]
/ast/src/cmd/mailx/port/
H A Ddtflatten.c83 reg Dtlink_t *r, *t, *list, *last, **slot, **eslot; local
89 list = last = NIL(Dtlink_t*);
95 if(last)
96 last->right = t;
97 else list = last = t;
98 while((t = last->right) )
99 last = t;
100 *slot = last;
107 last = last
[all...]
H A Ddtextract.c82 reg Dtlink_t *t, *last, *list, **slot, **eslot; local
89 { list = last = NIL(Dtlink_t*);
95 if(last)
96 last->right = t;
97 else list = last = t;
98 while((t = last->right) )
99 last = t;
/ast/src/cmd/std/
H A Dseq.sh46 [ first [ incr ] ] last
66 function format # first second next_to_last last
83 float first=1 incr=1 last n sign=1 epsilon
98 1) last=$1;;
99 2) first=$1 last=$2;;
100 3) first=$1 incr=$2 last=$3;;
106 (( n = (last - first) / incr ))
108 then end=$last
110 fmt=$(format $first $((first+incr)) $((last-incr)) $end)
116 (( last
[all...]
/ast/src/lib/libast/tm/
H A Dtmxduration.c39 char* last; local
49 ns = tmxdate(s, &last, now) - now;
52 ns = strtod(s, &last) * TMX_RESOLUTION;
53 if (*last && (f = sfstropen()))
58 if ((i = x - t - 6) > (last - s))
60 last = (char*)s + i;
68 if ((i = x - t - 1) > (last - s))
70 last = (char*)s + i;
78 *e = last;
/ast/src/lib/libodelta/
H A Ddelta.c46 struct _m_ *last; /* doubly linked list for easy insert/delete */ member in struct:_m_
128 static Move *newMove(int type, long size, long addr, Move* last) argument
135 if(last)
137 last->next = ip;
138 ip->last = last;
140 else ip->last = 0;
149 register Move *last = ip->last; local
150 if(last)
159 makeAdd(char* beg, char* end, Move* last) argument
234 register Move *ip, *last; local
304 Move *moves, *last; local
[all...]
/ast/src/lib/libast/string/
H A Dstrelapsed.c47 const char* last; local
53 if (!*(last = s))
60 last = s + 1;
74 last = s;
77 if (s == last + 1)
141 last = s - 1;
152 *e = (char*)last;
/ast/src/cmd/tests/
H A Dtestdate.sh67 last month
105 last month first monday
106 last month 1st monday
107 last month second monday
108 last month 2nd monday
109 last month third monday
110 last month 3rd monday
111 last month fourth monday
112 last month 4th monday
113 last mont
[all...]
/ast/src/lib/libast/misc/
H A Dsetenviron.c48 static char** last; /* last free slot (0) */ local
76 if (!p || (last - p + 1) < n)
89 last = p + n - 1;
107 else if (next == last)
109 n = last - v + INCREMENT + 1;
112 last = p + n - 1;
113 next = last - INCREMENT;
/ast/src/lib/libast/vmalloc/
H A Dvmclose.c42 Vmalloc_t *v, *last; local
61 for(last = Vmheap, v = last->next; v; last = v, v = v->next)
63 { last->next = v->next;
H A Dvmlast.c30 /* Allocation with freeing and reallocing of last allocated block only.
45 Seg_t *seg, *last; local
53 for(last = NIL(Seg_t*), seg = vd->seg; seg; last = seg, seg = seg->next)
56 if(last)
57 { last->next = seg->next;
80 vd->free = seg->last = tp;
126 seg->last = NIL(Block_t*);
175 (seg->last && (Vmuchar_t*)data > (Vmuchar_t*)seg->last) )
[all...]
/ast/src/cmd/mailx/
H A Dtty.c280 register int last = strlen(buf); local
288 if (last)
289 write(wfd, buf, last);
300 if (last == 0)
304 last--;
308 memset(buf, '\b', last);
309 write(wfd, buf, last);
310 memset(buf, ' ', last);
311 write(wfd, buf, last);
312 memset(buf, '\b', last);
[all...]
/ast/src/lib/libcodex/
H A Dcodexmeth.c37 Codexmeth_t* last; local
51 last = meth;
68 last->next = meth;
/ast/src/cmd/probe/
H A DMakefile9 probe :: RELEASE probe.c +last
/ast/src/cmd/ksh93/bltins/
H A Dsleep.c52 char *last; local
70 d = strtod(cp, &last);
71 if(*last)
77 ns = tmxdate(cp, &last, now);
78 else if(*last=='.' && shp->decomma && d==(unsigned long)d)
80 *(pp=last) = ',';
82 d = strtod(cp,&last);
84 if(*last==0)
87 else if(*last!='.' && *last!
[all...]
/ast/src/cmd/at/
H A DMakefile20 atx :: atx.c +last
22 at :SERVICE: atd.c -lcs +last
/ast/src/lib/libtk/library/
H A Dtearoff.tcl103 set last [$src index last]
104 if {$last == "none"} {
107 for {set i [$src cget -tearoff]} {$i <= $last} {incr i} {
H A Dmenu.tcl607 && ([[$mb cget -menu] index last] != "none")} {
630 if {[$menu index last] == "none"} {
633 set length [expr [$menu index last]+1]
777 set last [$w index last]
778 if {$last == "none"} {
781 for {set i 0} {$i <= $last} {incr i} {
823 set last [$menu index last]
824 if {$last
[all...]
/ast/src/lib/libpp/
H A Dgentab.sh30 # %keyword <name> [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ] [ first=<id> ] [ last=<id> ]
50 last=""
97 case $define:$last in
102 echo "#define $prefix$last $n"
131 last=""
218 case $define:$last in
223 echo "#define $prefix$last $n"
/ast/src/cmd/ksh93/sh/
H A Dfcin.c73 * If last is non-zero, and the stream is a file, 0 is returned when
80 register unsigned char *last=_Fcin.fclast, *ptr=_Fcin.fcptr; local
90 if(last)
92 if( ptr<last && ptr>_Fcin.fcbuff && *(ptr-1)==0)
95 *last = _Fcin.fcchar;
96 if(ptr > last)
97 _Fcin.fcptr = ptr = last;
104 if(!last)

Completed in 120 milliseconds

1234567