/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | errormsg.c | 27 * 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 D | prefix.c | 54 * 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 ficlDictionarySetPrimitive(dictionary, "__tempbase", 170 * oldCompilationWordlist = dictionary->compilationWordlist; 171 * dictionary [all...] |
H A D | extras.c | 122 * dictionary hash table by hashcode... 174 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local 176 ficlDictionarySetPrimitive(dictionary, "break", ficlPrimitiveBreak, 178 ficlDictionarySetPrimitive(dictionary, "load", ficlPrimitiveLoad, 180 ficlDictionarySetPrimitive(dictionary, "spewhash", 182 ficlDictionarySetPrimitive(dictionary, "system", ficlPrimitiveSystem,
|
H A D | search.c | 58 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 D | system.c | 62 * 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, 92 * Binds a global dictionary to the interpreter system. 96 * Then write the "precompiled" portion of the dictionary in. 97 * The dictionary needs to be at least large enough to hold the 99 * out how much of the dictionary is used at any time. 147 system->dictionary = ficlDictionaryCreateHashed(system, 149 system->dictionary->forthWordlist->name = "forth-wordlist"; 164 * The locals dictionary i 313 ficlDictionary *dictionary = system->dictionary; local 430 ficlDictionary *dictionary = system->dictionary; local [all...] |
H A D | float.c | 58 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 63 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 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 217 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 410 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local [all...] |
H A D | tools.c | 125 * Calculate a figure of merit for the dictionary hash table based 126 * on the average search depth for all the words in the dictionary, 139 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 152 FICL_VM_DICTIONARY_CHECK(vm, dictionary, 0); 154 pFHash = dictionary->wordlists[dictionary->wordlistCount - 1]; 529 ficlDictionary *dictionary; member in struct:stackContext 644 if (ficlDictionaryIncludes(context->dictionary, cell->p)) { 646 word = ficlDictionaryFindEnclosingWord(context->dictionary, 665 context.dictionary 676 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 699 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 716 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 809 ficlDictionary *dictionary = vm->callback.system->environment; local 894 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local [all...] |
H A D | dictionary.c | 3 * 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 806 ficlDictionaryResetSearchOrder(ficlDictionary *dictionary) argument 820 ficlDictionarySetFlags(ficlDictionary *dictionary, ficlUnsigned8 set) argument 833 ficlDictionaryClearFlags(ficlDictionary *dictionary, ficlUnsigned8 clear) argument 844 ficlDictionarySetImmediate(ficlDictionary *dictionary) argument 856 ficlDictionaryUnsmudge(ficlDictionary *dictionary) argument 878 ficlDictionaryWhere(ficlDictionary *dictionary) argument [all...] |
H A D | vm.c | 339 * stringlit: Fetch the count from the dictionary, then push 1306 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1307 dictionary->smudge->code = 1309 dictionary->smudge->param[0].p = ip; 1390 ficlDictionary *dictionary; local 1393 dictionary = ficlVmGetDictionary(vm); 1394 ficlDictionaryAppendCell(dictionary, *dataTop--); 1399 ficlDictionary *dictionary; local 1403 dictionary = ficlVmGetDictionary(vm); 1405 ficlDictionaryAppendCharacter(dictionary, 2414 ficlDictionary *dictionary = system->dictionary; local 2664 ficlVmDictionarySimpleCheck(ficlVm *vm, ficlDictionary *dictionary, int cells) argument 2686 ficlVmDictionaryCheck(ficlVm *vm, ficlDictionary *dictionary, int cells) argument 2706 ficlVmDictionaryAllot(ficlVm *vm, ficlDictionary *dictionary, int n) argument 2714 ficlVmDictionaryAllotCells(ficlVm *vm, ficlDictionary *dictionary, int cells) argument 2744 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local [all...] |
H A D | ficl.h | 73 * 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 266 * VM private dictionary, but I've chosen the lower overhead 276 * and a private dictionary for local variable compilation. 301 * Enables dictionary mutual exclusion wia the 307 * on my part) - that is, threads that modify the dictionary 438 * FICL_ROBUST enables bounds checking of stacks and the dictionary. 439 * This will detect stack over and underflows and dictionary overflows. 461 * for the system dictionary b 1595 ficlDictionary *dictionary; member in struct:ficlSystem [all...] |
H A D | primitives.c | 66 * 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 562 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 588 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 611 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 645 ficlDictionary *dictionary; local 689 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 723 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 766 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 916 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 935 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 992 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1026 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1044 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1063 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1073 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1086 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1097 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1139 ficlDictionary *dictionary; local 1155 ficlDictionary *dictionary; local 1202 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1279 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1313 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1364 ficlDictionary *dictionary; local 1408 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1419 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1486 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1766 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1797 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1804 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1814 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1832 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 1845 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2025 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2237 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2291 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2327 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2354 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 2458 ficlDictionary *dictionary; local 2561 ficlDictionary *dictionary = ficlVmGetDictionary(vm); local 3096 ficlDictionary *dictionary = ficlSystemGetDictionary(system); local [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | dict.c | 30 * 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 D | startd.h | 211 * Simple dictionary representation. 213 typedef struct dictionary { struct 225 extern dictionary_t *dictionary;
|
/illumos-gate/usr/src/boot/lib/libz/test/ |
H A D | example.c | 34 const char dictionary[] = "hello"; variable 35 uLong dictId; /* Adler32 value of the dictionary */ 455 * Test deflate() with preset dictionary 472 (const Bytef*)dictionary, (int)sizeof(dictionary)); 492 * Test inflate() with a preset dictionary 521 fprintf(stderr, "unexpected dictionary"); 524 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary, 525 (int)sizeof(dictionary)); 537 printf("inflate with dictionary [all...] |