Searched defs:dict (Results 1 - 25 of 30) sorted by relevance

12

/ast/src/lib/libast/string/
H A Dfmtfs.c66 static Dt_t* dict; local
69 if (!dict)
73 dict = dtopen(&disc, Dtset);
75 else if (ip = (Id_t*)dtmatch(dict, &st->st_dev))
84 if (!dict || !(ip = newof(0, Id_t, 1, strlen(s))))
96 dtinsert(dict, ip);
H A Dfmtgid.c67 static Dt_t* dict; local
70 if (!dict)
74 dict = dtopen(&disc, Dtset);
76 else if (ip = (Id_t*)dtmatch(dict, &gid))
93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
97 dtinsert(dict, ip);
H A Dfmtuid.c67 static Dt_t* dict; local
70 if (!dict)
74 dict = dtopen(&disc, Dtset);
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
97 dtinsert(dict, ip);
H A Dstrgid.c78 static Dt_t* dict; local
81 if (!dict)
84 dict = dtopen(&disc, Dtset);
86 else if (ip = (Id_t*)dtmatch(dict, name))
114 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
118 dtinsert(dict, ip);
H A Dstruid.c72 static Dt_t* dict; local
75 if (!dict)
78 dict = dtopen(&disc, Dtset);
80 else if (ip = (Id_t*)dtmatch(dict, name))
102 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
106 dtinsert(dict, ip);
/ast/src/lib/librecsort/
H A Drskeyhdr.h85 unsigned char dict[UCHAR_MAX + 1]; /* dictionary order */ member in struct:__anon369
/ast/src/cmd/dsslib/ip_t/
H A Dpt.h71 Dt_t* dict; member in struct:Pt_s
H A Dptv.h64 Dt_t* dict; member in struct:Ptv_s
/ast/src/cmd/dsslib/lookup/
H A Dlookup.c44 Dt_t* dict; member in struct:State_s
73 if (!(state->dict = dtnew(vm, &state->dictdisc, Dtset)))
124 dtinsert(state->dict, v);
142 return !!dtmatch(state->dict, val.value.string.data);
/ast/src/lib/libast/cdt/
H A Dcdtlib.h64 Dt_t dict; /* when DT_INDATA is requested */ member in struct:_dtdata_s
/ast/src/cmd/std/
H A Ddu.c98 mark(Dt_t* dict, Hit_t* key, FTSENT* ent) argument
107 dtinsert(dict, hit);
123 Dt_t* dict; local
212 if (!(dict = dtopen(&disc, Dtset)))
244 if (dtsearch(dict, &hit))
254 if (dirs && dtsearch(dict, &hit))
272 mark(dict, &hit, ent);
303 mark(dict, &hit, ent);
H A Dlocale.c565 Dt_t* dict; member in struct:State_s
1152 if (!(state.dict = dtopen(&state.disc, Dtoset)))
1155 dtinsert(state.dict, keywords + i);
1164 dtinsert(state.dict, key);
1170 if (!(key = (Keyword_t*)dtmatch(state.dict, name)))
1191 list_keyword(sfstdout, (Keyword_t*)dtmatch(state.dict, state.categories[0].name), NiL, flags);
/ast/src/cmd/builtin/
H A Dlook.c29 # define DICT_FILE "/usr/dict/words"
237 static const char* dict[] = { DICT_FILE, "/usr/share/dict/words", "/usr/lib/dict/words" }; local
282 for (n = 0; n < elementsof(dict); n++)
283 if (!eaccess(dict[n], R_OK))
285 file = (char*)dict[n];
289 error(ERROR_system(1), "%s: not found", dict[0]);
/ast/src/lib/libast/misc/
H A Dtranslate.c71 Dtdisc_t message_disc; /* message dict discipline */
72 Dtdisc_t catalog_disc; /* catalog dict discipline */
101 * add msg to dict
105 entry(Dt_t* dict, int set, int seq, const char* msg) argument
114 if (!dtinsert(dict, mp))
H A Dmagic.c181 Dtdisc_t dtdisc; /* dict discipline */ \
182 Dt_t* idtab; /* identifier dict */ \
183 Dt_t* infotab; /* info keyword dict */
187 static Info_t dict[] = /* keyword dictionary */ variable
1189 for (q = 0; q < elementsof(dict); q++)
1190 dtinsert(mp->idtab, &dict[q]);
/ast/src/cmd/dsslib/merge/
H A Dmerge.c72 ordercmp(Dt_t* dict, void* a, void* b, Dtdisc_t* disc) argument
/ast/src/cmd/dsslib/text/
H A Dtext.c55 Dt_t* dict; member in struct:Text_s
/ast/src/cmd/dsslib/validate/
H A Dvalidate.c98 invalidcmp(Dt_t* dict, void* a, void* b, Dtdisc_t* disc) argument
/ast/src/lib/libardir/
H A Dar-omf.c48 Dt_t *dict; member in struct:State_s
133 Dt_t *dp = ((State_t*)ar->data)->dict;
168 Dt_t *dp = sp?sp->dict:0;
272 if(!(state->dict = dtopen(&namdisc,Dtoset)))
369 ap->next = (Arfile_t*)dtnext(ap->dict,ap->next);
372 dtdisc(ap->dict, &offdisc, 0);
373 ap->next = (Arfile_t*)dtfirst(ap->dict);
402 Dt_t *dp = ((State_t*)ar->data)->dict;
/ast/src/cmd/mailx/
H A Dvars.c760 * Find/insert name in dict.
761 * The dict*() cdt wrappers create dictionaries as needed.
776 register struct dict* dict; local
784 if (!(dict = (op & STACK) ? (struct dict*)salloc(sizeof(struct dict)) : newof(0, struct dict, 1, 0)))
786 memset(dict, 0, sizeof(*dict));
[all...]
/ast/src/cmd/ksh93/sh/
H A Dsubshell.c59 Dt_t *dict; member in struct:Link
294 lp->dict = dp;
295 mp = (Namval_t*)&lp->dict;
321 np = (Namval_t*)&lp->dict;
370 dtinsert(lp->dict,mp);
H A Dnvdisc.c33 int nv_compare(Dt_t* dict, Void_t *sp, Void_t *dp, Dtdisc_t *disc) argument
1273 Dt_t *dict; member in struct:table
1282 return((Namval_t*)dtfirst(tp->dict));
1289 return(nv_create(name, tp->dict, flags, fp));
1296 Dt_t *oroot=tp->dict,*nroot=dtopen(&_Nvdisc,Dtoset);
1300 ntp->dict = nroot;
1328 register Dt_t *root = ((struct table*)fp)->dict;
1362 register Dt_t *root = ((struct table*)fp)->dict;
1413 return(tp->dict);
1418 return(tp->dict);
1436 nv_mount(Namval_t *np, const char *name, Dt_t *dict) argument
[all...]
H A Dinit.c1940 Dt_t *base_treep, *dict; local
1976 nv_mount(np,(const char*)0,dict=dtopen(&_Nvdisc,Dtoset));
1983 treep = dict;
/ast/src/cmd/kshlib/dss/
H A Ddss.c114 Dt_t *dict; member in struct:parent
560 Dt_t *dict = dp->dict; local
578 vp = (Cxvariable_t*)dtmatch(dict,name);
765 { root=dp->dict;
772 vp=(Cxvariable_t*)dtnext(dp->dict,vp);
1153 Dt_t *dict; local
1193 dict = dss->cx->variables;
1197 if(!tp->member || !(dict = tp->member->members))
1203 for (n=0,vp = (Cxvariable_t*)dtfirst(dict); v
1324 Dt_t *dict; local
[all...]
/ast/src/lib/libdss/
H A Dcxopen.c1191 Dt_t* dict; local
1200 dict = cx->types;
1201 else if (!(dict = dtnew(cx->vm, &state.namedisc, Dtoset)))
1209 dtview(dict, cx->types);
1210 cx->types = dict;
1223 dict = state.types;
1224 if (dtsearch(dict, type))
1230 dtinsert(dict, type);
1368 Dt_t* dict; local
1375 dict
1469 Dt_t* dict; local
1603 Dt_t* dict; local
1665 Dt_t* dict; local
1758 Dt_t* dict; local
1882 Dt_t* dict; local
1966 Dt_t* dict; local
2039 Dt_t* dict; local
[all...]

Completed in 100 milliseconds

12