Lines Matching refs:NULL

109    getToken(&value, NULL, status);
110 getToken(NULL, NULL, status); bad - value is now a different string
160 if (tokenValue != NULL)
165 if (linenumber != NULL)
170 if (comment != NULL)
202 if (tokenValue != NULL)
207 if (linenumber != NULL)
212 if(comment != NULL){
226 if (linenumber != NULL)
257 return NULL;
264 return NULL;
269 if (result == NULL)
272 return NULL;
282 struct SResource *result = NULL;
284 FileStream *file = NULL;
290 UCHARBUF *ucbuf=NULL;
292 const char* cp = NULL;
293 UChar *pTarget = NULL;
294 UChar *target = NULL;
295 UChar *targetLimit = NULL;
298 expect(state, TOK_STRING, &tokenValue, NULL, &line, status);
301 printf(" %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
306 return NULL;
309 if (state->inputdir != NULL)
321 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
325 return NULL;
337 return NULL;
387 return NULL;
414 result = string_open(state->bundle, tag, pTarget, (int32_t)(target - pTarget), NULL, status);
427 struct SResource *result = NULL;
429 FileStream *file = NULL;
433 UCHARBUF *ucbuf=NULL;
434 const char* cp = NULL;
435 UChar *pTarget = NULL;
436 const UChar *pSource = NULL;
439 expect(state, TOK_STRING, &tokenValue, NULL, &line, status);
442 printf(" %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
447 return NULL;
450 if (state->inputdir != NULL)
462 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
466 return NULL;
475 return NULL;
492 result = string_open(state->bundle, tag, pTarget, size, NULL, status);
500 static struct SResource* dependencyArray = NULL;
505 struct SResource *result = NULL;
506 struct SResource *elem = NULL;
512 expect(state, TOK_STRING, &tokenValue, NULL, &line, status);
515 printf(" %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
520 return NULL;
523 if (state->outputdir != NULL)
537 return NULL;
547 if(dependencyArray==NULL){
548 dependencyArray = array_open(state->bundle, "%%DEPENDENCY", NULL, status);
550 if(tag!=NULL){
553 elem = string_open(state->bundle, NULL, tokenValue->fChars, tokenValue->fLength, comment, status);
559 return NULL;
561 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
568 struct SResource *result = NULL;
570 /* if (tag != NULL && uprv_strcmp(tag, "%%UCARULES") == 0)
575 printf(" string %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
577 expect(state, TOK_STRING, &tokenValue, NULL, NULL, status);
586 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
591 return NULL;
603 struct SResource *result = NULL;
605 expect(state, TOK_STRING, &tokenValue, NULL, NULL, status);
608 printf(" alias %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
618 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
623 return NULL;
636 struct SResource *current = NULL;
639 return NULL;
645 while (current != NULL) {
651 return NULL;
655 struct SRBRoot *data = NULL;
656 UCHARBUF *ucbuf = NULL;
660 char *inputDirBuf = NULL;
661 char *openFileName = NULL;
663 UChar* urules = NULL;
686 if (status==NULL || U_FAILURE(*status)) {
687 return NULL;
689 if(filename==NULL){
691 return NULL;
695 if(genrbdata->inputDir == NULL) {
699 if (filenameBegin != NULL) {
709 /* test for NULL */
710 if(inputDirBuf == NULL) {
725 /* test for NULL */
726 if(openFileName == NULL) {
751 /* test for NULL */
752 if(openFileName == NULL) {
768 fprintf(stderr, "couldn't open file %s\n", openFileName == NULL ? filename : openFileName);
771 if (ucbuf == NULL || U_FAILURE(*status)) {
772 fprintf(stderr, "An error occured processing file %s. Error: %s\n", openFileName == NULL ? filename : openFileName,u_errorName(*status));
789 if (inputDirBuf != NULL) {
793 if (openFileName != NULL) {
807 struct SResource *member = NULL;
843 return NULL;
851 return NULL;
854 member = parseResource(state, subtag, NULL, status);
859 return NULL;
872 u_UCharsToChars(member->u.fString.fChars, ver, length + 1); /* +1 for copying NULL */
903 uint8_t *data = NULL;
904 UCollator *coll = NULL;
916 if (U_SUCCESS(intStatus) && coll != NULL)
918 len = ucol_cloneBinary(coll, NULL, 0, &intStatus);
933 if (U_SUCCESS(intStatus) && data != NULL)
935 struct SResource *collationBin = bin_open(state->bundle, "%%CollationBin", len, data, NULL, NULL, status);
942 struct SResource *reorderCodeRes = intvector_open(state->bundle, "%%ReorderCodes", NULL, status);
954 return NULL;
965 return NULL;
970 return NULL;
990 /*expect(TOK_CLOSE_BRACE, NULL, NULL, status);*/
995 return NULL;
1002 return NULL;*/
1008 struct SResource *result = NULL;
1009 struct SResource *member = NULL;
1010 struct SResource *collationRes = NULL;
1017 result = table_open(state->bundle, tag, NULL, status);
1019 if (result == NULL || U_FAILURE(*status))
1021 return NULL;
1024 printf(" collation elements %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1053 return NULL;
1061 return NULL;
1066 member = parseResource(state, subtag, NULL, status);
1071 return NULL;
1084 collationRes = table_open(state->bundle, subtag, NULL, status);
1094 member = parseResource(state, subtag, NULL, status);
1099 return NULL;
1106 return NULL;
1111 return NULL;
1117 /*expect(TOK_CLOSE_BRACE, NULL, NULL, status);*/
1122 return NULL;
1133 struct SResource *member = NULL;
1134 struct UString *tokenValue=NULL;
1143 printf(" parsing table %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1171 return NULL;
1179 return NULL;
1185 return NULL;
1190 if (member == NULL || U_FAILURE(*status))
1193 return NULL;
1201 return NULL;
1210 return NULL;*/
1218 if (tag != NULL && uprv_strcmp(tag, "CollationElements") == 0)
1222 if (tag != NULL && uprv_strcmp(tag, "collations") == 0)
1227 printf(" table %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1232 if (result == NULL || U_FAILURE(*status))
1234 return NULL;
1243 struct SResource *result = NULL;
1244 struct SResource *member = NULL;
1252 if (result == NULL || U_FAILURE(*status))
1254 return NULL;
1257 printf(" array %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1269 token = peekToken(state, 0, &tokenValue, NULL, &memberComments, status);
1274 getToken(state, NULL, NULL, NULL, status);
1286 return NULL;
1292 getToken(state, &tokenValue, &memberComments, NULL, status);
1293 member = string_open(state->bundle, NULL, tokenValue->fChars, tokenValue->fLength, &memberComments, status);
1297 member = parseResource(state, NULL, &memberComments, status);
1300 if (member == NULL || U_FAILURE(*status))
1303 return NULL;
1311 return NULL;
1315 token = peekToken(state, 0, NULL, NULL, NULL, status);
1319 getToken(state, NULL, NULL, NULL, status);
1325 return NULL;
1337 struct SResource *result = NULL;
1348 if (result == NULL || U_FAILURE(*status))
1350 return NULL;
1354 printf(" vector %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1363 token = peekToken(state, 0, NULL, NULL,&memberComments, status);
1368 getToken(state, NULL, NULL, NULL, status);
1376 string = getInvariantString(state, NULL, NULL, status);
1381 return NULL;
1392 token = peekToken(state, 0, NULL, NULL, NULL, status);
1403 return NULL;
1410 getToken(state, NULL, NULL, NULL, status);
1419 return NULL;*/
1425 struct SResource *result = NULL;
1435 string = getInvariantString(state, &line, NULL, status);
1437 if (string == NULL || U_FAILURE(*status))
1439 return NULL;
1442 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
1447 return NULL;
1451 printf(" binary %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1459 if (value == NULL)
1463 return NULL;
1478 return NULL;
1482 result = bin_open(state->bundle, tag, (i >> 1), value,NULL, comment, status);
1491 return NULL;
1496 result = bin_open(state->bundle, tag, 0, NULL, "",comment,status);
1507 struct SResource *result = NULL;
1513 string = getInvariantString(state, NULL, NULL, status);
1515 if (string == NULL || U_FAILURE(*status))
1517 return NULL;
1520 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
1525 return NULL;
1529 printf(" integer %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1563 char *fullname = NULL;
1565 filename = getInvariantString(state, &line, NULL, status);
1569 return NULL;
1572 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
1577 return NULL;
1581 printf(" import %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1585 if (state->inputdir == NULL)
1609 /* test for NULL */
1610 if(fullname == NULL)
1613 return NULL;
1627 /* test for NULL */
1628 if(fullname == NULL)
1631 return NULL;
1642 if (file == NULL)
1646 return NULL;
1651 /* test for NULL */
1652 if(data == NULL)
1656 return NULL;
1678 UChar *pTarget = NULL;
1681 char *fullname = NULL;
1683 const char* cp = NULL;
1684 const UChar* uBuffer = NULL;
1686 filename = getInvariantString(state, &line, NULL, status);
1691 return NULL;
1694 expect(state, TOK_CLOSE_BRACE, NULL, NULL, NULL, status);
1699 return NULL;
1703 printf(" include %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1707 /* test for NULL */
1708 if(fullname == NULL)
1712 return NULL;
1715 if(state->inputdir!=NULL){
1739 return NULL;
1802 {"Unknown", NULL, NULL},
1806 {"table(nofallback)", k_type_table_no_fallback, NULL}, /* parseFunction will never be called */
1814 {"process(collation)", k_type_plugin_collation, NULL /* not implemented yet */},
1817 {"reserved", NULL, NULL}
1897 ParseResourceFunction *parseFunction = NULL;
1902 token = getToken(state, &tokenValue, NULL, &startline, status);
1905 printf(" resource %s at line %i \n", (tag == NULL) ? "(null)" : tag, (int)startline);
1917 return NULL;
1921 return NULL;
1925 expect(state, TOK_OPEN_BRACE, &tokenValue, NULL, &startline, status);
1929 return NULL;
1940 return NULL;
1957 token = peekToken(state, 0, NULL, &line, NULL,status);
1961 return NULL;
1970 token = peekToken(state, 1, NULL, &line, NULL, status);
1974 return NULL;
1986 return NULL;
1993 return NULL;
2000 return NULL;
2006 if (parseFunction != NULL) {
2014 return NULL;
2038 state.inputdirLength = (state.inputdir != NULL) ? (uint32_t)uprv_strlen(state.inputdir) : 0;
2040 state.outputdirLength = (state.outputdir != NULL) ? (uint32_t)uprv_strlen(state.outputdir) : 0;
2043 expect(&state, TOK_STRING, &tokenValue, &comment, NULL, status);
2047 if (state.bundle == NULL || U_FAILURE(*status))
2049 return NULL;
2056 token = getToken(&state, NULL, NULL, &line, status);
2063 expect(&state, TOK_OPEN_BRACE, NULL, NULL, &line, status);
2093 return NULL;
2105 realParseTable(&state, state.bundle->fRoot, NULL, line, status);
2107 if(dependencyArray!=NULL){
2109 dependencyArray = NULL;
2115 return NULL;
2118 if (getToken(&state, NULL, NULL, &line, status) != TOK_EOF)
2123 return NULL;