Esempio n. 1
0
static int lookupAutomakeDirectory (vString *const name)
{
	int *i = hashTableGetItem (AutomakeDirectories,  vStringValue (name));

	if (i)
		return *i;
	else
		return CORK_NIL;
}
Esempio n. 2
0
extern int circularRefCheckerCheck (struct circularRefChecker *c, void *ptr)
{
	union conv {
		int i;
		void *ptr;
	} v;

	v.ptr = hashTableGetItem(c->visitTable, ptr);
	if (v.ptr)
		return v.i;
	else
	{
		v.i = ++c->counter;
		hashTablePutItem (c->visitTable, ptr, v.ptr);
		return 0;
	}
}