Searched defs:dictionary (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/lib/libast/common/misc/
H A Derrormsg.c27 * error function with specific dictionary
33 errormsg(const char* dictionary, int level, ...) argument
38 errorv(dictionary, level, ap);
/illumos-gate/usr/src/common/ficl/
H A Dprefix.c54 * Storing prefix entries in the dictionary greatly simplifies
76 * Make sure we found the prefix dictionary - otherwise silently fail
135 * Build prefix support into the dictionary and the parser
143 ficlDictionary *dictionary = system->dictionary; local
151 hash = ficlDictionaryCreateWordlist(dictionary, 1);
153 ficlDictionaryAppendConstantPointer(dictionary, list_name, hash);
158 (void) ficlDictionarySetPrimitive(dictionary, "__tempbase",
170 * oldCompilationWordlist = dictionary->compilationWordlist;
171 * dictionary
[all...]
H A Dextras.c122 * dictionary hash table by hashcode...
174 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local
176 (void) ficlDictionarySetPrimitive(dictionary, "break",
178 (void) ficlDictionarySetPrimitive(dictionary, "load",
180 (void) ficlDictionarySetPrimitive(dictionary, "spewhash",
182 (void) ficlDictionarySetPrimitive(dictionary, "system",
H A Dsearch.c58 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
60 FICL_VM_ASSERT(vm, dictionary);
61 if (dictionary->wordlistCount < 1) {
65 dictionary->compilationWordlist =
66 dictionary->wordlists[dictionary->wordlistCount-1];
92 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
93 ficlDictionaryLock(dictionary, FICL_TRUE);
94 ficlStackPushPointer(vm->dataStack, dictionary->compilationWordlist);
95 ficlDictionaryLock(dictionary, FICL_FALS
109 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
164 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
186 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
226 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
245 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
266 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
345 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local
[all...]
H A Dsystem.c62 * Each ficlSystem builds a global dictionary during its start
64 * Therefore only one VM can update the dictionary
67 * the dictionary. The function is stubbed out by default,
94 * Binds a global dictionary to the interpreter system.
98 * Then write the "precompiled" portion of the dictionary in.
99 * The dictionary needs to be at least large enough to hold the
101 * out how much of the dictionary is used at any time.
149 system->dictionary = ficlDictionaryCreateHashed(system,
151 system->dictionary->forthWordlist->name = "forth-wordlist";
166 * The locals dictionary i
315 ficlDictionary *dictionary = system->dictionary; local
432 ficlDictionary *dictionary = system->dictionary; local
[all...]
H A Dfloat.c58 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
63 (void) ficlDictionaryAppendWord(dictionary, name,
65 ficlDictionaryAppendCell(dictionary, ficlStackPop(vm->floatStack));
70 ficlDictionaryAppendFConstant(ficlDictionary *dictionary, char *name, argument
75 return (ficlDictionaryAppendConstantInstruction(dictionary, s,
81 ficlDictionarySetFConstant(ficlDictionary *dictionary, char *name, argument
86 return (ficlDictionarySetConstantInstruction(dictionary, s,
96 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
101 (void) ficlDictionaryAppendWord(dictionary, name,
103 ficlDictionaryAppendCell(dictionary, ficlStackPo
108 ficlDictionaryAppendF2Constant(ficlDictionary *dictionary, char *name, ficlFloat value) argument
118 ficlDictionarySetF2Constant(ficlDictionary *dictionary, char *name, ficlFloat value) argument
218 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
411 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local
[all...]
H A Ddictionary.c3 * Forth Inspired Command Language - dictionary methods
6 * $Id: dictionary.c,v 1.2 2010/09/12 15:14:52 asau Exp $
9 * This file implements the dictionary -- Ficl's model of
11 * dictionary. A word is a named chunk of data with its
58 #define FICL_SAFE_SYSTEM_FROM_DICTIONARY(dictionary) \
59 (((dictionary) != NULL) ? (dictionary)->system : NULL)
60 #define FICL_DICTIONARY_ASSERT(dictionary, expression) \
61 FICL_SYSTEM_ASSERT(FICL_SAFE_SYSTEM_FROM_DICTIONARY(dictionary), \
67 * from the dictionary lis
75 ficlDictionaryAbortDefinition(ficlDictionary *dictionary) argument
92 ficlDictionaryAlign(ficlDictionary *dictionary) argument
103 ficlDictionaryAllot(ficlDictionary *dictionary, int n) argument
116 ficlDictionaryAllotCells(ficlDictionary *dictionary, int nficlCells) argument
126 ficlDictionaryAppendCell(ficlDictionary *dictionary, ficlCell c) argument
136 ficlDictionaryAppendCharacter(ficlDictionary *dictionary, char c) argument
148 ficlDictionaryAppendUnsigned(ficlDictionary *dictionary, ficlUnsigned u) argument
157 ficlDictionaryAppendData(ficlDictionary *dictionary, void *data, ficlInteger length) argument
192 ficlDictionaryAppendString(ficlDictionary *dictionary, ficlString s) argument
204 ficlDictionaryAppendConstantInstruction(ficlDictionary *dictionary, ficlString name, ficlInstruction instruction, ficlInteger value) argument
216 ficlDictionaryAppend2ConstantInstruction(ficlDictionary *dictionary, ficlString name, ficlInstruction instruction, ficl2Integer value) argument
232 ficlDictionaryAppendConstant(ficlDictionary *dictionary, char *name, ficlInteger value) argument
242 ficlDictionaryAppend2Constant(ficlDictionary *dictionary, char *name, ficl2Integer value) argument
252 ficlDictionarySetConstantInstruction(ficlDictionary *dictionary, ficlString name, ficlInstruction instruction, ficlInteger value) argument
270 ficlDictionarySetConstant(ficlDictionary *dictionary, char *name, ficlInteger value) argument
280 ficlDictionarySet2ConstantInstruction(ficlDictionary *dictionary, ficlString s, ficlInstruction instruction, ficl2Integer value) argument
311 ficlDictionarySet2Constant(ficlDictionary *dictionary, char *name, ficl2Integer value) argument
322 ficlDictionarySetConstantString(ficlDictionary *dictionary, char *name, char *value) argument
341 ficlDictionaryAppendWord(ficlDictionary *dictionary, ficlString name, ficlPrimitive code, ficlUnsigned8 flags) argument
382 ficlDictionaryAppendPrimitive(ficlDictionary *dictionary, char *name, ficlPrimitive code, ficlUnsigned8 flags) argument
392 ficlDictionarySetPrimitive(ficlDictionary *dictionary, char *name, ficlPrimitive code, ficlUnsigned8 flags) argument
412 ficlDictionaryAppendInstruction(ficlDictionary *dictionary, char *name, ficlInstruction i, ficlUnsigned8 flags) argument
420 ficlDictionarySetInstruction(ficlDictionary *dictionary, char *name, ficlInstruction i, ficlUnsigned8 flags) argument
432 ficlDictionaryCellsAvailable(ficlDictionary *dictionary) argument
442 ficlDictionaryCellsUsed(ficlDictionary *dictionary) argument
462 ficlDictionary *dictionary; local
483 ficlDictionaryCreateWordlist(ficlDictionary *dictionary, int bucketCount) argument
502 ficlDictionaryDestroy(ficlDictionary *dictionary) argument
514 ficlDictionaryEmpty(ficlDictionary *dictionary, unsigned bucketCount) argument
542 ficlDictionaryIsAWord(ficlDictionary *dictionary, ficlWord *word) argument
578 ficlDictionaryFindEnclosingWord(ficlDictionary *dictionary, ficlCell *cell) argument
602 ficlDictionaryIncludes(ficlDictionary *dictionary, void *p) argument
615 ficlDictionaryLookup(ficlDictionary *dictionary, ficlString name) argument
658 ficlDictionarySee(ficlDictionary *dictionary, ficlWord *word, ficlCallback *callback) argument
808 ficlDictionaryResetSearchOrder(ficlDictionary *dictionary) argument
822 ficlDictionarySetFlags(ficlDictionary *dictionary, ficlUnsigned8 set) argument
835 ficlDictionaryClearFlags(ficlDictionary *dictionary, ficlUnsigned8 clear) argument
846 ficlDictionarySetImmediate(ficlDictionary *dictionary) argument
858 ficlDictionaryUnsmudge(ficlDictionary *dictionary) argument
880 ficlDictionaryWhere(ficlDictionary *dictionary) argument
[all...]
H A Dtools.c126 * Calculate a figure of merit for the dictionary hash table based
127 * on the average search depth for all the words in the dictionary,
140 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
153 FICL_VM_DICTIONARY_CHECK(vm, dictionary, 0);
155 pFHash = dictionary->wordlists[dictionary->wordlistCount - 1];
530 ficlDictionary *dictionary; member in struct:stackContext
648 if (ficlDictionaryIncludes(context->dictionary, cell->p)) {
650 word = ficlDictionaryFindEnclosingWord(context->dictionary,
669 context.dictionary
680 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
703 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
718 ficlPrimitiveWordsBackend(ficlVm *vm, ficlDictionary *dictionary, ficlHash *hash, char *ss) argument
821 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
843 ficlDictionary *dictionary = vm->callback.system->environment; local
930 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local
[all...]
H A Dvm.c344 * stringlit: Fetch the count from the dictionary, then push
1317 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1318 dictionary->smudge->code =
1320 dictionary->smudge->param[0].p = ip;
1401 ficlDictionary *dictionary; local
1404 dictionary = ficlVmGetDictionary(vm);
1405 ficlDictionaryAppendCell(dictionary, *dataTop--);
1410 ficlDictionary *dictionary; local
1414 dictionary = ficlVmGetDictionary(vm);
1416 ficlDictionaryAppendCharacter(dictionary,
2426 ficlDictionary *dictionary = system->dictionary; local
2676 ficlVmDictionarySimpleCheck(ficlVm *vm, ficlDictionary *dictionary, int cells) argument
2698 ficlVmDictionaryCheck(ficlVm *vm, ficlDictionary *dictionary, int cells) argument
2718 ficlVmDictionaryAllot(ficlVm *vm, ficlDictionary *dictionary, int n) argument
2726 ficlVmDictionaryAllotCells(ficlVm *vm, ficlDictionary *dictionary, int cells) argument
2756 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
[all...]
H A Dficl.h73 * machines share a common dictionary (a sort or open symbol table that
88 * - Thread-safe, re-entrant: The shared system dictionary
97 * ROM implementation because it builds its system dictionary in
268 * VM private dictionary, but I've chosen the lower overhead
278 * and a private dictionary for local variable compilation.
303 * Enables dictionary mutual exclusion wia the
309 * on my part) - that is, threads that modify the dictionary
440 * FICL_ROBUST enables bounds checking of stacks and the dictionary.
441 * This will detect stack over and underflows and dictionary overflows.
463 * for the system dictionary b
1597 ficlDictionary *dictionary; member in struct:ficlSystem
[all...]
H A Dprimitives.c66 * Push current dictionary location for later branch resolution.
70 markBranch(ficlDictionary *dictionary, ficlVm *vm, char *tag) argument
72 ficlStackPushPointer(vm->dataStack, dictionary->here);
103 * FICL_VM_STATE_COMPILE a literal offset from the current dictionary location
107 resolveBackBranch(ficlDictionary *dictionary, ficlVm *vm, char *tag) argument
116 c.i = patchAddr - dictionary->here;
118 ficlDictionaryAppendCell(dictionary, c);
124 * to the current dictionary location
127 resolveForwardBranch(ficlDictionary *dictionary, ficlVm *vm, char *tag) argument
137 offset = dictionary
147 resolveAbsBranch(ficlDictionary *dictionary, ficlVm *vm, char *wantTag) argument
180 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
197 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
229 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
250 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
262 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
566 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
592 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
615 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
649 ficlDictionary *dictionary; local
693 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
727 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
770 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
920 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
939 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
996 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1030 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1048 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1067 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1077 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1090 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1101 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1143 ficlDictionary *dictionary; local
1159 ficlDictionary *dictionary; local
1206 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1283 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1317 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1368 ficlDictionary *dictionary; local
1412 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1423 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1490 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1770 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1801 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1808 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1818 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1836 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
1849 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2029 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2241 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2295 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2331 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2358 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
2462 ficlDictionary *dictionary; local
2565 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local
3099 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Ddict.c30 * dict.c - simple dictionary facility
32 * We maintain a dictionary, sorted by name to facilitate rapid id lookup by
35 * Right now, the dictionary is implemented as a sorted linked list which maps
39 * For now, FMRIs are never deleted from the dictionary. A service deletion
41 * id. To implement dictionary entry delete, the locking strategy for graph
55 dictionary_t *dictionary; variable
79 (void) pthread_mutex_lock(&dictionary->dict_lock);
80 if ((entry = uu_list_find(dictionary->dict_list, &tmp, NULL,
86 (void) pthread_mutex_unlock(&dictionary->dict_lock);
108 (void) pthread_mutex_lock(&dictionary
[all...]
H A Dstartd.h204 * Simple dictionary representation.
206 typedef struct dictionary { struct
218 extern dictionary_t *dictionary;

Completed in 61 milliseconds