Lines Matching refs:p
87 Bucket *p; in zend_new_interned_string_int() local
95 p = CG(interned_strings).arBuckets[nIndex]; in zend_new_interned_string_int()
96 while (p != NULL) { in zend_new_interned_string_int()
97 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { in zend_new_interned_string_int()
98 if (!memcmp(p->arKey, arKey, nKeyLength)) { in zend_new_interned_string_int()
102 return p->arKey; in zend_new_interned_string_int()
105 p = p->pNext; in zend_new_interned_string_int()
114 p = (Bucket *) CG(interned_strings_top); in zend_new_interned_string_int()
121 p->arKey = (char*)(p+1); in zend_new_interned_string_int()
122 memcpy((char*)p->arKey, arKey, nKeyLength); in zend_new_interned_string_int()
126 p->nKeyLength = nKeyLength; in zend_new_interned_string_int()
127 p->h = h; in zend_new_interned_string_int()
128 p->pData = &p->pDataPtr; in zend_new_interned_string_int()
129 p->pDataPtr = p; in zend_new_interned_string_int()
131 p->pNext = CG(interned_strings).arBuckets[nIndex]; in zend_new_interned_string_int()
132 p->pLast = NULL; in zend_new_interned_string_int()
133 if (p->pNext) { in zend_new_interned_string_int()
134 p->pNext->pLast = p; in zend_new_interned_string_int()
139 p->pListLast = CG(interned_strings).pListTail; in zend_new_interned_string_int()
140 CG(interned_strings).pListTail = p; in zend_new_interned_string_int()
141 p->pListNext = NULL; in zend_new_interned_string_int()
142 if (p->pListLast != NULL) { in zend_new_interned_string_int()
143 p->pListLast->pListNext = p; in zend_new_interned_string_int()
146 CG(interned_strings).pListHead = p; in zend_new_interned_string_int()
149 CG(interned_strings).arBuckets[nIndex] = p; in zend_new_interned_string_int()
174 return p->arKey; in zend_new_interned_string_int()
188 Bucket *p; in zend_interned_strings_restore_int() local
200 p = CG(interned_strings).arBuckets[i]; in zend_interned_strings_restore_int()
201 while (p && p->arKey > CG(interned_strings_top)) { in zend_interned_strings_restore_int()
203 if (p->pListLast != NULL) { in zend_interned_strings_restore_int()
204 p->pListLast->pListNext = p->pListNext; in zend_interned_strings_restore_int()
206 CG(interned_strings).pListHead = p->pListNext; in zend_interned_strings_restore_int()
208 if (p->pListNext != NULL) { in zend_interned_strings_restore_int()
209 p->pListNext->pListLast = p->pListLast; in zend_interned_strings_restore_int()
211 CG(interned_strings).pListTail = p->pListLast; in zend_interned_strings_restore_int()
213 p = p->pNext; in zend_interned_strings_restore_int()
215 if (p) { in zend_interned_strings_restore_int()
216 p->pLast = NULL; in zend_interned_strings_restore_int()
218 CG(interned_strings).arBuckets[i] = p; in zend_interned_strings_restore_int()