Lines Matching refs:p
89 Bucket *p; in zend_new_interned_string_int() local
97 p = CG(interned_strings).arBuckets[nIndex]; in zend_new_interned_string_int()
98 while (p != NULL) { in zend_new_interned_string_int()
99 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { in zend_new_interned_string_int()
100 if (!memcmp(p->arKey, arKey, nKeyLength)) { in zend_new_interned_string_int()
104 return p->arKey; in zend_new_interned_string_int()
107 p = p->pNext; in zend_new_interned_string_int()
116 p = (Bucket *) CG(interned_strings_top); in zend_new_interned_string_int()
123 p->arKey = (char*)(p+1); in zend_new_interned_string_int()
124 memcpy((char*)p->arKey, arKey, nKeyLength); in zend_new_interned_string_int()
128 p->nKeyLength = nKeyLength; in zend_new_interned_string_int()
129 p->h = h; in zend_new_interned_string_int()
130 p->pData = &p->pDataPtr; in zend_new_interned_string_int()
131 p->pDataPtr = p; in zend_new_interned_string_int()
133 p->pNext = CG(interned_strings).arBuckets[nIndex]; in zend_new_interned_string_int()
134 p->pLast = NULL; in zend_new_interned_string_int()
135 if (p->pNext) { in zend_new_interned_string_int()
136 p->pNext->pLast = p; in zend_new_interned_string_int()
141 p->pListLast = CG(interned_strings).pListTail; in zend_new_interned_string_int()
142 CG(interned_strings).pListTail = p; in zend_new_interned_string_int()
143 p->pListNext = NULL; in zend_new_interned_string_int()
144 if (p->pListLast != NULL) { in zend_new_interned_string_int()
145 p->pListLast->pListNext = p; in zend_new_interned_string_int()
148 CG(interned_strings).pListHead = p; in zend_new_interned_string_int()
151 CG(interned_strings).arBuckets[nIndex] = p; in zend_new_interned_string_int()
176 return p->arKey; in zend_new_interned_string_int()
190 Bucket *p; in zend_interned_strings_restore_int() local
202 p = CG(interned_strings).arBuckets[i]; in zend_interned_strings_restore_int()
203 while (p && p->arKey > CG(interned_strings_top)) { in zend_interned_strings_restore_int()
205 if (p->pListLast != NULL) { in zend_interned_strings_restore_int()
206 p->pListLast->pListNext = p->pListNext; in zend_interned_strings_restore_int()
208 CG(interned_strings).pListHead = p->pListNext; in zend_interned_strings_restore_int()
210 if (p->pListNext != NULL) { in zend_interned_strings_restore_int()
211 p->pListNext->pListLast = p->pListLast; in zend_interned_strings_restore_int()
213 CG(interned_strings).pListTail = p->pListLast; in zend_interned_strings_restore_int()
215 p = p->pNext; in zend_interned_strings_restore_int()
217 if (p) { in zend_interned_strings_restore_int()
218 p->pLast = NULL; in zend_interned_strings_restore_int()
220 CG(interned_strings).arBuckets[i] = p; in zend_interned_strings_restore_int()