Searched refs:index (Results 1 - 25 of 325) sorted by relevance

1234567891011>>

/ast/src/lib/libast/comp/
H A Dstrchr.c36 #undef index
38 extern char* index(const char*, int);
43 return(index(s, c));
H A Dgetopt.c52 opt_info.index = (optind > 1 || optind == lastoptind) ? optind : 0;
53 if (opt_info.index >= argc)
74 lastoptind = optind = opt_info.index;
/ast/src/lib/libcs/
H A Dcsvar.c52 csvar(Cs_t* state, int index, int trust) argument
57 if (index < 0 || index >= elementsof(var))
59 p = &var[index];
68 _cs_var(int index, int trust) argument
70 return csvar(&cs, index, trust);
/ast/src/lib/libast/misc/
H A Doptjoin.c32 * possible starting at (opt_info.index,opt_info.offset) using
42 * to be parsed at opt_info.index
74 last_index = opt_info.index;
78 more = argv[opt_info.index] != 0;
89 if (*argv[opt_info.index] != '+')
102 if (opt_info.again > 0 && (!err || err_index < opt_info.index || err_index == opt_info.index && err_offset < opt_info.offset))
105 err_index = opt_info.index;
109 opt_info.index = state->pindex ? state->pindex : 1;
112 if (!rep || opt_info.index !
[all...]
H A Dstack.c59 stack->position.index = -1;
93 stack->position.index = -1;
103 if (stack->position.index < 0) return(stack->error);
104 else return(stack->position.block->stack[stack->position.index]);
116 if (++stack->position.index >= stack->size)
131 stack->position.index = 0;
133 stack->position.block->stack[stack->position.index] = value;
152 if (stack->position.index < 0) return(-1);
153 else if (--stack->position.index < 0)
157 stack->position.index
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dmnt_touch.c40 opt_info.index = 1;
60 argc -= opt_info.index;
61 argv += opt_info.index;
H A Dmnt_umount.c45 opt_info.index = 1;
65 argv += opt_info.index;
66 argc -= opt_info.index;
H A Dmnt_list.c48 opt_info.index = 1;
67 argc -= opt_info.index;
68 argv += opt_info.index;
/ast/src/lib/libtksh/src/
H A Dshcompat.c6 int index=0; local
9 index++;
10 return index;
/ast/src/cmd/builtin/
H A Dwhat.c81 register size_t index; local
92 if ((mid = sfvalue(ip)) <= (index = 3))
97 while ((index += skip[buf[index]]) < mid);
98 if (index < HIT)
119 if ((mid = sfvalue(ip)) <= (index = 3))
127 index = 0;
135 index = 1;
143 index = 2;
152 index
[all...]
/ast/src/lib/libast/regex/
H A Dregrexec.c46 register size_t index; local
72 index = leftlen++;
75 while ((index += skip[buf[index]]) < mid);
76 if (index < HIT)
78 index -= HIT;
79 m = mask[n = exactlen - 1][buf[index]];
84 } while (m &= mask[n][buf[--index]]);
85 if ((index += fail[n + 1]) < len)
96 r = (l = buf + index)
[all...]
/ast/src/lib/libast/hash/
H A Dhashsize.c45 unsigned int index; local
69 index = new_b->hash;
70 HASHMOD(tab, index);
71 new_b->next = new_s[index];
72 new_s[index] = new_b;
/ast/src/lib/libtksh/tcl/
H A DtclHash.c28 * produces an index into a hash tables bucket list. The idea is
363 * used to generate a hash index.
436 int index;
438 index = HashString(key) & tablePtr->mask;
444 for (hPtr = tablePtr->buckets[index]; hPtr != NULL;
490 int index;
492 index = HashString(key) & tablePtr->mask;
498 for (hPtr = tablePtr->buckets[index]; hPtr != NULL;
519 hPtr->bucketPtr = &(tablePtr->buckets[index]);
562 int index;
428 int index; local
481 int index; local
552 int index; local
599 int index; local
666 int index, count; local
725 int index, count; local
863 int oldSize, count, index; local
[all...]
H A DtclUnixNotfy.c103 int fd, type, index;
116 index = fd/(NBBY*sizeof(fd_mask));
119 checkMasks[index] |= bit;
122 (checkMasks+MASK_SIZE)[index] |= bit;
125 (checkMasks+2*(MASK_SIZE))[index] |= bit;
169 int index, result, type, fd;
177 index = fd/(NBBY*sizeof(fd_mask));
180 if ((mask & TCL_READABLE) && (readyMasks[index] & bit)) {
183 if ((mask & TCL_WRITABLE) && ((readyMasks+MASK_SIZE)[index] & bit)) {
186 if ((mask & TCL_EXCEPTION) && ((readyMasks+(2*MASK_SIZE))[index]
101 int fd, type, index; local
166 int index, result, type, fd; local
[all...]
/ast/src/lib/libtk/library/
H A Dentry.tcl114 tkEntrySetCursor %W [expr [%W index insert] - 1]
117 tkEntrySetCursor %W [expr [%W index insert] + 1]
120 tkEntryKeySelect %W [expr [%W index insert] - 1]
124 tkEntryKeySelect %W [expr [%W index insert] + 1]
129 [string wordstart [%W get] [expr [%W index insert] - 1]]
132 tkEntrySetCursor %W [string wordend [%W get] [%W index insert]]
136 [string wordstart [%W get] [expr [%W index insert] - 1]]
140 tkEntryKeySelect %W [string wordend [%W get] [%W index insert]]
218 tkEntrySetCursor %W [expr [%W index insert] - 1]
233 tkEntrySetCursor %W [expr [%W index inser
[all...]
H A Dlistbox.tcl37 tkListboxBeginSelect %W [%W index @%x,%y]
52 tkListboxMotion %W [%W index @%x,%y]
59 tkListboxBeginExtend %W [%W index @%x,%y]
62 tkListboxBeginToggle %W [%W index @%x,%y]
133 tkListboxDataExtend %W [%W index end]
142 tkListboxBeginSelect %W [%W index active]
145 tkListboxBeginSelect %W [%W index active]
148 tkListboxBeginExtend %W [%W index active]
151 tkListboxBeginExtend %W [%W index active]
218 set anchor [$w index ancho
[all...]
/ast/src/lib/libtksh/lib/tksh7.6/
H A Dinit.tcl181 if {$id == "# Tcl autoload index file, version 2.0"} {
183 } elseif {$id == "# Tcl autoload index file: each line identifies a Tcl"} {
185 if {([string index $line 0] == "#")
194 error "[file join $dir tclIndex] isn't a proper Tcl index file"
346 # Also delete any procedures that are listed in the auto-load index
373 # dir - Name of the directory in which to create an index.
383 append index "# Tcl autoload index file, version 2.0\n"
384 append index "# This file is generated by the \"auto_mkindex\" command\n"
385 append index "# an
[all...]
/ast/src/cmd/tw/
H A Dxargs.c140 if (opt_info.arg == argv[opt_info.index - 1])
143 opt_info.index--;
155 if (opt_info.arg == argv[opt_info.index - 1])
158 opt_info.index--;
172 if (opt_info.arg == argv[opt_info.index - 1])
175 opt_info.index--;
218 argv += opt_info.index;
/ast/src/lib/libtk/generic/
H A DtkTextMark.c111 TkTextIndex index;
154 TkTextMarkSegToIndex(textPtr, markPtr, &index);
158 TkBTreeLinkSegment(markPtr, &index);
173 argv[0], " mark next index\"", (char *) NULL);
180 argv[0], " mark previous index\"", (char *) NULL);
187 argv[0], " mark set markName index\"", (char *) NULL);
190 if (TkTextGetIndex(interp, textPtr, argv[4], &index) != TCL_OK) {
193 TkTextSetMark(textPtr, argv[3], &index);
258 TkTextIndex index, index2;
259 TkTextMarkSegToIndex(textPtr, textPtr->insertMarkPtr, &index);
110 TkTextIndex index; local
256 TkTextIndex index, index2; local
647 TkTextIndex index; local
721 TkTextIndex index; local
[all...]
/ast/src/cmd/kshlib/cmdtst/
H A Dxargs.c151 if (opt_info.arg == argv[opt_info.index - 1])
154 opt_info.index--;
166 if (opt_info.arg == argv[opt_info.index - 1])
169 opt_info.index--;
183 if (opt_info.arg == argv[opt_info.index - 1])
186 opt_info.index--;
229 argv += opt_info.index;
/ast/src/cmd/ksh93/tests/
H A Dvartree2.sh44 typeset index
56 for index in "${!srcdata.hashnodes[@]}" ; do
57 nameref node=srcdata.hashnodes["${index}"]
96 add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}"
111 typeset index
123 for index in "${!srcdata.hashnodes[@]}" ; do
124 nameref node=srcdata.hashnodes["${index}"]
163 add_tree_leaf dest_tree.l1["$a"].l2["$b"].l3["$c"].entries[${new_index}] "${index}" "${tree_mode}"
/ast/src/lib/libcmd/
H A Dsync.c70 argv += opt_info.index;
/ast/src/lib/libpp/
H A Dppargs.c181 * if last!=0 then argv[opt_info.index]==0 with return(0)
182 * else if argv[opt_info.index]==0 then return(0)
183 * otherwise argv[opt_info.index] is the first unrecognized
338 if ((s = argv[opt_info.index]) && ((n = *s++) == '-' || n == '+') && *s++ == 'D')
343 p = argv[opt_info.index++];
397 for (n = PP_deps; argv[opt_info.index]; opt_info.offset++)
399 switch (argv[opt_info.index][opt_info.offset])
472 if (!(s = argv[opt_info.index]))
476 p = argv[opt_info.index + 1];
499 opt_info.index
[all...]
H A Dgentab.sh28 # %flags [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ]
30 # %keyword <name> [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ] [ first=<id> ] [ last=<id> ]
32 # %sequence [ prefix=<prefix> ] [ index=<index> ] [ init=<init> ]
48 index=""
121 case $index in
122 ?*) eval $index=$counter ;;
128 index
[all...]
/ast/src/lib/librecsort/
H A Drskeyhdr.h61 int index; /* char offset */ member in struct:Position_s
71 int index; /* field definition index */ \
96 int index; /* last field index */ \

Completed in 33 milliseconds

1234567891011>>