Lines Matching refs:pNew
162 VFile *pNew = findVFile(zName); in createVFile() local
167 if( pNew ) return pNew; in createVFile()
177 pNew = &g.aFile[i]; in createVFile()
180 pNew->zFilename = malloc(nName); in createVFile()
181 if( pNew->zFilename==0 ){ in createVFile()
185 memcpy(pNew->zFilename, zName, nName); in createVFile()
187 pNew->zFilename = 0; in createVFile()
189 pNew->nRef = 0; in createVFile()
190 pNew->sz = sz; in createVFile()
191 pNew->a = malloc(sz); in createVFile()
193 if( pNew->a==0 || fread(pNew->a, sz, 1, in)<1 ){ in createVFile()
194 free(pNew->zFilename); in createVFile()
195 free(pNew->a); in createVFile()
196 pNew->a = 0; in createVFile()
197 pNew->zFilename = 0; in createVFile()
198 pNew->sz = -1; in createVFile()
199 pNew = 0; in createVFile()
203 return pNew; in createVFile()