Branch Coverage

unqlite/unqlite.c
Criterion Covered Total %
branch 852 12572 6.7


line true false branch
3635 12 0 for( n = 0 ; n < nMax; ++n ){
3637 6 6 if( nByte == SyStrlen(pEntry->zName) && SyStrnicmp(pEntry->zName,zName,nByte) == 0 ){
6 0 if( nByte == SyStrlen(pEntry->zName) && SyStrnicmp(pEntry->zName,zName,nByte) == 0 ){
3657 0 0 if( iPage >= UNQLITE_MIN_PAGE_SIZE && iPage <= UNQLITE_MAX_PAGE_SIZE ){
3658 0 0 if( !(iPage & (iPage - 1)) ){
3674 6 0 if( pMethods == 0 || SX_EMPTY_STR(pMethods->zName) || pMethods->xSeek == 0 || pMethods->xData == 0
6 0 if( pMethods == 0 || SX_EMPTY_STR(pMethods->zName) || pMethods->xSeek == 0 || pMethods->xData == 0
6 0 if( pMethods == 0 || SX_EMPTY_STR(pMethods->zName) || pMethods->xSeek == 0 || pMethods->xData == 0
6 0 if( pMethods == 0 || SX_EMPTY_STR(pMethods->zName) || pMethods->xSeek == 0 || pMethods->xData == 0
6 0 if( pMethods == 0 || SX_EMPTY_STR(pMethods->zName) || pMethods->xSeek == 0 || pMethods->xData == 0
3675 6 0 || pMethods->xKey == 0 || pMethods->xDataLength == 0 || pMethods->xKeyLength == 0
6 0 || pMethods->xKey == 0 || pMethods->xDataLength == 0 || pMethods->xKeyLength == 0
6 0 || pMethods->xKey == 0 || pMethods->xDataLength == 0 || pMethods->xKeyLength == 0
3676 6 0 || pMethods->szKv < (int)sizeof(unqlite_kv_engine) ){
3687 3 0 if( pVfs ){
3698 3 0 if( pMethods == 0 ){
3796 12 0 if( sUnqlMPGlobal.nMagic == UNQLITE_LIB_MAGIC ){
3828 2 3 if( sUnqlMPGlobal.nMagic == UNQLITE_LIB_MAGIC ){
3831 3 0 if( sUnqlMPGlobal.pVfs == 0 ){
3863 3 0 if( sUnqlMPGlobal.sAllocator.pMethods == 0 ){
3866 0 3 if( rc != UNQLITE_OK ){
3888 0 3 if( sUnqlMPGlobal.iPageSize < UNQLITE_MIN_PAGE_SIZE ){
3914 5 0 if( (pDb->iFlags & UNQLITE_FL_DISABLE_AUTO_COMMIT) == 0 ){
3917 0 5 if( rc != UNQLITE_OK ){
3930 0 5 if( pDb->iVm < 1 ){
3958 0 0 if( sUnqlMPGlobal.nDB < 1 ){
3982 0 0 if( sUnqlMPGlobal.sAllocator.pMethods ){
4006 0 0 if( sUnqlMPGlobal.nMagic != UNQLITE_LIB_MAGIC ){
4076 0 5 if( iFlags & UNQLITE_OPEN_TEMP_DB ){
4080 5 0 if( (iFlags & (UNQLITE_OPEN_READONLY|UNQLITE_OPEN_READWRITE)) == 0 ){
4084 5 0 if( iFlags & UNQLITE_OPEN_CREATE ){
4089 0 0 if( iFlags & UNQLITE_OPEN_READONLY ){
4091 0 0 }else if( iFlags & UNQLITE_OPEN_READWRITE ){
4117 5 0 if( rc != UNQLITE_OK ){
4138 0 0 if( pVm == 0 ){
4147 0 0 if( pVm->apCol == 0 ){
4165 0 0 MACRO_LD_PUSH(pDb->pVms,pVm);
4199 0 5 if( iSize < UNQLITE_MIN_PAGE_SIZE || iSize > UNQLITE_MAX_PAGE_SIZE ){
4260 0 0 if( pzPtr == 0 ){
4268 0 0 if( pLen ){
4269 0 0 if( SyBlobLength(&pDb->sErr) > 1 /* NULL '\0' terminator */ ){
4285 0 0 if( pzPtr ){
4323 5 0 if( rc != UNQLITE_OK ){
4328 5 0 if( pHandle == 0 ){
4333 0 5 if( iMode < 1 ){
4339 0 5 if( rc != UNQLITE_OK ){
4357 5 0 MACRO_LD_PUSH(sUnqlMPGlobal.pDB,pHandle);
4381 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
4408 5 0 if( UNQLITE_DB_MISUSE(pDb) ){
5 0 if( UNQLITE_DB_MISUSE(pDb) ){
4432 5 0 MACRO_LD_REMOVE(sUnqlMPGlobal.pDB, pDb);
0 5 MACRO_LD_REMOVE(sUnqlMPGlobal.pDB, pDb);
0 5 MACRO_LD_REMOVE(sUnqlMPGlobal.pDB, pDb);
4450 0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
4463 0 0 if( rc == JX9_OK ){
4466 0 0 if( rc != UNQLITE_OK ){
4485 0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
0 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0){
4498 0 0 if( rc == JX9_OK ){
4501 0 0 if( rc != UNQLITE_OK ){
4529 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4556 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4582 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4612 0 0 MACRO_LD_REMOVE(pDb->pVms, pVm);
0 0 MACRO_LD_REMOVE(pDb->pVms, pVm);
0 0 MACRO_LD_REMOVE(pDb->pVms, pVm);
4630 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4656 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4683 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4711 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4716 0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
4718 0 0 if( sName.nByte < 1 || xFunc == 0 ){
0 0 if( sName.nByte < 1 || xFunc == 0 ){
4744 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4771 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4776 0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
4777 0 0 if( sName.nByte < 1 ){
4782 0 0 if( xExpand == 0 ){
4808 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
4883 0 0 if((pVal->iFlags & MEMOBJ_STRING) == 0 ){
5031 0 0 if( (p->iFlags & MEMOBJ_STRING) == 0 ){
5201 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
5226 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
5251 0 0 if( UNQLITE_VM_MISUSE(pVm) ){
0 0 if( UNQLITE_VM_MISUSE(pVm) ){
5306 0 0 if( zFormat == 0){
5434 8 0 if( UNQLITE_DB_MISUSE(pDb) ){
8 0 if( UNQLITE_DB_MISUSE(pDb) ){
5452 0 8 if( nKeyLen < 0 ){
5456 0 8 if( !nKeyLen ){
5478 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
5496 0 0 if( nKeyLen < 0 ){
5500 0 0 if( !nKeyLen ){
5531 2 0 if( UNQLITE_DB_MISUSE(pDb) ){
2 0 if( UNQLITE_DB_MISUSE(pDb) ){
5549 0 2 if( nKeyLen < 0 ){
5553 0 2 if( !nKeyLen ){
5575 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
5593 0 0 if( nKeyLen < 0 ){
5597 0 0 if( !nKeyLen ){
5630 25 0 if( UNQLITE_DB_MISUSE(pDb) ){
25 0 if( UNQLITE_DB_MISUSE(pDb) ){
5649 0 25 if( !nKeyLen ){
5656 20 5 if( rc == UNQLITE_OK ){
5657 10 10 if( pBuf == 0 ){
5688 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
5707 0 0 if( !nKeyLen ){
5714 0 0 if( rc == UNQLITE_OK && xConsumer ){
5734 3 0 if( UNQLITE_DB_MISUSE(pDb) ){
3 0 if( UNQLITE_DB_MISUSE(pDb) ){
5754 0 3 if( nKeyLen < 0 ){
5758 0 3 if( !nKeyLen ){
5765 3 0 if( rc == UNQLITE_OK ){
5784 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
5821 5 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0 /* Noop */){
5 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0 /* Noop */){
5 0 if( UNQLITE_DB_MISUSE(pDb) || ppOut == 0 /* Noop */){
5847 5 0 if( UNQLITE_DB_MISUSE(pDb) || pCur == 0 /* Noop */){
5 0 if( UNQLITE_DB_MISUSE(pDb) || pCur == 0 /* Noop */){
5 0 if( UNQLITE_DB_MISUSE(pDb) || pCur == 0 /* Noop */){
5879 9 0 if( pCursor->pStore->pIo->pMethods->xFirst == 0 ){
5900 1 0 if( pCursor->pStore->pIo->pMethods->xLast == 0 ){
5921 14 0 if( pCursor->pStore->pIo->pMethods->xValid == 0 ){
5941 10 0 if( pCursor->pStore->pIo->pMethods->xNext == 0 ){
5962 2 0 if( pCursor->pStore->pIo->pMethods->xPrev == 0 ){
5983 3 0 if( pCursor->pStore->pIo->pMethods->xDelete == 0 ){
6004 0 0 if( pCursor->pStore->pIo->pMethods->xReset == 0 ){
6024 0 2 if( nKeyLen < 0 ){
6028 2 0 if( !nKeyLen ){
6079 10 10 if( pBuf == 0 ){
6084 0 10 if( (*pnByte) < 0 ){
6126 6 6 if( pBuf == 0 ){
6131 0 6 if( (*pnByte) < 0 ){
6152 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
6178 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
6204 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
6231 0 0 if( SX_EMPTY_STR(zFile) || ppMap == 0 || pFileSize == 0){
0 0 if( SX_EMPTY_STR(zFile) || ppMap == 0 || pFileSize == 0){
0 0 if( SX_EMPTY_STR(zFile) || ppMap == 0 || pFileSize == 0){
6258 0 0 if( pMap == 0 ){
6276 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
6279 0 0 if( zBuf == 0 || buf_size < 3 ){
6306 0 0 if( UNQLITE_DB_MISUSE(pDb) ){
0 0 if( UNQLITE_DB_MISUSE(pDb) ){
6383 0 4 if( p == 0 ){
6392 0 4 if( apNew == 0 ){
6413 6 1 if( pRec == 0 ){ break; }
6414 0 6 if( pRec->iPage == i ){
6421 0 0 if( pRec == 0 ){ break; }
6422 0 0 if( pRec->iPage == i ){
6430 0 0 if( pRec == 0 ){ break; }
6431 0 0 if( pRec->iPage == i ){
6439 0 0 if( pRec == 0 ){ break; }
6440 0 0 if( pRec->iPage == i ){
6459 1 0 if( pRec == 0 ){
6472 0 1 if( p->nRec >= (p->nSize * 3) && p->nRec < 100000 ){
0 0 if( p->nRec >= (p->nSize * 3) && p->nRec < 100000 ){
6478 0 0 if( apNew ){
6487 0 0 if( n >= p->nRec ){
6516 1 3 if( p->nRec < 1 ){
6524 0 1 if( p->nRec < 1 ){
6533 0 0 if( p->nRec < 1 ){
6542 0 0 if( p->nRec < 1 ){
6612 0 0 sxi32 iType = pValue ? pValue->iFlags : MEMOBJ_NULL;
6615 0 0 if( iNest >= UNQLITE_FAST_JSON_NEST_LIMIT ){
6619 0 0 if( iType & (MEMOBJ_NULL|MEMOBJ_RES) ){
6625 0 0 }else if( iType & MEMOBJ_BOOL ){
6626 0 0 c = pValue->x.iVal ? FJSON_TRUE : FJSON_FALSE;
6628 0 0 }else if( iType & MEMOBJ_STRING ){
6633 0 0 if( rc == SXRET_OK ){
6635 0 0 if( rc == SXRET_OK ){
6639 0 0 }else if( iType & MEMOBJ_INT ){
6644 0 0 if( rc == SXRET_OK ){
6648 0 0 }else if( iType & MEMOBJ_REAL ){
6652 0 0 if( rc == SXRET_OK ){
6655 0 0 if( rc == SXRET_OK ){
6662 0 0 }else if( iType & MEMOBJ_HASHMAP ){
6674 0 0 if( rc == SXRET_OK ){
6682 0 0 if( rc != SXRET_OK ){
6687 0 0 if( rc != SXRET_OK ){
6694 0 0 if( rc != SXRET_OK ){
6700 0 0 if( rc != SXRET_OK ){
6705 0 0 if( rc == SXRET_OK ){
6714 0 0 if( rc == SXRET_OK ){
6721 0 0 if( rc != SXRET_OK ){
6727 0 0 if( rc != SXRET_OK ){
6731 0 0 if( rc == SXRET_OK ){
6755 0 0 if( iNest >= UNQLITE_FAST_JSON_NEST_LIMIT ){
6780 0 0 if( &zIn[8] >= zEnd ){
6796 0 0 if( &zIn[2] >= zEnd ){
6818 0 0 if( &zIn[4] >= zEnd ){
6831 0 0 if( pOut->iFlags & MEMOBJ_STRING ){
6846 0 0 if( pMap == 0 ){
6857 0 0 while (zIn < zEnd && zIn[0] == FJSON_COMMA ){
0 0 while (zIn < zEnd && zIn[0] == FJSON_COMMA ){
6860 0 0 if( zIn >= zEnd || zIn[0] == FJSON_ARRAY_END ){
0 0 if( zIn >= zEnd || zIn[0] == FJSON_ARRAY_END ){
6861 0 0 if( zIn < zEnd ){
6868 0 0 if( rc != SXRET_OK ){
6873 0 0 if( rc != UNQLITE_OK ){
6877 0 0 if( rc != SXRET_OK ){
6889 0 0 if( pMap == 0 ){
6901 0 0 while (zIn < zEnd && zIn[0] == FJSON_COMMA ){
0 0 while (zIn < zEnd && zIn[0] == FJSON_COMMA ){
6904 0 0 if( zIn >= zEnd || zIn[0] == FJSON_DOC_END ){
0 0 if( zIn >= zEnd || zIn[0] == FJSON_DOC_END ){
6905 0 0 if( zIn < zEnd ){
6912 0 0 if( rc != UNQLITE_OK ){
6915 0 0 if( zIn >= zEnd || zIn[0] != FJSON_COLON ){
0 0 if( zIn >= zEnd || zIn[0] != FJSON_COLON ){
6920 0 0 if( zIn >= zEnd ){
6926 0 0 if( rc != SXRET_OK ){
6931 0 0 if( rc != UNQLITE_OK ){
6935 0 0 if( rc != SXRET_OK ){
6947 0 0 if( pzPtr ){
7055 0 0 if( pzPtr == 0 ){
7063 0 0 if( pLen ){
7064 0 0 if( SyBlobLength(&pConf->sErrConsumer) > 1 /* NULL '\0' terminator */ ){
7103 3 0 if( pMethods == 0 ){
7199 6 0 if( sJx9MPGlobal.nMagic == JX9_LIB_MAGIC ){
7230 2 3 if( sJx9MPGlobal.nMagic == JX9_LIB_MAGIC ){
7233 3 0 if( sJx9MPGlobal.pVfs == 0 ){
7265 3 0 if( sJx9MPGlobal.sAllocator.pMethods == 0 ){
7268 0 3 if( rc != JX9_OK ){
7304 0 5 if( pEngine->iVm < 1 ){
7330 0 0 if( sJx9MPGlobal.nEngine < 1 ){
7352 0 0 if( sJx9MPGlobal.sAllocator.pMethods ){
7364 0 0 if( sJx9MPGlobal.nMagic != JX9_LIB_MAGIC ){
7395 5 0 if( rc != JX9_OK ){
7400 5 0 if( pEngine == 0 ){
7408 0 5 if( rc != JX9_OK ){
7457 5 0 if( JX9_ENGINE_MISUSE(pEngine) ){
5 0 if( JX9_ENGINE_MISUSE(pEngine) ){
7481 5 0 MACRO_LD_REMOVE(sJx9MPGlobal.pEngines, pEngine);
0 5 MACRO_LD_REMOVE(sJx9MPGlobal.pEngines, pEngine);
0 5 MACRO_LD_REMOVE(sJx9MPGlobal.pEngines, pEngine);
7513 0 0 if( pVm == 0 ){
7516 0 0 if( ppVm ){
7527 0 0 if( rc != JX9_OK ){
7529 0 0 if( ppVm ){
7534 0 0 if( zFilePath ){
7542 0 0 if( pVm->sCodeGen.nErr > 0 || pVm == 0){
7547 0 0 if( ppVm ){
7554 0 0 if( rc != JX9_OK ){
7569 0 0 MACRO_LD_PUSH(pEngine->pVms, pVm);
7589 0 0 if( JX9_ENGINE_MISUSE(pEngine) ){
0 0 if( JX9_ENGINE_MISUSE(pEngine) ){
7592 0 0 if( zSource == 0 ){
7597 0 0 if( nLen < 0 ){
7627 0 0 if( ppOutVm ){
7631 0 0 if( JX9_ENGINE_MISUSE(pEngine) || SX_EMPTY_STR(zFilePath) ){
0 0 if( JX9_ENGINE_MISUSE(pEngine) || SX_EMPTY_STR(zFilePath) ){
0 0 if( JX9_ENGINE_MISUSE(pEngine) || SX_EMPTY_STR(zFilePath) ){
0 0 if( JX9_ENGINE_MISUSE(pEngine) || SX_EMPTY_STR(zFilePath) ){
7647 0 0 if( pVfs == 0 || pVfs->xMmap == 0 ){
0 0 if( pVfs == 0 || pVfs->xMmap == 0 ){
7656 0 0 if( rc != JX9_OK ){
7664 0 0 if( pVfs->xUnmap ){
7685 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7715 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7744 0 0 MACRO_LD_REMOVE(pEngine->pVms, pVm);
0 0 MACRO_LD_REMOVE(pEngine->pVms, pVm);
0 0 MACRO_LD_REMOVE(pEngine->pVms, pVm);
7764 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7769 0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
7771 0 0 if( sName.nByte < 1 || xFunc == 0 ){
0 0 if( sName.nByte < 1 || xFunc == 0 ){
7796 0 0 if( rc == JX9_OK ){
7813 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7818 0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
0 0 SyStringFullTrim(&sName);
7819 0 0 if( sName.nByte < 1 ){
7824 0 0 if( xExpand == 0 ){
7849 0 0 if( rc == JX9_OK ){
7864 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7869 0 0 if( pObj == 0 ){
7885 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7890 0 0 if( pMap == 0 ){
7895 0 0 if( pObj == 0 ){
7909 0 0 if ( JX9_VM_MISUSE(pVm) ){
0 0 if ( JX9_VM_MISUSE(pVm) ){
7912 0 0 if( pValue ){
7978 0 0 if( SyBlobLength(&pValue->sBlob) > 0 ){
7980 0 0 if( pLen ){
7986 0 0 if( pLen ){
7998 0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
0 0 if( (pValue->iFlags & MEMOBJ_RES) == 0 ){
8011 0 0 if( pLeft == 0 || pRight == 0 ){
8080 0 0 if( (p->iFlags & MEMOBJ_STRING) == 0 ){
8098 0 0 if( pValue == 0 ){
8121 0 0 if( pVal ){
8137 0 0 if( pVal ){
8161 0 0 if( pChunk ){
8162 0 0 if( ZeroChunk ){
8166 0 0 if( AutoRelease ){
8187 0 0 if( SySetUsed(&pCtx->sChunk) < 1 ){
8193 0 0 for( n = 0; n < SySetUsed(&pCtx->sChunk) ; ++n ){
8195 0 0 if( pAux->pAuxData == pChunk ){
8212 0 0 if( pNew ){
8214 0 0 if( pAux ){
8227 0 0 if( pChunk == 0 ){
8232 0 0 if( pAux ){
8249 0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
8252 0 0 if( nByte < 0 ){
8261 0 0 if( rc != JX9_OK ){
8276 0 0 if( xWalk == 0 ){
8280 0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
8285 0 0 return rc != JX9_OK ? JX9_ABORT /* User callback request an operation abort*/ : JX9_OK;
8295 0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
8310 0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
8314 0 0 if( SX_EMPTY_STR(zKey) ){
0 0 if( SX_EMPTY_STR(zKey) ){
8334 0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( (pArray->iFlags & MEMOBJ_HASHMAP) == 0 ){
8349 0 0 if( nLen < 0 ){
8363 0 0 if( zErr ){
8376 0 0 if( zFormat == 0){
8400 0 0 if( nBuflen < 3 ){
8530 0 0 if((pVal->iFlags & MEMOBJ_STRING) == 0 ){
8535 0 0 if( zString ){
8536 0 0 if( nLen < 0 ){
8552 0 0 if((pVal->iFlags & MEMOBJ_STRING) == 0 ){
8677 0 0 if( (pVal->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( (pVal->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( (pVal->iFlags & MEMOBJ_HASHMAP) == 0 ){
8681 0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
0 0 if( (pMap->iFlags & HASHMAP_JSON_OBJECT) == 0 ){
8747 0 0 if( nArg > 0 ){
8767 0 0 if( nArg > 0 ){
8787 0 0 if( nArg > 0 ){
8805 0 0 if( nArg > 0 ){
8823 0 0 if( nArg > 0 ){
8841 0 0 if( nArg > 0 ){
8859 0 0 if( nArg > 0 ){
8877 0 0 if( nArg > 0 ){
8895 0 0 if( nArg > 0 ){
8896 0 0 res = jx9_value_is_json_object(apArg[0]);
8913 0 0 if( nArg > 0 ){
8929 0 0 if( nArg < 1 ){
8950 0 0 if( nArg < 1 ){
8971 0 0 if( nArg < 1 ){
8994 0 0 if( nArg > 0 ){
9542 0 0 if( nArg < 1 ){
9548 0 0 if( nArg > 1 ){
9550 0 0 if( n>30 ){
9553 0 0 if( n<0 ){
9562 0 0 if( n==0 && r>=0 && r
0 0 if( n==0 && r>=0 && r
0 0 if( n==0 && r>=0 && r
9564 0 0 }else if( n==0 && r<0 && (-r)
0 0 }else if( n==0 && r<0 && (-r)
9589 0 0 if( nArg < 1 ){
9612 0 0 if( nArg < 1 ){
9635 0 0 if( nArg < 1 ){
9660 0 0 if( nArg < 1 ){
9666 0 0 if( jx9_value_is_string(apArg[0]) ){
9672 0 0 while( zString < zEnd ){
9673 0 0 if( (unsigned char)zString[0] >= 0xc0 ){
9676 0 0 while( zString < zEnd && (((unsigned char)zString[0] & 0xc0) == 0x80) ){
0 0 while( zString < zEnd && (((unsigned char)zString[0] & 0xc0) == 0x80) ){
9680 0 0 if( SyisHex(zString[0]) ){
9687 0 0 if( zString < zEnd ){
9713 0 0 if( nArg < 1 ){
9719 0 0 if( jx9_value_is_string(apArg[0]) ){
9722 0 0 if( nLen > 0 ){
9748 0 0 if( nArg < 1 ){
9754 0 0 if( jx9_value_is_string(apArg[0]) ){
9757 0 0 if( nLen > 0 ){
9787 0 0 if( nArg < 3 ){
9795 0 0 if( jx9_value_is_string(apArg[0]) ){
9798 0 0 if( nLen < 1 ){
9883 0 0 if( nArg < 2 ){
9890 0 0 if( nSrcLen < 1 ){
9898 0 0 if( nOfft < 0 ){
9900 0 0 if( zOfft < zSource ){
9907 0 0 }else if( nOfft >= nSrcLen ){
9915 0 0 if( nArg > 2 ){
9918 0 0 if( nLen == 0 ){
9922 0 0 }else if( nLen < 0 ){
9924 0 0 if( nLen < 1 ){
9929 0 0 if( nLen + nOfft > nSrcLen ){
9965 0 0 if( nArg < 3 ){
9972 0 0 if( nSrcLen < 1 ){
9980 0 0 if( nSublen < 1 || nSublen > nSrcLen){
0 0 if( nSublen < 1 || nSublen > nSrcLen){
9987 0 0 if( nOfft < 0 ){
9989 0 0 if( zOfft < zSource ){
9996 0 0 }else if( nOfft >= nSrcLen ){
10004 0 0 if( nArg > 3 ){
10007 0 0 if( nLen < 1 ){
10011 0 0 }else if( nLen + nOfft > nSrcLen ){
10015 0 0 if( nArg > 4 ){
10021 0 0 if( iCase ){
10053 0 0 if( nArg < 2 ){
10062 0 0 if( nTextlen < 1 || nPatlen < 1 || nPatlen > nTextlen ){
0 0 if( nTextlen < 1 || nPatlen < 1 || nPatlen > nTextlen ){
0 0 if( nTextlen < 1 || nPatlen < 1 || nPatlen > nTextlen ){
10067 0 0 if( nArg > 2 ){
10071 0 0 if( nOfft < 0 || nOfft > nTextlen ){
0 0 if( nOfft < 0 || nOfft > nTextlen ){
10083 0 0 if( nArg > 3 ){
10087 0 0 if( nLen < 0 || nLen > nTextlen ){
0 0 if( nLen < 0 || nLen > nTextlen ){
10099 0 0 if( rc != SXRET_OK ){
10106 0 0 if( zText >= zEnd ){
10131 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
10141 0 0 if( nArg > 1 ){
10144 0 0 if( nChunkLen < 1 ){
10148 0 0 if( nArg > 2 ){
10151 0 0 if( nSepLen < 1 ){
10159 0 0 if( nChunkLen > nLen ){
10164 0 0 while( zIn < zEnd ){
10204 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
10213 0 0 if( nArg > 1 ){
10215 0 0 if( iFlags < 0 ){
10221 0 0 if( zIn >= zEnd ){
10225 0 0 while( zIn < zEnd && zIn[0] != '&' && zIn[0] != '\'' && zIn[0] != '"' && zIn[0] != '<' && zIn[0] != '>' ){
0 0 while( zIn < zEnd && zIn[0] != '&' && zIn[0] != '\'' && zIn[0] != '"' && zIn[0] != '<' && zIn[0] != '>' ){
10228 0 0 if( zCur < zIn ){
10232 0 0 if( zIn >= zEnd ){
10246 0 0 if( iFlags & 0x02 /*ENT_QUOTES*/ ){
10254 0 0 if( (iFlags & 0x04) == 0 /*ENT_NOQUOTES*/ ){
10286 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
10295 0 0 if( nArg > 1 ){
10297 0 0 if( iFlags < 0 ){
10303 0 0 if( zIn >= zEnd ){
10307 0 0 while( zIn < zEnd && zIn[0] != '&' ){
0 0 while( zIn < zEnd && zIn[0] != '&' ){
10310 0 0 if( zCur < zIn ){
10316 0 0 if( nLen >= (int)sizeof("&")-1 && SyStrnicmp(zIn, "&", sizeof("&")-1) == 0 ){
0 0 if( nLen >= (int)sizeof("&")-1 && SyStrnicmp(zIn, "&", sizeof("&")-1) == 0 ){
10320 0 0 }else if( nLen >= (int)sizeof("<")-1 && SyStrnicmp(zIn, "<", sizeof("<")-1) == 0 ){
0 0 }else if( nLen >= (int)sizeof("<")-1 && SyStrnicmp(zIn, "<", sizeof("<")-1) == 0 ){
10324 0 0 }else if( nLen >= (int)sizeof(">")-1 && SyStrnicmp(zIn, ">", sizeof(">")-1) == 0 ){
0 0 }else if( nLen >= (int)sizeof(">")-1 && SyStrnicmp(zIn, ">", sizeof(">")-1) == 0 ){
10328 0 0 }else if( nLen >= (int)sizeof(""")-1 && SyStrnicmp(zIn, """, sizeof(""")-1) == 0 ){
0 0 }else if( nLen >= (int)sizeof(""")-1 && SyStrnicmp(zIn, """, sizeof(""")-1) == 0 ){
10330 0 0 if( (iFlags & 0x04) == 0 /*ENT_NOQUOTES*/ ){
10337 0 0 }else if( nLen >= (int)sizeof("'")-1 && SyStrnicmp(zIn, "'", sizeof("'")-1) == 0 ){
0 0 }else if( nLen >= (int)sizeof("'")-1 && SyStrnicmp(zIn, "'", sizeof("'")-1) == 0 ){
10339 0 0 if( iFlags & 0x02 /*ENT_QUOTES*/ ){
10347 0 0 }else if( nLen >= (int)sizeof(char) ){
10381 0 0 if( pValue == 0 ){
10390 0 0 if( pArray == 0 ){
10396 0 0 for( n = 0 ; n < SX_ARRAYSIZE(azHtmlEscape) ; n += 2 ){
10429 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
10438 0 0 if( nArg > 1 ){
10440 0 0 if( iFlags < 0 ){
10446 0 0 if( zIn >= zEnd ){
10452 0 0 for( n = 0 ; n < SX_ARRAYSIZE(azHtmlEscape) ; n += 2 ){
10453 0 0 if( azHtmlEscape[n+1][0] == c ){
10458 0 0 if( n < SX_ARRAYSIZE(azHtmlEscape) ){
10460 0 0 if( c == '"' && (iFlags & 0x04) /*ENT_NOQUOTES*/ ){
0 0 if( c == '"' && (iFlags & 0x04) /*ENT_NOQUOTES*/ ){
10463 0 0 }else if(c == '\'' && ((iFlags & 0x02 /*ENT_QUOTES*/) == 0 || (iFlags & 0x04) /*ENT_NOQUOTES*/) ){
0 0 }else if(c == '\'' && ((iFlags & 0x02 /*ENT_QUOTES*/) == 0 || (iFlags & 0x04) /*ENT_NOQUOTES*/) ){
10494 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
10503 0 0 if( nArg > 1 ){
10505 0 0 if( iFlags < 0 ){
10511 0 0 if( zIn >= zEnd ){
10516 0 0 while( zIn < zEnd && zIn[0] != '&' ){
0 0 while( zIn < zEnd && zIn[0] != '&' ){
10519 0 0 if( zCur < zIn ){
10523 0 0 if( zIn >= zEnd ){
10528 0 0 for(n = 0 ; n < SX_ARRAYSIZE(azHtmlEscape) ; n += 2 ){
10530 0 0 if( nLen >= iLen && SyStrnicmp(zIn, azHtmlEscape[n], (sxu32)iLen) == 0 ){
0 0 if( nLen >= iLen && SyStrnicmp(zIn, azHtmlEscape[n], (sxu32)iLen) == 0 ){
10536 0 0 if( n < SX_ARRAYSIZE(azHtmlEscape) ){
10539 0 0 if( c == '\'' && ((iFlags & 0x02) == 0 /*ENT_QUOTES*/|| (iFlags & 0x04) /*ENT_NOQUOTES*/) ){
0 0 if( c == '\'' && ((iFlags & 0x02) == 0 /*ENT_QUOTES*/|| (iFlags & 0x04) /*ENT_NOQUOTES*/) ){
10542 0 0 }else if( c == '"' && (iFlags & 0x04) /*ENT_NOQUOTES*/ ){
0 0 }else if( c == '"' && (iFlags & 0x04) /*ENT_NOQUOTES*/ ){
10567 0 0 if( nArg > 0 ){
10589 0 0 if( nArg < 2 ){
10617 0 0 if( nArg < 3 ){
10623 0 0 if( n < 0 ){
10651 0 0 if( nArg < 2 ){
10680 0 0 if( nArg < 3 ){
10686 0 0 if( n < 0 ){
10722 0 0 if( pData->bRecursive && jx9_value_is_json_array(pValue) && pData->nRecCount < 32 ){
0 0 if( pData->bRecursive && jx9_value_is_json_array(pValue) && pData->nRecCount < 32 ){
0 0 if( pData->bRecursive && jx9_value_is_json_array(pValue) && pData->nRecCount < 32 ){
10723 0 0 if( pData->nSeplen > 0 ){
10724 0 0 if( !pData->bFirst ){
10740 0 0 if( nLen > 0 ){
10741 0 0 if( pData->nSeplen > 0 ){
10742 0 0 if( !pData->bFirst ){
10772 0 0 if( nArg < 1 ){
10782 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
10791 0 0 while( i < nArg ){
10792 0 0 if( jx9_value_is_json_array(apArg[i]) ){
10800 0 0 if( nLen > 0 ){
10801 0 0 if( imp_data.nSeplen > 0 ){
10802 0 0 if( !imp_data.bFirst ){
10836 0 0 if( nArg < 1 ){
10846 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
10855 0 0 while( i < nArg ){
10856 0 0 if( jx9_value_is_json_array(apArg[i]) ){
10864 0 0 if( nLen > 0 ){
10865 0 0 if( imp_data.nSeplen > 0 ){
10866 0 0 if( !imp_data.bFirst ){
10912 0 0 if( nArg < 2 ){
10919 0 0 if( nDelim < 1 ){
10926 0 0 if( nStrlen < 1 ){
10936 0 0 if( pArray == 0 || pValue == 0 ){
10943 0 0 if( nArg > 2 ){
10945 0 0 if( iLimit < 0 ){
10948 0 0 if( iLimit == 0 ){
10955 0 0 if( zString >= zEnd ){
10960 0 0 if( rc != SXRET_OK || iLimit <= (int)jx9_array_count(pArray) ){
0 0 if( rc != SXRET_OK || iLimit <= (int)jx9_array_count(pArray) ){
10970 0 0 if( zCur > zString ){
11004 0 0 if( nArg < 1 ){
11011 0 0 if( nLen < 1 ){
11017 0 0 if( nArg < 2 ){
11021 0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
0 0 SyStringFullTrimSafe(&sStr);
11028 0 0 if( nListlen < 1 ){
11038 0 0 if( zCur >= zEnd ){
11042 0 0 for( i = 0 ; i < nListlen ; i++ ){
11043 0 0 if( zCur < zEnd && zCur[0] == zList[i] ){
0 0 if( zCur < zEnd && zCur[0] == zList[i] ){
11047 0 0 if( zCur == zPtr ){
11055 0 0 if( zEnd <= zCur ){
11059 0 0 for( i = 0 ; i < nListlen ; i++ ){
11060 0 0 if( zEnd > zCur && zEnd[0] == zList[i] ){
0 0 if( zEnd > zCur && zEnd[0] == zList[i] ){
11064 0 0 if( zEnd == zPtr ){
11068 0 0 if( zCur >= zEnd ){
11096 0 0 if( nArg < 1 ){
11103 0 0 if( nLen < 1 ){
11109 0 0 if( nArg < 2 ){
11113 0 0 SyStringRightTrimSafe(&sStr);
0 0 SyStringRightTrimSafe(&sStr);
0 0 SyStringRightTrimSafe(&sStr);
0 0 SyStringRightTrimSafe(&sStr);
11120 0 0 if( nListlen < 1 ){
11130 0 0 if( zEnd <= zCur ){
11134 0 0 for( i = 0 ; i < nListlen ; i++ ){
11135 0 0 if( zEnd > zCur && zEnd[0] == zList[i] ){
0 0 if( zEnd > zCur && zEnd[0] == zList[i] ){
11139 0 0 if( zEnd == zPtr ){
11143 0 0 if( zEnd <= zCur ){
11171 0 0 if( nArg < 1 ){
11178 0 0 if( nLen < 1 ){
11184 0 0 if( nArg < 2 ){
11188 0 0 SyStringLeftTrimSafe(&sStr);
0 0 SyStringLeftTrimSafe(&sStr);
0 0 SyStringLeftTrimSafe(&sStr);
0 0 SyStringLeftTrimSafe(&sStr);
11195 0 0 if( nListlen < 1 ){
11205 0 0 if( zCur >= zEnd ){
11209 0 0 for( i = 0 ; i < nListlen ; i++ ){
11210 0 0 if( zCur < zEnd && zCur[0] == zList[i] ){
0 0 if( zCur < zEnd && zCur[0] == zList[i] ){
11214 0 0 if( zCur == zPtr ){
11219 0 0 if( zCur >= zEnd ){
11242 0 0 if( nArg < 1 ){
11249 0 0 if( nLen < 1 ){
11257 0 0 if( zString >= zEnd ){
11261 0 0 if( (unsigned char)zString[0] >= 0xc0 ){
11265 0 0 while( zString < zEnd && ((unsigned char)zString[0] & 0xc0) == 0x80){
0 0 while( zString < zEnd && ((unsigned char)zString[0] & 0xc0) == 0x80){
11272 0 0 if( SyisUpper(c) ){
11296 0 0 if( nArg < 1 ){
11303 0 0 if( nLen < 1 ){
11311 0 0 if( zString >= zEnd ){
11315 0 0 if( (unsigned char)zString[0] >= 0xc0 ){
11319 0 0 while( zString < zEnd && ((unsigned char)zString[0] & 0xc0) == 0x80){
0 0 while( zString < zEnd && ((unsigned char)zString[0] & 0xc0) == 0x80){
11326 0 0 if( SyisLower(c) ){
11350 0 0 if( nArg < 1 ){
11357 0 0 if( nLen < 1 ){
11380 0 0 if( nArg < 1 ){
11415 0 0 if( nArg < 1 ){
11422 0 0 if( nLen < 1 ){
11447 0 0 if( iPatLen > nLen ){
11452 0 0 if( zIn >= zEnd ){
11457 0 0 if( c == d ){
11461 0 0 if( zPtr2 >= zpEnd ){
11463 0 0 if( pOfft ){ *pOfft = (sxu32)(zIn-(const char *)pText); }
11466 0 0 if( zPtr >= zEnd ){
11471 0 0 if( c != d ){
11503 0 0 if( nArg < 2 ){
11512 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11516 0 0 if( rc != SXRET_OK ){
11522 0 0 if( nArg > 2 ){
11525 0 0 if( before ){
11556 0 0 if( nArg < 2 ){
11565 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11569 0 0 if( rc != SXRET_OK ){
11575 0 0 if( nArg > 2 ){
11578 0 0 if( before ){
11610 0 0 if( nArg < 2 ){
11621 0 0 if( nArg > 2 ){
11626 0 0 if( nStart >= nLen ){
11634 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11637 0 0 if( rc != SXRET_OK ){
11671 0 0 if( nArg < 2 ){
11682 0 0 if( nArg > 2 ){
11687 0 0 if( nStart >= nLen ){
11695 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11698 0 0 if( rc != SXRET_OK ){
11732 0 0 if( nArg < 2 ){
11747 0 0 if( nArg > 2 ){
11750 0 0 if( nStart < 0 ){
11752 0 0 if( nStart >= nLen ){
11762 0 0 if( nStart >= nLen ){
11772 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11775 0 0 if( zBlob >= zPtr ){
11779 0 0 if( rc == SXRET_OK ){
11815 0 0 if( nArg < 2 ){
11830 0 0 if( nArg > 2 ){
11833 0 0 if( nStart < 0 ){
11835 0 0 if( nStart >= nLen ){
11845 0 0 if( nStart >= nLen ){
11855 0 0 if( nLen > 0 && nPatLen > 0 ){
0 0 if( nLen > 0 && nPatLen > 0 ){
11858 0 0 if( zBlob >= zPtr ){
11862 0 0 if( rc == SXRET_OK ){
11894 0 0 if( nArg < 2 ){
11902 0 0 if( nLen > 0 ){
11905 0 0 if( jx9_value_is_string(apArg[1]) ){
11917 0 0 if( rc != SXRET_OK ){
11942 0 0 if( nArg < 1 ){
11949 0 0 if( nLen < 1 ){
11957 0 0 if( zEnd < zIn ){
11986 0 0 if( nArg < 2 ){
11993 0 0 if( nLen < 1 ){
12000 0 0 if( nMul < 1 ){
12007 0 0 if( nMul < 1 ){
12012 0 0 if( rc != JX9_OK ){
12036 0 0 if( nArg < 1 ){
12043 0 0 if( nLen < 1 ){
12048 0 0 if( nArg > 1 ){
12056 0 0 while( zIn < zEnd && (zIn[0] != '\n'&& zIn[0] != '\r') ){
0 0 while( zIn < zEnd && (zIn[0] != '\n'&& zIn[0] != '\r') ){
12059 0 0 if( zCur < zIn ){
12063 0 0 if( zIn >= zEnd ){
12068 0 0 if( is_xhtml ){
12075 0 0 while( zIn < zEnd && (zIn[0] == '\n' || zIn[0] == '\r') ){
0 0 while( zIn < zEnd && (zIn[0] == '\n' || zIn[0] == '\r') ){
12078 0 0 if( zCur < zIn ){
12182 0 0 if( (*cnt)++ >= 16 ){
0 0 if( (*cnt)++ >= 16 ){
0 0 if( (*cnt)++ >= 16 ){
12262 0 0 while( zIn < zEnd && zIn[0] != '%' ){
0 0 while( zIn < zEnd && zIn[0] != '%' ){
12265 0 0 if( zCur < zIn ){
12268 0 0 if( rc == SXERR_ABORT ){
12273 0 0 if( zIn >= zEnd ){
12291 0 0 if( zIn < zEnd ){
12294 0 0 for(idx = 0 ; idx < etSPACESIZE ; ++idx ){
12302 0 0 }while( c==0 && (zIn++ < zEnd) );
0 0 }while( c==0 && (zIn++ < zEnd) );
12305 0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
12309 0 0 if( zIn < zEnd && zIn[0] == '$' ){
0 0 if( zIn < zEnd && zIn[0] == '$' ){
12311 0 0 if( width > 0 ){
12313 0 0 if( vf && n > 0 ){
12319 0 0 if( zIn < zEnd && zIn[0] == '0' ){
0 0 if( zIn < zEnd && zIn[0] == '0' ){
12323 0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
12333 0 0 if( zIn < zEnd && zIn[0] == '.' ){
0 0 if( zIn < zEnd && zIn[0] == '.' ){
12336 0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
0 0 while( zIn < zEnd && ( zIn[0] >='0' && zIn[0] <='9') ){
12341 0 0 if( zIn >= zEnd ){
12350 0 0 for(idx=0; idx< (int)SX_ARRAYSIZE(aFmt); idx++){
12351 0 0 if( c==aFmt[idx].fmttype ){
12385 0 0 pArg = NEXT_ARG;
12386 0 0 if( pArg == 0 ){
12397 0 0 pArg = NEXT_ARG;
12398 0 0 if( pArg == 0 ){
12403 0 0 if( length < 1 ){
12407 0 0 if( precision>=0 && precision
0 0 if( precision>=0 && precision
12410 0 0 if( flag_zeropad ){
12412 0 0 for(idx = 0 ; idx < etSPACESIZE ; ++idx ){
12418 0 0 pArg = NEXT_ARG;
12419 0 0 if( pArg == 0 ){
12431 0 0 if( iVal==0 ) flag_alternateform = 0;
12437 0 0 if( pInfo->flags & JX9_FMT_FLAG_SIGNED ){
12438 0 0 if( iVal<0 ){
12441 0 0 if( iVal < 0 ){
12446 0 0 }else if( flag_plussign ) prefix = '+';
12447 0 0 else if( flag_blanksign ) prefix = ' ';
12450 0 0 if( iVal<0 ){
12453 0 0 if( iVal < 0 ){
12460 0 0 if( flag_zeropad && precision
12472 0 0 }while( iVal>0 );
12475 0 0 for(idx=precision-length; idx>0; idx--){
12478 0 0 if( prefix ) *(--zBuf) = (char)prefix; /* Add sign */
12479 0 0 if( flag_alternateform && pInfo->prefix ){ /* Add "0" or "0x" */
0 0 if( flag_alternateform && pInfo->prefix ){ /* Add "0" or "0x" */
12482 0 0 if( *zBuf!=pre[0] ){
12483 0 0 for(pre=pInfo->prefix; (x=(*pre))!=0; pre++) *(--zBuf) = x;
12499 0 0 pArg = NEXT_ARG;
12500 0 0 if( pArg == 0 ){
12505 0 0 if( precision<0 ) precision = 6; /* Set default precision */
12507 0 0 if( realvalue<0.0 ){
12511 0 0 if( flag_plussign ) prefix = '+';
12512 0 0 else if( flag_blanksign ) prefix = ' ';
12515 0 0 if( pInfo->type==JX9_FMT_GENERIC && precision>0 ) precision--;
0 0 if( pInfo->type==JX9_FMT_GENERIC && precision>0 ) precision--;
12522 0 0 for(idx=precision, rounder=0.5; idx>0; idx--, rounder*=0.1);
12524 0 0 if( pInfo->type==JX9_FMT_FLOAT ) realvalue += rounder;
12527 0 0 if( realvalue>0.0 ){
12528 0 0 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; }
0 0 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; }
12529 0 0 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; }
0 0 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; }
12530 0 0 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; }
0 0 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; }
12531 0 0 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; }
0 0 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; }
12532 0 0 if( exp>350 || exp<-350 ){
12544 0 0 if( xtype!=JX9_FMT_FLOAT ){
12546 0 0 if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; }
12548 0 0 if( xtype==JX9_FMT_GENERIC ){
12550 0 0 if( exp<-4 || exp>precision ){
12564 0 0 if( xtype==JX9_FMT_FLOAT && exp+precision
0 0 if( xtype==JX9_FMT_FLOAT && exp+precision
12566 0 0 if( prefix ) *(zBuf++) = (char)prefix; /* Sign */
12567 0 0 if( exp<0 ) *(zBuf++) = '0'; /* Digits before "." */
12568 0 0 else for(; exp>=0; exp--) *(zBuf++) = (char)vxGetdigit(&realvalue, &nsd);
12569 0 0 if( flag_dp ) *(zBuf++) = '.'; /* The decimal point */
12570 0 0 for(exp++; exp<0 && precision>0; precision--, exp++){
12573 0 0 while( (precision--)>0 ) *(zBuf++) = (char)vxGetdigit(&realvalue, &nsd);
12575 0 0 if( flag_rtz && flag_dp ){ /* Remove trailing zeros and "." */
12576 0 0 while( zBuf>=zWorker && *zBuf=='0' ) *(zBuf--) = 0;
0 0 while( zBuf>=zWorker && *zBuf=='0' ) *(zBuf--) = 0;
12577 0 0 if( zBuf>=zWorker && *zBuf=='.' ) *(zBuf--) = 0;
0 0 if( zBuf>=zWorker && *zBuf=='.' ) *(zBuf--) = 0;
12582 0 0 if( prefix ) *(zBuf++) = (char)prefix; /* Sign */
12584 0 0 if( flag_dp ) *(zBuf++) = '.'; /* Decimal point */
12585 0 0 while( (precision--)>0 ) *(zBuf++) = (char)vxGetdigit(&realvalue, &nsd);
12587 0 0 if( flag_rtz && flag_dp ){ /* Remove tail zeros */
12588 0 0 while( zBuf>=zWorker && *zBuf=='0' ) *(zBuf--) = 0;
0 0 while( zBuf>=zWorker && *zBuf=='0' ) *(zBuf--) = 0;
12589 0 0 if( zBuf>=zWorker && *zBuf=='.' ) *(zBuf--) = 0;
0 0 if( zBuf>=zWorker && *zBuf=='.' ) *(zBuf--) = 0;
12592 0 0 if( exp || flag_exp ){
12594 0 0 if( exp<0 ){ *(zBuf++) = '-'; exp = -exp; } /* sign of exp */
12596 0 0 if( exp>=100 ){
12611 0 0 if( flag_zeropad && !flag_leftjustify && length < width){
0 0 if( flag_zeropad && !flag_leftjustify && length < width){
12614 0 0 for(i=width; i>=nPad; i--){
12618 0 0 while( nPad-- ) zBuf[i++] = '0';
12638 0 0 if( !flag_leftjustify ){
12641 0 0 if( nspace>0 ){
12642 0 0 while( nspace>=etSPACESIZE ){
12644 0 0 if( rc != SXRET_OK ){
12649 0 0 if( nspace>0 ){
12651 0 0 if( rc != SXRET_OK ){
12657 0 0 if( length>0 ){
12659 0 0 if( rc != SXRET_OK ){
12663 0 0 if( flag_leftjustify ){
12666 0 0 if( nspace>0 ){
12667 0 0 while( nspace>=etSPACESIZE ){
12669 0 0 if( rc != SXRET_OK ){
12674 0 0 if( nspace>0 ){
12676 0 0 if( rc != SXRET_OK ){
12708 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
12715 0 0 if( nLen < 1 ){
12750 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
12757 0 0 if( nLen < 1 ){
12784 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
12791 0 0 if( nLen < 1 ){
12823 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
12830 0 0 if( nLen < 1 ){
12866 0 0 if( nArg < 1 ){
12873 0 0 if( iSize < 100 /* Bytes */ ){
12882 0 0 if( (iSize & (~0 ^ 1023)) == 0 ){
12887 0 0 if( nRest > 9 ){
12890 0 0 if( iSize > 999 ){
13041 0 0 if( zIn >= zEnd ){
13048 0 0 while( zIn < zEnd ){
13049 0 0 if( zIn[0] == delim && !isEnc){
0 0 if( zIn[0] == delim && !isEnc){
13052 0 0 }else if( zIn[0] == encl ){
13055 0 0 }else if( zIn[0] == escape ){
13062 0 0 if( zIn > zPtr ){
13066 0 0 if( zPtr[0] == encl ){
13070 0 0 if( nByte > 0 ){
13072 0 0 if( rc == SXERR_ABORT ){
13079 0 0 while( zIn < zEnd && zIn[0] == delim ){
0 0 while( zIn < zEnd && zIn[0] == delim ){
13098 0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
0 0 SyStringFullTrimSafe(&sToken);
13099 0 0 if( sToken.nByte < 1){
13130 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
13137 0 0 if( nArg > 1 ){
13139 0 0 if( jx9_value_is_string(apArg[1]) ){
13142 0 0 if( i > 0 ){
13146 0 0 if( nArg > 2 ){
13147 0 0 if( jx9_value_is_string(apArg[2]) ){
13150 0 0 if( i > 0 ){
13154 0 0 if( nArg > 3 ){
13155 0 0 if( jx9_value_is_string(apArg[3]) ){
13158 0 0 if( i > 0 ){
13167 0 0 if( pArray == 0 ){
13190 0 0 while( zTag < zEnd && (zTag[0] == '<' || zTag[0] == '/' || zTag[0] == '?'
0 0 while( zTag < zEnd && (zTag[0] == '<' || zTag[0] == '/' || zTag[0] == '?'
13191 0 0 || zTag[0] == '!' || zTag[0] == '-' || ((unsigned char)zTag[0] < 0xc0 && SyisSpace(zTag[0]))) ){
0 0 || zTag[0] == '!' || zTag[0] == '-' || ((unsigned char)zTag[0] < 0xc0 && SyisSpace(zTag[0]))) ){
13194 0 0 if( zTag >= zEnd ){
13199 0 0 while(zTag < zEnd ){
13200 0 0 if( (unsigned char)zTag[0] >= 0xc0 ){
13203 0 0 SX_JMP_UTF8(zTag, zEnd);
0 0 SX_JMP_UTF8(zTag, zEnd);
13204 0 0 }else if( !SyisAlphaNum(zTag[0]) ){
13210 0 0 if( zTag > zPtr ){
13213 0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
13228 0 0 if( SySetUsed(pSet) > 0 ){
13231 0 0 while( zTag < zEnd && (zTag[0] == '<' || zTag[0] == '/' || zTag[0] == '?' ||
0 0 while( zTag < zEnd && (zTag[0] == '<' || zTag[0] == '/' || zTag[0] == '?' ||
13232 0 0 ((unsigned char)zTag[0] < 0xc0 && SyisSpace(zTag[0]))) ){
0 0 ((unsigned char)zTag[0] < 0xc0 && SyisSpace(zTag[0]))) ){
13237 0 0 while(zTag < zEnd ){
13238 0 0 if( (unsigned char)zTag[0] >= 0xc0 ){
13241 0 0 SX_JMP_UTF8(zTag, zEnd);
0 0 SX_JMP_UTF8(zTag, zEnd);
13242 0 0 }else if( !SyisAlphaNum(zTag[0]) ){
13250 0 0 SyStringLeftTrimSafe(&sTag);
0 0 SyStringLeftTrimSafe(&sTag);
0 0 SyStringLeftTrimSafe(&sTag);
0 0 SyStringLeftTrimSafe(&sTag);
13251 0 0 if( sTag.nByte > 0 ){
13257 0 0 for( n = 0 ; n < SySetUsed(pSet) ; ++n ){
13260 0 0 rc = SyStringCmp(pEntry, &sTag, SyStrnicmp);
13261 0 0 if( !rc ){
13290 0 0 if(zIn >= zEnd){
13296 0 0 while( zIn < zEnd && zIn[0] != '<' && zIn[0] != 0 /* NUL byte */ ){
0 0 while( zIn < zEnd && zIn[0] != '<' && zIn[0] != 0 /* NUL byte */ ){
0 0 while( zIn < zEnd && zIn[0] != '<' && zIn[0] != 0 /* NUL byte */ ){
13299 0 0 if( zIn > zPtr ){
13304 0 0 while( zIn < zEnd && zIn[0] == 0 ){
0 0 while( zIn < zEnd && zIn[0] == 0 ){
13307 0 0 if(zIn >= zEnd){
13311 0 0 if( zIn[0] == '<' ){
13315 0 0 while( zIn < zEnd && zIn[0] != '>' ){
0 0 while( zIn < zEnd && zIn[0] != '>' ){
13318 0 0 if( zIn < zEnd ){
13323 0 0 if( rc == SXRET_OK ){
13350 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
13357 0 0 if( nArg > 1 && jx9_value_is_string(apArg[1]) ){
0 0 if( nArg > 1 && jx9_value_is_string(apArg[1]) ){
13386 0 0 if( nArg < 1 ){
13393 0 0 if( nLen < 1 ){
13399 0 0 if( nArg > 1 ){
13402 0 0 if( split_len < 1 ){
13415 0 0 if( pValue == 0 || pArray == 0 ){
13425 0 0 if( zString >= zEnd ){
13459 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
13462 0 0 if( zIn >= zEnd ){
13468 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && !SyisSpace(zIn[0]) ){
13488 0 0 if( zString >= zEnd ){
13494 0 0 for( i = 0 ; i < nMaskLen ; i++ ){
13495 0 0 if( c == zMask[i] ){
13500 0 0 if( i >= nMaskLen ){
13520 0 0 if( zString >= zEnd ){
13526 0 0 for( i = 0 ; i < nMaskLen ; i++ ){
13527 0 0 if( c == zMask[i] ){
13531 0 0 if( i < nMaskLen ){
13574 0 0 if( nArg < 2 ){
13583 0 0 if( iLen < 1 || iMasklen < 1 ){
0 0 if( iLen < 1 || iMasklen < 1 ){
13588 0 0 if( nArg > 2 ){
13592 0 0 if( nOfft < 0 ){
13594 0 0 if( zBase > zString ){
13603 0 0 if( nOfft >= iLen ){
13613 0 0 if( nArg > 3 ){
13617 0 0 if( iUserlen > 0 && iUserlen < iLen ){
0 0 if( iUserlen > 0 && iUserlen < iLen ){
13626 0 0 if( rc == SXRET_OK && sToken.nByte > 0 ){
0 0 if( rc == SXRET_OK && sToken.nByte > 0 ){
13665 0 0 if( nArg < 2 ){
13674 0 0 if( iLen < 1 ){
13679 0 0 if( iMasklen < 1 ){
13684 0 0 if( nArg > 2 ){
13688 0 0 if( nOfft < 0 ){
13690 0 0 if( zBase > zString ){
13699 0 0 if( nOfft >= iLen ){
13709 0 0 if( nArg > 3 ){
13713 0 0 if( iUserlen > 0 && iUserlen < iLen ){
0 0 if( iUserlen > 0 && iUserlen < iLen ){
13722 0 0 if( rc == SXRET_OK && sToken.nByte > 0 ){
0 0 if( rc == SXRET_OK && sToken.nByte > 0 ){
13747 0 0 if( nArg < 2 ){
13755 0 0 if( iLen < 1 ){
13764 0 0 for( i = 0 ; i < iListLen ; i++ ){
13767 0 0 if( rc == SXRET_OK ){
13773 0 0 if( nOfft == SXU32_HIGH ){
13809 0 0 if( nArg < 1 ){
13815 0 0 for(i=0; zIn[i] && zIn[i] < 0xc0 && !SyisAlpha(zIn[i]); i++){}
0 0 for(i=0; zIn[i] && zIn[i] < 0xc0 && !SyisAlpha(zIn[i]); i++){}
13816 0 0 if( zIn[i] ){
13819 0 0 for(j=1; j<4 && zIn[i]; i++){
0 0 for(j=1; j<4 && zIn[i]; i++){
13821 0 0 if( code>0 ){
13822 0 0 if( code!=prevcode ){
13830 0 0 while( j<4 ){
13856 0 0 if( nArg < 1 ){
13863 0 0 if( iLen < 1 ){
13872 0 0 if( nArg > 1 ){
13874 0 0 if( iChunk < 1 ){
13877 0 0 if( nArg > 2 ){
13881 0 0 if( iBreaklen < 1 ){
13895 0 0 if( zIn >= zEnd ){
13907 0 0 if( zIn < zEnd ){
13922 0 0 for( i = 0 ; i < nMasklen ; ++i ){
0 0 for( i = 0 ; i < nMasklen ; ++i ){
0 0 for( i = 0 ; i < nMasklen ; ++i ){
13923 0 0 if( c == zMask[i] ){
0 0 if( c == zMask[i] ){
0 0 if( c == zMask[i] ){
13941 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && CheckMask(zIn[0], zMask, nMasklen, 0) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && CheckMask(zIn[0], zMask, nMasklen, 0) ){
13944 0 0 if( zIn >= zEnd ){
13950 0 0 while( zIn < zEnd ){
13951 0 0 if( (unsigned char)zIn[0] >= 0xc0 ){
13954 0 0 SX_JMP_UTF8(zIn, zEnd);
0 0 SX_JMP_UTF8(zIn, zEnd);
14004 0 0 if( nArg < 2 ){
14007 0 0 if( pAux == 0 ){
14014 0 0 if( nArg > 0 ){
14018 0 0 if( nMasklen < 1 ){
14028 0 0 if( rc != SXRET_OK ){
14044 0 0 if( nLen < 1 ){
14051 0 0 if( nMasklen < 1 ){
14060 0 0 if( rc != SXRET_OK ){
14070 0 0 if( pAux ){
14072 0 0 if( nLen < 1 ){
14078 0 0 if( zDup ){
14112 0 0 if( nArg < 2 ){
14121 0 0 if( iPadlen > 0 ){
14124 0 0 if( iPadlen < 1 ){
14132 0 0 if( nArg > 2 ){
14135 0 0 if( iStrpad < 1 ){
14140 0 0 if( nArg > 3 ){
14143 0 0 if( iType != 0 /* STR_PAD_LEFT */ && iType != 2 /* STR_PAD_BOTH */ ){
14149 0 0 if( iType == 2 ){
14153 0 0 if( iType == 0 /* STR_PAD_LEFT */ || iType == 2 /* STR_PAD_BOTH */ ){
14155 0 0 for( i = 0 ; i < iPadlen/iDiv ; i += jPad ){
14157 0 0 if( (int)jx9_context_result_buf_length(pCtx) + iLen + jPad >= iRealPad ){
14162 0 0 if( iType == 0 /* STR_PAD_LEFT */ ){
14163 0 0 while( (int)jx9_context_result_buf_length(pCtx) + iLen < iRealPad ){
14168 0 0 if( jPad < 1){
14175 0 0 if( iLen > 0 ){
14179 0 0 if( iType == 1 /* STR_PAD_RIGHT */ || iType == 2 /* STR_PAD_BOTH */ ){
14180 0 0 for( i = 0 ; i < iPadlen/iDiv ; i += iStrpad ){
14182 0 0 if( (int)jx9_context_result_buf_length(pCtx) + iStrpad >= iRealPad ){
14187 0 0 while( (int)jx9_context_result_buf_length(pCtx) < iRealPad ){
14192 0 0 if( jPad < 1){
14244 0 0 STRDEL(zInput, n, m, nLen);
14246 0 0 if( nReplen > 0 ){
14261 0 0 SHIFTRANDINSERT(zInput, n, nOfft, zReplace, iRep);
0 0 SHIFTRANDINSERT(zInput, n, nOfft, zReplace, iRep);
0 0 SHIFTRANDINSERT(zInput, n, nOfft, zReplace, iRep);
14282 0 0 if( !jx9_value_is_string(pKey) ){
14288 0 0 if( tLen < 1 ){
14294 0 0 if( rc != SXRET_OK ){
14319 0 0 if( nByte > 0 ){
14325 0 0 if( zDup == 0 ){
14378 0 0 if( nArg < 3 ){
14393 0 0 if( nByte < 1 ){
14401 0 0 if( jx9_value_is_json_array(apArg[0]) ){
14407 0 0 if( nByte < 1 ){
14417 0 0 if( jx9_value_is_json_array(apArg[1]) ){
14438 0 0 if( SyStrncmp(zFunc, "str_ireplace", sizeof("str_ireplace") - 1) == 0 ){
14450 0 0 if( rep_str ){
14460 0 0 if( pReplace == 0 ){
14466 0 0 if( nCount >= SyBlobLength(&sWorker) ){
14472 0 0 if( rc != SXRET_OK ){
14511 0 0 if( nArg < 1 ){
14517 0 0 if( nLen < 1 || nArg < 2 ){
0 0 if( nLen < 1 || nArg < 2 ){
14522 0 0 if( nArg == 2 && jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg == 2 && jx9_value_is_json_array(apArg[1]) ){
14542 0 0 if( nArg < 3 ){
14550 0 0 if( flen < 1 || tlen < 1 ){
0 0 if( flen < 1 || tlen < 1 ){
14556 0 0 for( i = 0 ; i < nLen ; ++i ){
14559 0 0 if ( iOfft < tlen ){
14603 0 0 if( pArray == 0 || pWorker == 0 || pValue == 0){
0 0 if( pArray == 0 || pWorker == 0 || pValue == 0){
14615 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0])){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0])){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0])){
14618 0 0 if( zIn >= zEnd ){
14622 0 0 if( zIn[0] == ';' || zIn[0] == '#' ){
14625 0 0 while(zIn < zEnd && zIn[0] != '\n' ){
0 0 while(zIn < zEnd && zIn[0] != '\n' ){
14632 0 0 if( zIn[0] == '[' ){
14636 0 0 while( zIn < zEnd && zIn[0] != ']' ){
0 0 while( zIn < zEnd && zIn[0] != ']' ){
14639 0 0 if( zIn > zCur && bProcessSection ){
14642 0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
14644 0 0 if( sEntry.nByte > 0 ){
14647 0 0 if( pSection ){
14663 0 0 while( zIn < zEnd && zIn[0] != '=' ){
0 0 while( zIn < zEnd && zIn[0] != '=' ){
14664 0 0 if( zIn[0] == '[' && !is_array ){
0 0 if( zIn[0] == '[' && !is_array ){
14668 0 0 if( iLen > 0 ){
14672 0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
14674 0 0 if( pEntry ){
14679 0 0 if( pvArr ){
14689 0 0 if( pvArr ){
14693 0 0 while ( zIn < zEnd && zIn[0] != ']' ){
0 0 while ( zIn < zEnd && zIn[0] != ']' ){
14699 0 0 if( !is_array ){
14704 0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
14705 0 0 if( sEntry.nByte > 0 ){
14706 0 0 if( !is_array ){
14713 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
14716 0 0 if( zIn < zEnd ){
14719 0 0 if( c == '"' || c == '\'' ){
14722 0 0 while( zIn < zEnd ){
14723 0 0 if ( zIn[0] == c && zIn[-1] != '\\' ){
0 0 if ( zIn[0] == c && zIn[-1] != '\\' ){
14728 0 0 if( zIn < zEnd ){
14732 0 0 while( zIn < zEnd ){
14733 0 0 if( zIn[0] == '\n' ){
14734 0 0 if( zIn[-1] != '\\' ){
14737 0 0 }else if( zIn[0] == ';' || zIn[0] == '#' ){
14746 0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
0 0 SyStringFullTrim(&sEntry);
14747 0 0 if( c == '"' || c == '\'' ){
14748 0 0 SyStringTrimLeadingChar(&sEntry, c);
0 0 SyStringTrimLeadingChar(&sEntry, c);
14749 0 0 SyStringTrimTrailingChar(&sEntry, c);
0 0 SyStringTrimTrailingChar(&sEntry, c);
14751 0 0 if( sEntry.nByte > 0 ){
14755 0 0 jx9_array_add_elem(pCur, is_array ? 0 /*Automatic index assign */: pWorker, pValue);
14758 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && ( SyisSpace(zIn[0]) || zIn[0] == '=' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && ( SyisSpace(zIn[0]) || zIn[0] == '=' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && ( SyisSpace(zIn[0]) || zIn[0] == '=' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && ( SyisSpace(zIn[0]) || zIn[0] == '=' ) ){
14789 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
14797 0 0 jx9ParseIniString(pCtx, zIni, (sxu32)nByte, (nArg > 1) ? jx9_value_to_bool(apArg[1]) : 0);
14821 0 0 if( nArg < 1 ){
14829 0 0 if( nLen < 1 ){
14836 0 0 if( zIn >= zEnd ){
14841 0 0 if( !SyisAlphaNum(zIn[0]) ){
14864 0 0 if( nArg < 1 ){
14872 0 0 if( nLen < 1 ){
14879 0 0 if( zIn >= zEnd ){
14884 0 0 if( !SyisAlpha(zIn[0]) ){
14907 0 0 if( nArg < 1 ){
14915 0 0 if( nLen < 1 ){
14922 0 0 if( zIn >= zEnd ){
14927 0 0 if( zIn[0] >= 0xc0 ){
14931 0 0 if( !SyisCtrl(zIn[0]) ){
14954 0 0 if( nArg < 1 ){
14962 0 0 if( nLen < 1 ){
14969 0 0 if( zIn >= zEnd ){
14974 0 0 if( zIn[0] >= 0xc0 ){
14978 0 0 if( !SyisDigit(zIn[0]) ){
15002 0 0 if( nArg < 1 ){
15010 0 0 if( nLen < 1 ){
15017 0 0 if( zIn >= zEnd ){
15022 0 0 if( zIn[0] >= 0xc0 ){
15026 0 0 if( !SyisHex(zIn[0]) ){
15050 0 0 if( nArg < 1 ){
15058 0 0 if( nLen < 1 ){
15065 0 0 if( zIn >= zEnd ){
15070 0 0 if( zIn[0] >= 0xc0 ){
15074 0 0 if( !SyisGraph(zIn[0]) ){
15099 0 0 if( nArg < 1 ){
15107 0 0 if( nLen < 1 ){
15114 0 0 if( zIn >= zEnd ){
15119 0 0 if( zIn[0] >= 0xc0 ){
15123 0 0 if( !SyisPrint(zIn[0]) ){
15147 0 0 if( nArg < 1 ){
15155 0 0 if( nLen < 1 ){
15162 0 0 if( zIn >= zEnd ){
15167 0 0 if( zIn[0] >= 0xc0 ){
15171 0 0 if( !SyisPunct(zIn[0]) ){
15196 0 0 if( nArg < 1 ){
15204 0 0 if( nLen < 1 ){
15211 0 0 if( zIn >= zEnd ){
15216 0 0 if( zIn[0] >= 0xc0 ){
15220 0 0 if( !SyisSpace(zIn[0]) ){
15243 0 0 if( nArg < 1 ){
15251 0 0 if( nLen < 1 ){
15258 0 0 if( zIn >= zEnd ){
15263 0 0 if( !SyisLower(zIn[0]) ){
15286 0 0 if( nArg < 1 ){
15294 0 0 if( nLen < 1 ){
15301 0 0 if( zIn >= zEnd ){
15306 0 0 if( !SyisUpper(zIn[0]) ){
15410 0 0 if( nArg > 0 ){
15413 0 0 if( bFloat ){
15452 0 0 if( nArg < 1 ){
15475 0 0 if( jx9_value_is_int(apArg[0]) ){
15478 0 0 if( pTm == 0 ){
15489 0 0 if( pValue == 0 ){
15496 0 0 if( pArray == 0 ){
15565 0 0 if( nArg > 0 ){
15568 0 0 if( bFloat ){
15578 0 0 if( pValue == 0 || pArray == 0 ){
15645 0 0 if( zIn >= zEnd ){
15702 0 0 if( pTm->tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(pTm->tm_year) ){
0 0 if( pTm->tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(pTm->tm_year) ){
0 0 if( pTm->tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(pTm->tm_year) ){
0 0 if( pTm->tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(pTm->tm_year) ){
15710 0 0 int isLeap = IS_LEAP_YEAR(pTm->tm_year);
0 0 int isLeap = IS_LEAP_YEAR(pTm->tm_year);
0 0 int isLeap = IS_LEAP_YEAR(pTm->tm_year);
15729 0 0 jx9_result_string(pCtx, pTm->tm_hour > 12 ? "pm" : "am", 2);
15733 0 0 jx9_result_string(pCtx, pTm->tm_hour > 12 ? "PM" : "AM", 2);
15767 0 0 jx9_result_string(pCtx, &zSuffix[2 * (int)(v / 10 % 10 != 1 ? v % 10 : 0)], (int)sizeof(char) * 2);
15773 0 0 if( zCur == 0 ){
15835 0 0 if( zIn < zEnd ){
15906 0 0 while(zIn < zEnd && zIn[0] != '%' ){
0 0 while(zIn < zEnd && zIn[0] != '%' ){
15909 0 0 if( zIn > zCur ){
15914 0 0 if( zIn >= zEnd ){
16012 0 0 if( zCur == 0 ){
16029 0 0 jx9_result_string(pCtx, pTm->tm_hour > 12 ? "pm" : "am", (int)sizeof(char)*2);
16033 0 0 jx9_result_string(pCtx, pTm->tm_hour > 12 ? "PM" : "AM", (int)sizeof(char)*2);
16041 0 0 pTm->tm_hour > 12 ? "PM" : "AM"
16107 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
16113 0 0 if( nLen < 1 ){
16117 0 0 if( nArg < 2 ){
16133 0 0 if( jx9_value_is_int(apArg[1]) ){
16136 0 0 if( pTm == 0 ){
16168 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
16174 0 0 if( nLen < 1 ){
16178 0 0 if( nArg < 2 ){
16194 0 0 if( jx9_value_is_int(apArg[1]) ){
16197 0 0 if( pTm == 0 ){
16208 0 0 if( jx9_context_result_buf_length(pCtx) < 1 ){
16233 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
16239 0 0 if( nLen < 1 ){
16243 0 0 if( nArg < 2 ){
16259 0 0 if( jx9_value_is_int(apArg[1]) ){
16262 0 0 if( pTm == 0 ){
16304 0 0 if( nArg < 1 ){
16320 0 0 if( jx9_value_is_int(apArg[0]) ){
16323 0 0 if( pTm == 0 ){
16334 0 0 if( pValue == 0 ){
16341 0 0 if( pArray == 0 ){
16346 0 0 if( nArg > 1 ){
16352 0 0 if( isAssoc ){
16359 0 0 if( isAssoc ){
16366 0 0 if( isAssoc ){
16373 0 0 if( isAssoc ){
16380 0 0 if( isAssoc ){
16387 0 0 if( isAssoc ){
16394 0 0 if( isAssoc ){
16401 0 0 if( isAssoc ){
16415 0 0 if( isAssoc ){
16463 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
16469 0 0 if( nLen < 1 ){
16473 0 0 if( nArg < 2 ){
16489 0 0 if( jx9_value_is_int(apArg[1]) ){
16492 0 0 if( pTm == 0 ){
16532 0 0 iVal = IS_LEAP_YEAR(sTm.tm_year);
0 0 iVal = IS_LEAP_YEAR(sTm.tm_year);
0 0 iVal = IS_LEAP_YEAR(sTm.tm_year);
16546 0 0 if( sTm.tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(sTm.tm_year) ){
0 0 if( sTm.tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(sTm.tm_year) ){
0 0 if( sTm.tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(sTm.tm_year) ){
0 0 if( sTm.tm_mon == 1 /* 'February' */ && !IS_LEAP_YEAR(sTm.tm_year) ){
16643 0 0 if( zFunction[0] == 'g' /* gmmktime */ ){
16649 0 0 if( nArg > 0 ){
16654 0 0 if( nArg > 1 ){
16658 0 0 if( nArg > 2 ){
16662 0 0 if( nArg > 3 ){
16666 0 0 if( nArg > 4 ){
16670 0 0 if( nArg > 5 ){
16673 0 0 if( iVal > 1900 ){
16677 0 0 if( nArg > 6 ){
16727 0 0 if( nArg < 1 ){
16734 0 0 if( nLen < 1 ){
16757 0 0 if( nArg < 1 ){
16764 0 0 if( nLen < 1 ){
16788 0 0 if( nArg < 1 ){
16795 0 0 if( nLen < 1 ){
16818 0 0 if( nArg < 1 ){
16825 0 0 if( nLen < 1 ){
16999 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aBuiltInFunc) ; ++n ){
17108 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI /*';'*/) == 0){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI /*';'*/) == 0){
17119 0 0 if( pName->nByte == sizeof("null") - 1 ){
17120 0 0 if( SyStrnicmp(pName->zString, "null", sizeof("null")-1) == 0 ){
17122 0 0 }else if( SyStrnicmp(pName->zString, "true", sizeof("true")-1) == 0 ){
17125 0 0 }else if( pName->nByte == sizeof("false") - 1 ){
17126 0 0 if( SyStrnicmp(pName->zString, "false", sizeof("false")-1) == 0 ){
17140 0 0 if( pEntry == 0 ){
17152 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
17175 0 0 if( pBlock->iFlags & iBlockType ){
17177 0 0 if( iCount < 1 ){
17184 0 0 if( pBlock == 0 || (pBlock->iFlags & (GEN_BLOCK_PROTECTED|GEN_BLOCK_FUNC)) ){
0 0 if( pBlock == 0 || (pBlock->iFlags & (GEN_BLOCK_PROTECTED|GEN_BLOCK_FUNC)) ){
17230 0 0 if( pBlock == 0 ){
17273 0 0 if( pBlock == 0 ){
17329 0 0 for( nFixed = n = 0 ; n < SySetUsed(&pBlock->aJumpFix) ; ++n ){
17330 0 0 if( aFix[n].nJumpType < 0 ){
17334 0 0 if( nJumpType > 0 && aFix[n].nJumpType != nJumpType ){
0 0 if( nJumpType > 0 && aFix[n].nJumpType != nJumpType ){
17360 0 0 if( pObj == 0 ){
17383 0 0 if( pToken->nType & JX9_TK_INTEGER ){
17388 0 0 if( pObj == 0 ){
17398 0 0 if( pObj == 0 ){
17429 0 0 if( pStr->nByte <= 0 ){
17436 0 0 if( pObj == 0 ){
17469 0 0 if( zIn > zEnd ){
17474 0 0 if( SXRET_OK == GenStateFindLiteral(&(*pGen), pStr, &nIdx) ){
17483 0 0 if( pObj == 0 ){
17491 0 0 if( zIn >= zEnd ){
17496 0 0 while( zIn < zEnd && zIn[0] != '\\' ){
0 0 while( zIn < zEnd && zIn[0] != '\\' ){
17499 0 0 if( zIn > zCur ){
17508 0 0 if( zIn < zEnd ){
17509 0 0 if( zIn[0] == '\\' ){
17512 0 0 }else if( zIn[0] == '\'' ){
17527 0 0 if( pStr->nByte < 1024 ){
17595 0 0 if( pConstObj == 0 ){
17653 0 0 if( zIn > zEnd ){
17663 0 0 while( zIn < zEnd && zIn[0] != '\\' ){
0 0 while( zIn < zEnd && zIn[0] != '\\' ){
17664 0 0 if(zIn[0] == '$' && &zIn[1] < zEnd &&
0 0 if(zIn[0] == '$' && &zIn[1] < zEnd &&
17665 0 0 (((unsigned char)zIn[1] >= 0xc0 || SyisAlpha(zIn[1]) || zIn[1] == '_')) ){
0 0 (((unsigned char)zIn[1] >= 0xc0 || SyisAlpha(zIn[1]) || zIn[1] == '_')) ){
0 0 (((unsigned char)zIn[1] >= 0xc0 || SyisAlpha(zIn[1]) || zIn[1] == '_')) ){
17670 0 0 if( zIn > zCur ){
17671 0 0 if( pObj == 0 ){
17673 0 0 if( pObj == 0 ){
17681 0 0 if( pObj == 0 ){
17683 0 0 if( pObj == 0 ){
17689 0 0 if( zIn >= zEnd ){
17692 0 0 if( zIn[0] == '\\' ){
17696 0 0 if( zIn >= zEnd ){
17756 0 0 if((unsigned char)zIn[1] < 0xc0 && SyisHex(zIn[1]) ){
0 0 if((unsigned char)zIn[1] < 0xc0 && SyisHex(zIn[1]) ){
17760 0 0 if( &zIn[2] < zEnd ){
17772 0 0 if( &zIn[1] < zEnd && (unsigned char)zIn[1] < 0xc0 && SyisDigit(zIn[1]) && (zIn[1] - '0') < 8 ){
0 0 if( &zIn[1] < zEnd && (unsigned char)zIn[1] < 0xc0 && SyisDigit(zIn[1]) && (zIn[1] - '0') < 8 ){
0 0 if( &zIn[1] < zEnd && (unsigned char)zIn[1] < 0xc0 && SyisDigit(zIn[1]) && (zIn[1] - '0') < 8 ){
0 0 if( &zIn[1] < zEnd && (unsigned char)zIn[1] < 0xc0 && SyisDigit(zIn[1]) && (zIn[1] - '0') < 8 ){
17777 0 0 for( zPtr = zIn ; zPtr < &zIn[3*sizeof(char)] ; zPtr++ ){
17778 0 0 if( zPtr >= zEnd || (unsigned char)zPtr[0] >= 0xc0 || !SyisDigit(zPtr[0]) || (zPtr[0] - '0') > 7 ){
0 0 if( zPtr >= zEnd || (unsigned char)zPtr[0] >= 0xc0 || !SyisDigit(zPtr[0]) || (zPtr[0] - '0') > 7 ){
0 0 if( zPtr >= zEnd || (unsigned char)zPtr[0] >= 0xc0 || !SyisDigit(zPtr[0]) || (zPtr[0] - '0') > 7 ){
0 0 if( zPtr >= zEnd || (unsigned char)zPtr[0] >= 0xc0 || !SyisDigit(zPtr[0]) || (zPtr[0] - '0') > 7 ){
17783 0 0 if ( c > 0 ){
17801 0 0 if( zIn[0] == '{' ){
17808 0 0 while( zIn < zEnd ){
17809 0 0 if( zIn[0] == '{' ){
17812 0 0 }else if(zIn[0] == '}' ){
17815 0 0 if( iNest <= 0 ){
17823 0 0 if( rc == SXERR_ABORT ){
17826 0 0 if( rc != SXERR_EMPTY ){
17829 0 0 if( zIn < zEnd ){
17839 0 0 while( zIn < zEnd && zIn[0] == '$' ){
0 0 while( zIn < zEnd && zIn[0] == '$' ){
17843 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_' ) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_' ) ){
17846 0 0 if((unsigned char)zIn[0] >= 0xc0 ){
17849 0 0 while( zIn < zEnd && (((unsigned char)zIn[0] & 0xc0) == 0x80) ){
0 0 while( zIn < zEnd && (((unsigned char)zIn[0] & 0xc0) == 0x80) ){
17856 0 0 if( zIn >= zEnd ){
17859 0 0 if( zIn[0] == '[' ){
17862 0 0 while( zIn < zEnd ){
17863 0 0 if( zIn[0] == '[' ){
17865 0 0 }else if (zIn[0] == ']' ){
17867 0 0 if( iSquare <= 0 ){
17873 0 0 if( zIn < zEnd ){
17877 0 0 }else if( zIn[0] == '.' ){
17886 0 0 if( rc == SXERR_ABORT ){
17889 0 0 if( rc != SXERR_EMPTY ){
17896 0 0 if( iCons > 1 ){
17927 0 0 if( pStr->nByte == sizeof("NULL") - 1 ){
17928 0 0 if( SyStrnicmp(pStr->zString, "null", sizeof("NULL")-1) == 0 ){
17932 0 0 }else if( SyStrnicmp(pStr->zString, "true", sizeof("TRUE")-1) == 0 ){
17946 0 0 if( pObj == 0 ){
17958 0 0 while( pBlock && (pBlock->iFlags & GEN_BLOCK_FUNC) == 0 ){
0 0 while( pBlock && (pBlock->iFlags & GEN_BLOCK_FUNC) == 0 ){
17962 0 0 if( pBlock == 0 ){
17969 0 0 if( pObj == 0 ){
17979 0 0 if( SXRET_OK != GenStateFindLiteral(&(*pGen), &pToken->sData, &nIdx) ){
17983 0 0 if( pObj == 0 ){
18029 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_COMMA) ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_COMMA) ){
18033 0 0 if( SXRET_OK != jx9GetNextExpr(pGen->pIn, pGen->pEnd, &pGen->pIn) ){
18039 0 0 if( rc == SXERR_ABORT ){
18055 0 0 if( pRoot->xCode != jx9CompileVariable && pRoot->xCode != jx9CompileString
0 0 if( pRoot->xCode != jx9CompileVariable && pRoot->xCode != jx9CompileString
18056 0 0 && pRoot->xCode != jx9CompileSimpleString && pRoot->xCode != jx9CompileLiteral ){
0 0 && pRoot->xCode != jx9CompileSimpleString && pRoot->xCode != jx9CompileLiteral ){
18058 0 0 rc = jx9GenCompileError(&(*pGen), E_ERROR, pRoot->pStart? pRoot->pStart->nLine : 0,
18060 0 0 if( rc != SXERR_ABORT ){
18080 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_COMMA) ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_COMMA) ){
18084 0 0 if( SXRET_OK != jx9GetNextExpr(pGen->pIn, pGen->pEnd, &pGen->pIn) ){
18090 0 0 while( pCur < pGen->pIn ){
18091 0 0 if( pCur->nType & JX9_TK_COLON /*':'*/ ){
18097 0 0 if( (pCur->nType & JX9_TK_COLON) == 0 ){
18099 0 0 if( rc == SXERR_ABORT ){
18105 0 0 if( pCur < pGen->pIn ){
18106 0 0 if( &pCur[1] >= pGen->pIn ){
18109 0 0 if( rc == SXERR_ABORT ){
18119 0 0 if( rc == SXERR_ABORT ){
18123 0 0 }else if( pKey == pCur ){
18133 0 0 if( rc == SXERR_ABORT ){
18156 0 0 if( nKeyID == JX9_TKWRD_PRINT ){
18161 0 0 while( SXRET_OK == jx9GetNextExpr(pGen->pIn, pTmp, &pNext) ){
18162 0 0 if( pGen->pIn < pNext ){
18165 0 0 if( rc == SXERR_ABORT ){
18168 0 0 if( rc != SXERR_EMPTY ){
18178 0 0 while( pNext < pTmp && (pNext->nType & JX9_TK_COMMA) ){
0 0 while( pNext < pTmp && (pNext->nType & JX9_TK_COMMA) ){
18189 0 0 if( rc == SXERR_ABORT ){
18191 0 0 }else if(rc != SXERR_EMPTY ){
18194 0 0 if( SXRET_OK != GenStateFindLiteral(&(*pGen), pName, &nIdx) ){
18198 0 0 if( pObj == 0 ){
18235 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
18238 0 0 if( rc == SXERR_ABORT ){
18249 0 0 if( pEntry == 0 ){
18252 0 0 if( zName == 0 ){
18263 0 0 if( iCompileFlag & EXPR_FLAG_RDONLY_LOAD ){
18264 0 0 if( (iCompileFlag & EXPR_FLAG_LOAD_IDX_STORE) == 0 ){
18308 0 0 if( pGen->pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD) ){
18313 0 0 if( pObj == 0 ){
18321 0 0 while( SyHashGet(&pGen->pVm->hFunction, zName, nLen) != 0 && nLen < sizeof(zName) - 2 ){
0 0 while( SyHashGet(&pGen->pVm->hFunction, zName, nLen) != 0 && nLen < sizeof(zName) - 2 ){
18328 0 0 if( rc == SXERR_ABORT ){
18359 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_NUM) ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_NUM) ){
18364 0 0 if( iLevel < 2 ){
18371 0 0 if( pLoop == 0 ){
18374 0 0 if( rc == SXERR_ABORT ){
18382 0 0 if( pLoop->bPostContinue == TRUE ){
18390 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
18415 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_NUM) ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_NUM) ){
18420 0 0 if( iLevel < 2 ){
18427 0 0 if( pLoop == 0 ){
18430 0 0 if( rc == SXERR_ABORT ){
18437 0 0 if( rc == SXRET_OK ){
18442 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
18464 0 0 if( pGen->pIn->nType & JX9_TK_OCB /* '{' */ ){
18467 0 0 if( rc != SXRET_OK ){
18473 0 0 if( pGen->pIn >= pGen->pEnd ){
18478 0 0 if( pGen->pIn->nType & JX9_TK_CCB/*'}'*/ ){
18485 0 0 if( rc == SXERR_ABORT ){
18493 0 0 if( rc == SXERR_ABORT ){
18498 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) ){
18532 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
18535 0 0 if( rc == SXERR_ABORT ){
18545 0 0 if( rc != SXRET_OK ){
18550 0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
18553 0 0 if( rc == SXERR_ABORT ){
18563 0 0 if( rc == SXERR_ABORT ){
18568 0 0 while(pGen->pIn < pEnd ){
18570 0 0 if( rc == SXERR_ABORT ){
18584 0 0 if( rc == SXERR_ABORT ){
18599 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
18634 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
18637 0 0 if( rc == SXERR_ABORT ){
18647 0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
18650 0 0 if( rc == SXERR_ABORT ){
18656 0 0 if( pGen->pIn < pGen->pEnd ){
18667 0 0 if( rc == SXERR_ABORT ){
18670 0 0 }else if( rc != SXERR_EMPTY ){
18673 0 0 if( (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
18677 0 0 if( rc == SXERR_ABORT ){
18687 0 0 if( rc != SXRET_OK ){
18694 0 0 if( rc == SXERR_ABORT ){
18697 0 0 }else if( rc != SXERR_EMPTY ){
18703 0 0 if( (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
18707 0 0 if( rc == SXERR_ABORT ){
18721 0 0 if( rc == SXERR_ABORT ){
18725 0 0 if( SySetUsed(&pForBlock->aPostContFix) > 0 ){
18732 0 0 for( n = 0 ; n < SySetUsed(&pForBlock->aPostContFix) ; ++n ){
18741 0 0 while( pPostStart < pEnd && (pPostStart->nType & JX9_TK_SEMI) ){
0 0 while( pPostStart < pEnd && (pPostStart->nType & JX9_TK_SEMI) ){
18744 0 0 if( pPostStart < pEnd ){
18748 0 0 if( pGen->pIn < pGen->pEnd ){
18751 0 0 if( rc == SXERR_ABORT ){
18758 0 0 if( rc == SXERR_ABORT ){
18761 0 0 }else if( rc != SXERR_EMPTY){
18782 0 0 if( pRoot->xCode != jx9CompileVariable ){
18786 0 0 pRoot->pStart? pRoot->pStart->nLine : 0,
18789 0 0 if( rc != SXERR_ABORT ){
18827 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
18830 0 0 if( rc == SXERR_ABORT ){
18840 0 0 if( rc != SXRET_OK ){
18845 0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
18848 0 0 if( rc == SXERR_ABORT ){
18854 0 0 if( pGen->pIn < pGen->pEnd ){
18861 0 0 while( pCur < pEnd ){
18862 0 0 if( pCur->nType & JX9_TK_KEYWORD ){
18864 0 0 if( nKeywrd == JX9_TKWRD_AS ){
18872 0 0 if( pCur <= pGen->pIn ){
18875 0 0 if( rc == SXERR_ABORT ){
18885 0 0 if( rc == SXERR_ABORT ){
18890 0 0 while(pGen->pIn < pCur ){
18892 0 0 if( rc == SXERR_ABORT ){
18900 0 0 if( pGen->pIn >= pEnd ){
18902 0 0 if( rc == SXERR_ABORT ){
18908 0 0 if( pInfo == 0 ){
18917 0 0 while( pCur < pEnd && (pCur->nType & JX9_TK_COMMA) == 0 ){
0 0 while( pCur < pEnd && (pCur->nType & JX9_TK_COMMA) == 0 ){
18920 0 0 if( pCur < pEnd ){
18922 0 0 if( pGen->pIn >= pCur ){
18924 0 0 if( rc == SXERR_ABORT ){
18931 0 0 if( rc == SXERR_ABORT ){
18936 0 0 if( pInstr->p3 ){
18945 0 0 if( pGen->pIn >= pEnd ){
18947 0 0 if( rc == SXERR_ABORT ){
18955 0 0 if( rc == SXERR_ABORT ){
18960 0 0 if( pInstr->p3 ){
18978 0 0 if( rc == SXERR_ABORT ){
18994 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
19041 0 0 if( rc != SXRET_OK ){
19046 0 0 if( pToken >= pGen->pEnd || (pToken->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pToken >= pGen->pEnd || (pToken->nType & JX9_TK_LPAREN) == 0 ){
19048 0 0 if( pToken >= pGen->pEnd ){
19052 0 0 if( rc == SXERR_ABORT ){
19062 0 0 if( pToken >= pEnd || (pEnd->nType & JX9_TK_RPAREN) == 0 ){
0 0 if( pToken >= pEnd || (pEnd->nType & JX9_TK_RPAREN) == 0 ){
19064 0 0 if( pToken >= pGen->pEnd ){
19068 0 0 if( rc == SXERR_ABORT ){
19079 0 0 while(pGen->pIn < pEnd ){
19085 0 0 if( rc == SXERR_ABORT ){
19095 0 0 if( rc == SXERR_ABORT ){
19098 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_KEYWORD) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_KEYWORD) == 0 ){
19103 0 0 if( (nKeyID & (JX9_TKWRD_ELSE|JX9_TKWRD_ELIF)) == 0 ){
19110 0 0 if( nKeyID & JX9_TKWRD_ELSE ){
19112 0 0 if( pToken >= pGen->pEnd || (pToken->nType & JX9_TK_KEYWORD) == 0 ||
0 0 if( pToken >= pGen->pEnd || (pToken->nType & JX9_TK_KEYWORD) == 0 ||
19113 0 0 SX_PTR_TO_INT(pToken->pUserData) != JX9_TKWRD_IF ){
19126 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_KEYWORD) &&
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_KEYWORD) &&
19127 0 0 (SX_PTR_TO_INT(pGen->pIn->pUserData) & JX9_TKWRD_ELSE) ){
19131 0 0 if( rc == SXERR_ABORT ){
19146 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
19173 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
19176 0 0 if( rc == SXERR_ABORT ){
19178 0 0 }else if(rc != SXERR_EMPTY ){
19197 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
19200 0 0 if( rc == SXERR_ABORT ){
19202 0 0 }else if(rc != SXERR_EMPTY ){
19232 0 0 while( pBlock ){
19233 0 0 if( pBlock->iFlags & GEN_BLOCK_FUNC){
19239 0 0 if( pBlock == 0 ){
19241 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 ){
19243 0 0 if( rc == SXERR_ABORT ){
19250 0 0 if( rc == SXERR_ABORT ){
19252 0 0 }else if( rc != SXERR_EMPTY ){
19260 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 || &pGen->pIn[1] >= pGen->pEnd ||
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 || &pGen->pIn[1] >= pGen->pEnd ||
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 || &pGen->pIn[1] >= pGen->pEnd ||
19261 0 0 (pGen->pIn[1].nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
19263 0 0 if( rc == SXERR_ABORT ){
19272 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_EQUAL/*'='*/)) == 0 ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_EQUAL/*'='*/)) == 0 ){
19281 0 0 if( zDup == 0 ){
19287 0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_EQUAL) ){
0 0 if( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_EQUAL) ){
19307 0 0 while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
19336 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_SSTR|JX9_TK_DSTR|JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_SSTR|JX9_TK_DSTR|JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
19339 0 0 if( rc == SXERR_ABORT ){
19348 0 0 if( GenStateIsReservedID(pName) ){
19351 0 0 if( rc == SXERR_ABORT ){
19358 0 0 if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_EQUAL /* '=' */) == 0 ){
0 0 if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_EQUAL /* '=' */) == 0 ){
19361 0 0 if( rc == SXERR_ABORT ){
19370 0 0 if( pConsCode == 0 ){
19382 0 0 if( rc == SXERR_ABORT ){
19389 0 0 if( rc != SXRET_OK ){
19396 0 0 while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 while(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
19428 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_SEMI) ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_SEMI) ){
19434 0 0 while( SXRET_OK == jx9GetNextExpr(pGen->pIn, pTmp, &pNext) ){
19435 0 0 if( pGen->pIn < pNext ){
19437 0 0 if( (pGen->pIn->nType & JX9_TK_DOLLAR) == 0 ){
19439 0 0 if( rc == SXERR_ABORT ){
19444 0 0 if( pGen->pIn >= pGen->pEnd ){
19449 0 0 if( rc == SXERR_ABORT ){
19451 0 0 }else if(rc != SXERR_EMPTY ){
19460 0 0 while( pGen->pIn < pTmp && (pGen->pIn->nType & JX9_TK_COMMA) ){
0 0 while( pGen->pIn < pTmp && (pGen->pIn->nType & JX9_TK_COMMA) ){
19466 0 0 if( nExpr > 0 ){
19479 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_COLON/*':'*/)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_COLON/*':'*/)) == 0 ){
19482 0 0 if( rc == SXERR_ABORT ){
19493 0 0 if( pGen->pIn >= pGen->pEnd ){
19498 0 0 if( (pGen->pIn->nType & JX9_TK_KEYWORD) == 0 ){
19499 0 0 if( pGen->pIn->nType & JX9_TK_CCB /*'}' */ ){
19507 0 0 if( nKwrd == JX9_TKWRD_CASE || nKwrd == JX9_TKWRD_DEFAULT ){
19513 0 0 if( rc == SXERR_ABORT ){
19531 0 0 while( pEnd < pGen->pEnd ){
19532 0 0 if( pEnd->nType & JX9_TK_LPAREN /*(*/ ){
19535 0 0 }else if( pEnd->nType & JX9_TK_RPAREN /*)*/ ){
19538 0 0 }else if( pEnd->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_COLON/*;'*/) && iNest < 1 ){
0 0 }else if( pEnd->nType & (JX9_TK_SEMI/*';'*/|JX9_TK_COLON/*;'*/) && iNest < 1 ){
19543 0 0 if( pGen->pIn >= pEnd ){
19545 0 0 if( rc == SXERR_ABORT ){
19562 0 0 if( rc == SXERR_ABORT ){
19602 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
19605 0 0 if( rc == SXERR_ABORT ){
19617 0 0 if( rc != SXRET_OK ){
19622 0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
0 0 if( pGen->pIn == pEnd || pEnd >= pGen->pEnd ){
19625 0 0 if( rc == SXERR_ABORT ){
19635 0 0 if( rc == SXERR_ABORT ){
19640 0 0 while(pGen->pIn < pEnd ){
19643 0 0 if( rc == SXERR_ABORT ){
19650 0 0 if( pGen->pIn >= pGen->pEnd || &pGen->pIn[1] >= pGen->pEnd ||
0 0 if( pGen->pIn >= pGen->pEnd || &pGen->pIn[1] >= pGen->pEnd ||
19651 0 0 (pGen->pIn->nType & (JX9_TK_OCB/*'{'*/|JX9_TK_COLON/*:*/)) == 0 ){
19653 0 0 if( pTmp >= pGen->pEnd ){
19658 0 0 if( rc == SXERR_ABORT ){
19666 0 0 if( pSwitch == 0 ){
19679 0 0 if( pGen->pIn >= pGen->pEnd ){
19683 0 0 if( (pGen->pIn->nType & JX9_TK_KEYWORD) == 0 ){
19684 0 0 if( (pGen->pIn->nType & JX9_TK_CCB /*}*/) == 0 ){
19688 0 0 if( rc == SXERR_ABORT ){
19698 0 0 if( nKwrd == JX9_TKWRD_DEFAULT ){
19704 0 0 if( pSwitch->nDefault > 0 ){
19707 0 0 if( rc == SXERR_ABORT ){
19714 0 0 if( rc == SXERR_ABORT){
19716 0 0 }else if( rc == SXERR_EOF ){
19719 0 0 }else if( nKwrd == JX9_TKWRD_CASE ){
19727 0 0 if( rc == SXERR_ABORT ){
19734 0 0 if( rc == SXERR_ABORT){
19736 0 0 }else if( rc == SXERR_EOF ){
19743 0 0 if( rc == SXERR_ABORT ){
19754 0 0 if( pGen->pIn < pGen->pEnd ){
19762 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) == 0 ){
19827 0 0 if( rc == SXERR_ABORT ){
19882 0 0 if( pIn >= pEnd ){
19889 0 0 if( pIn->nType & JX9_TK_KEYWORD ){
19891 0 0 if( nKey & JX9_TKWRD_BOOL ){
19893 0 0 }else if( nKey & JX9_TKWRD_INT ){
19895 0 0 }else if( nKey & JX9_TKWRD_STRING ){
19897 0 0 }else if( nKey & JX9_TKWRD_FLOAT ){
19907 0 0 if( pIn >= pEnd ){
19911 0 0 if( pIn >= pEnd || (pIn->nType & JX9_TK_DOLLAR) == 0 || &pIn[1] >= pEnd || (pIn[1].nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
0 0 if( pIn >= pEnd || (pIn->nType & JX9_TK_DOLLAR) == 0 || &pIn[1] >= pEnd || (pIn[1].nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
0 0 if( pIn >= pEnd || (pIn->nType & JX9_TK_DOLLAR) == 0 || &pIn[1] >= pEnd || (pIn[1].nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
19919 0 0 if( zDup == 0 ){
19924 0 0 if( pIn < pEnd ){
19925 0 0 if( pIn->nType & JX9_TK_EQUAL ){
19931 0 0 while( pDefend < pEnd ){
19932 0 0 if( (pDefend->nType & JX9_TK_COMMA) && iNest <= 0 ){
0 0 if( (pDefend->nType & JX9_TK_COMMA) && iNest <= 0 ){
19935 0 0 if( pDefend->nType & (JX9_TK_LPAREN/*'('*/|JX9_TK_OCB/*'{'*/|JX9_TK_OSB/*[*/) ){
19938 0 0 }else if( pDefend->nType & (JX9_TK_RPAREN/*')'*/|JX9_TK_CCB/*'}'*/|JX9_TK_CSB/*]*/) ){
19944 0 0 if( pIn >= pDefend ){
19950 0 0 if( rc != SXRET_OK ){
19956 0 0 if( pIn < pEnd && (pIn->nType & JX9_TK_COMMA) == 0 ){
0 0 if( pIn < pEnd && (pIn->nType & JX9_TK_COMMA) == 0 ){
19963 0 0 if( sArg.nType > 0 ){
19996 0 0 if( SyBlobLength(&sSig) > 0 ){
20017 0 0 if( rc != SXRET_OK ){
20073 0 0 if( pEnd >= pGen->pEnd ){
20076 0 0 if( rc == SXERR_ABORT ){
20085 0 0 if( pFunc == 0 ){
20090 0 0 if( zName == 0 ){
20096 0 0 if( pGen->pIn < pEnd ){
20099 0 0 if( rc == SXERR_ABORT ){
20108 0 0 if( rc == SXERR_ABORT ){
20111 0 0 if( ppFunc ){
20138 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) == 0 ){
20141 0 0 if( rc == SXERR_ABORT ){
20145 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
20154 0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & JX9_TK_LPAREN) == 0 ){
20157 0 0 if( rc == SXERR_ABORT ){
20162 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & (JX9_TK_SEMI|JX9_TK_OCB)) == 0 ){
20191 0 0 if( pNode->xCode ){
20199 0 0 if( pNode->pOp == 0 ){
20205 0 0 if( pNode->pOp->iOp == EXPR_OP_QUESTY ){
20210 0 0 if( rc != SXRET_OK ){
20216 0 0 if( pNode->pLeft ){
20219 0 0 if( rc != SXRET_OK ){
20231 0 0 if( pNode->pRight ){
20233 0 0 if( rc != SXRET_OK ){
20237 0 0 if( nJmp > 0 ){
20248 0 0 if( pNode->pLeft ){
20249 0 0 if( iVmOp == JX9_OP_CALL ){
20256 0 0 for( n = 0 ; n < (sxi32)SySetUsed(&pNode->aNodeArgs) ; ++n ){
20258 0 0 if( rc != SXRET_OK ){
20268 0 0 if( rc != SXRET_OK ){
20271 0 0 if( iVmOp == JX9_OP_CALL ){
20274 0 0 if ( pInstr->iOp == JX9_OP_LOADC ){
20277 0 0 }else if( pInstr->iOp == JX9_OP_MEMBER /* $a.b(1, 2, 3) */ ){
20282 0 0 }else if( iVmOp == JX9_OP_LOAD_IDX ){
20287 0 0 for( n = 0 ; n < (sxi32)SySetUsed(&pNode->aNodeArgs) ; ++n ){
20289 0 0 if( rc != SXRET_OK ){
20293 0 0 if( SySetUsed(&pNode->aNodeArgs) > 0 ){
20296 0 0 if( iFlags & EXPR_FLAG_LOAD_IDX_STORE ){
20300 0 0 }else if( pNode->pOp->iOp == EXPR_OP_COMMA ){
20308 0 0 if( pNode->pRight ){
20309 0 0 if( iVmOp == JX9_OP_LAND ){
20312 0 0 }else if (iVmOp == JX9_OP_LOR ){
20315 0 0 }else if( pNode->pOp->iPrec == 18 /* Combined binary operators [i.e: =, '.=', '+=', *=' ...] precedence */ ){
20319 0 0 if( iVmOp == JX9_OP_STORE ){
20322 0 0 if(pInstr->iOp == JX9_OP_MEMBER ){
20326 0 0 if( pInstr->iOp == JX9_OP_LOAD_IDX ){
20339 0 0 if( iVmOp > 0 ){
20340 0 0 if( iVmOp == JX9_OP_INCR || iVmOp == JX9_OP_DECR ){
20341 0 0 if( pNode->iFlags & EXPR_NODE_PRE_INCR ){
20348 0 0 if( nJmpIdx > 0 ){
20390 0 0 while( pEnd < pGen->pEnd ){
20391 0 0 if( pEnd->nType & JX9_TK_OCB /* '{' */ ){
20394 0 0 }else if(pEnd->nType & JX9_TK_CCB /* '}' */ ){
20396 0 0 }else if( pEnd->nType & JX9_TK_SEMI /* ';' */ ){
20397 0 0 if( iNest <= 0 ){
20403 0 0 if( iFlags & EXPR_FLAG_COMMA_STATEMENT ){
20407 0 0 while( pEnd2 < pEnd ){
20408 0 0 if( pEnd2->nType & (JX9_TK_OCB/*'{'*/|JX9_TK_OSB/*'['*/|JX9_TK_LPAREN/*'('*/) ){
20410 0 0 }else if(pEnd2->nType & (JX9_TK_CCB/*'}'*/|JX9_TK_CSB/*']'*/|JX9_TK_RPAREN/*')'*/)){
20412 0 0 }else if( pEnd2->nType & JX9_TK_COMMA /*','*/ ){
20413 0 0 if( iNest <= 0 ){
20423 0 0 if( pEnd > pGen->pIn ){
20429 0 0 if( rc == SXRET_OK && pRoot ){
0 0 if( rc == SXRET_OK && pRoot ){
20431 0 0 if( xTreeValidator ){
20435 0 0 if( rc != SXERR_ABORT ){
20446 0 0 if( rc == SXERR_ABORT ){
20452 0 0 return nExpr > 0 ? SXRET_OK : SXERR_EMPTY;
20460 0 0 if( nNodeType & JX9_TK_NUM ){
20463 0 0 }else if( nNodeType & JX9_TK_DSTR ){
20466 0 0 }else if( nNodeType & JX9_TK_SSTR ){
20469 0 0 }else if( nNodeType & JX9_TK_NOWDOC ){
20504 0 0 if( n >= SX_ARRAYSIZE(aLangConstruct) ){
20507 0 0 if( aLangConstruct[n].nID == nKeywordID ){
20531 0 0 if( pGen->pIn >= pGen->pEnd ){
20536 0 0 if( pGen->pIn->nType & JX9_TK_KEYWORD ){
20540 0 0 if( xCons == 0 && !jx9IsLangConstruct(nKeyword) ){
0 0 if( xCons == 0 && !jx9IsLangConstruct(nKeyword) ){
20544 0 0 if( rc == SXERR_ABORT ){
20556 0 0 if( rc != SXERR_EMPTY ){
20564 0 0 if( rc == SXERR_ABORT ){
20569 0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) ){
0 0 while( pGen->pIn < pGen->pEnd && (pGen->pIn->nType & JX9_TK_SEMI) ){
20572 0 0 if( iFlags & JX9_COMPILE_SINGLE_STMT ){
20598 0 0 if( pScript->nByte < 1 ){
20609 0 0 if( SySetUsed(&aToken) < 1 ){
20658 0 0 while( pBlock->pParent != 0 ){
20681 0 0 if( nErrType == E_ERROR ){
20684 0 0 if( pGen->nErr > 15 ){
20756 0 0 if( uname(&sInfo) != 0 ){
20902 0 0 if( pFile->nByte > 0 ){
22132 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aBuiltIn) ; ++n ){
22179 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
22180 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
22181 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
22182 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
22194 0 0 if( !bRecursive ){
22202 0 0 if( n >= pMap->nEntry ){
22208 0 0 if( pElem->iFlags & MEMOBJ_HASHMAP ){
22209 0 0 if( iRecCount > 31 ){
22238 0 0 if( pNode == 0 ){
22261 0 0 if( pNode == 0 ){
22281 0 0 if( pMap->apBucket[nBucketIdx] != 0 ){
22287 0 0 if( pMap->pFirst == 0 ){
22292 0 0 MACRO_LD_PUSH(pMap->pLast, pNode);
22305 0 0 if( pNode->pPrevCollide == 0 ){
22310 0 0 if( pNode->pNextCollide ){
22313 0 0 if( pMap->pFirst == pNode ){
22316 0 0 if( pMap->pCur == pNode ){
22321 0 0 MACRO_LD_REMOVE(pMap->pLast, pNode);
0 0 MACRO_LD_REMOVE(pMap->pLast, pNode);
0 0 MACRO_LD_REMOVE(pMap->pLast, pNode);
22324 0 0 if( pNode->iType == HASHMAP_BLOB_NODE ){
22329 0 0 if( pMap->nEntry < 1 ){
22343 0 0 if( pMap->nEntry >= pMap->nSize * HASHMAP_FILL_FACTOR ){
22349 0 0 if( nNew < 1 ){
22354 0 0 if( apNew == 0 ){
22355 0 0 if( pMap->nSize < 1 ){
22366 0 0 if( apOld == 0 ){
22374 0 0 if( n >= pMap->nEntry ){
22381 0 0 if( pMap->apBucket[nBucket] != 0 ){
22408 0 0 if( pObj == 0 ){
22411 0 0 if( pValue ){
22419 0 0 if( pNode == 0 ){
22424 0 0 if( rc != SXRET_OK ){
22446 0 0 if( pObj == 0 ){
22449 0 0 if( pValue ){
22457 0 0 if( pNode == 0 ){
22462 0 0 if( rc != SXRET_OK ){
22484 0 0 if( pMap->nEntry < 1 ){
22494 0 0 if( pNode == 0 ){
22497 0 0 if( pNode->iType == HASHMAP_INT_NODE
22498 0 0 && pNode->nHash == nHash
22499 0 0 && pNode->xKey.iKey == iKey ){
22501 0 0 if( ppNode ){
22526 0 0 if( pMap->nEntry < 1 ){
22536 0 0 if( pNode == 0 ){
22539 0 0 if( pNode->iType == HASHMAP_BLOB_NODE
22540 0 0 && pNode->nHash == nHash
22541 0 0 && SyBlobLength(&pNode->xKey.sKey) == nKeyLen
22542 0 0 && SyMemcmp(SyBlobData(&pNode->xKey.sKey), pKey, nKeyLen) == 0 ){
22544 0 0 if( ppNode ){
22563 0 0 if( (int)(zEnd-zIn) > 1 && zIn[0] == '0' ){
0 0 if( (int)(zEnd-zIn) > 1 && zIn[0] == '0' ){
22567 0 0 if( (zIn[0] == '-' || zIn[0] == '+') && &zIn[1] < zEnd ){
0 0 if( (zIn[0] == '-' || zIn[0] == '+') && &zIn[1] < zEnd ){
22571 0 0 if( zIn >= zEnd ){
22574 0 0 if( (unsigned char)zIn[0] >= 0xc0 /* UTF-8 stream */ || !SyisDigit(zIn[0]) ){
0 0 if( (unsigned char)zIn[0] >= 0xc0 /* UTF-8 stream */ || !SyisDigit(zIn[0]) ){
22595 0 0 if( pKey->iFlags & (MEMOBJ_STRING|MEMOBJ_HASHMAP|MEMOBJ_RES) ){
22596 0 0 if( (pKey->iFlags & MEMOBJ_STRING) == 0 ){
22600 0 0 if( SyBlobLength(&pKey->sBlob) > 0 ){
22607 0 0 if((pKey->iFlags & MEMOBJ_INT) == 0 ){
22614 0 0 if( rc == SXRET_OK ){
22616 0 0 if( ppNode ){
22638 0 0 if( pMap->nEntry < 1 && pKey && (pKey->iFlags & MEMOBJ_STRING) ){
0 0 if( pMap->nEntry < 1 && pKey && (pKey->iFlags & MEMOBJ_STRING) ){
0 0 if( pMap->nEntry < 1 && pKey && (pKey->iFlags & MEMOBJ_STRING) ){
22641 0 0 if( pKey && (pKey->iFlags & (MEMOBJ_STRING|MEMOBJ_HASHMAP|MEMOBJ_RES)) ){
0 0 if( pKey && (pKey->iFlags & (MEMOBJ_STRING|MEMOBJ_HASHMAP|MEMOBJ_RES)) ){
22642 0 0 if( (pKey->iFlags & MEMOBJ_STRING) == 0 ){
22646 0 0 if( SyBlobLength(&pKey->sBlob) < 1 || HashmapIsIntKey(&pKey->sBlob) ){
0 0 if( SyBlobLength(&pKey->sBlob) < 1 || HashmapIsIntKey(&pKey->sBlob) ){
22647 0 0 if(SyBlobLength(&pKey->sBlob) < 1){
22653 0 0 if( SXRET_OK == HashmapLookupBlobKey(&(*pMap), SyBlobData(&pKey->sBlob),
22659 0 0 if( pVal ){
22674 0 0 if((pKey->iFlags & MEMOBJ_INT) == 0 ){
22678 0 0 if( SXRET_OK == HashmapLookupIntKey(&(*pMap), pKey->x.iVal, &pNode) ){
22683 0 0 if( pVal ){
22694 0 0 if( rc == SXRET_OK ){
22695 0 0 if( pKey->x.iVal >= pMap->iNextIdx ){
22699 0 0 while( SXRET_OK == HashmapLookupIntKey(&(*pMap), pMap->iNextIdx, 0) ){
22707 0 0 if( rc == SXRET_OK ){
22739 0 0 if( pNode->iType == HASHMAP_INT_NODE){
22741 0 0 if( !bPreserve ){
22766 0 0 if( pLeft == pRight ){
22792 0 0 if( pEntry->pPrevCollide ){
22797 0 0 if( pEntry->pNextCollide ){
22807 0 0 if( pMap->apBucket[nBucket] ){
22840 0 0 if( n < 1 ){
22846 0 0 if( (pVal->iFlags|pNeedle->iFlags) & MEMOBJ_NULL ){
22849 0 0 if( iF1 == iF2 ){
22851 0 0 if( ppNode ){
22863 0 0 if( rc == 0 ){
22864 0 0 if( ppNode ){
22935 0 0 if( pLeft == pRight ){
22941 0 0 if( pLeft->nEntry != pRight->nEntry ){
22943 0 0 return pLeft->nEntry > pRight->nEntry ? 1 : -1;
22951 0 0 if( n < 1 ){
22954 0 0 if( pLe->iType == HASHMAP_INT_NODE){
22962 0 0 if( rc != SXRET_OK ){
22967 0 0 if( bStrict ){
22969 0 0 if( pLe->iType != pRe->iType ){
22977 0 0 if( rc != 0 ){
23005 0 0 if( pSrc == pDest ){
23014 0 0 for( n = 0 ; n < pSrc->nEntry ; ++n ){
23017 0 0 if( pEntry->iType == HASHMAP_BLOB_NODE ){
23026 0 0 if( rc != SXRET_OK ){
23044 0 0 if( pSrc == pDest ){
23053 0 0 for( n = 0 ; n < pSrc->nEntry ; ++n ){
23056 0 0 if( pEntry->iType == HASHMAP_BLOB_NODE ){
23066 0 0 if( rc != SXRET_OK ){
23117 0 0 if( pLeft == pRight ){
23125 0 0 for(n = 0 ; n < pRight->nEntry ; ++n ){
23127 0 0 if( pEntry->iType == HASHMAP_BLOB_NODE ){
23129 0 0 if( SXRET_OK !=
23136 0 0 if( rc != SXRET_OK ){
23143 0 0 if( SXRET_OK != HashmapLookupIntKey(&(*pLeft), pEntry->xKey.iKey, 0) ){
23148 0 0 if( rc != SXRET_OK ){
23172 0 0 if( pMap == 0 ){
23182 0 0 pMap->xIntHash = xIntHash ? xIntHash : IntHash;
23183 0 0 pMap->xBlobHash = xBlobHash ? xBlobHash : BinHash;
23219 0 0 for( n = 0 ; n < SX_ARRAYSIZE(azSuper) ; n++ ){
23223 0 0 if( pSuper == 0 ){
23228 0 0 if( rc != SXRET_OK ){
23260 0 0 if( n >= pMap->nEntry ){
23267 0 0 if( pEntry->iType == HASHMAP_BLOB_NODE ){
23275 0 0 if( pMap->nEntry > 0 ){
23279 0 0 if( FreeDS ){
23299 0 0 if( pMap->iRef < 1 ){
23345 0 0 pMap->pCur = pMap->pFirst;
23356 0 0 if( pCur == 0 ){
0 0 if( pCur == 0 ){
23380 0 0 if( bStore ){
23395 0 0 if( pNode->iType == HASHMAP_INT_NODE ){
23396 0 0 if( SyBlobLength(&pKey->sBlob) > 0 ){
23420 0 0 for(n = 0 ; n < pMap->nEntry ; n++ ){
23423 0 0 if( pValue ){
23460 0 0 while( pA && pB ){
23461 0 0 if( xCmp(pA, pB, pCmpData) < 0 ){
23473 0 0 if( pA ){
23476 0 0 }else if( pB ){
23503 0 0 while( pIn ){
23507 0 0 for(i=0; i
23508 0 0 if( a[i]==0 ){
23516 0 0 if( i==N_SORT_BUCKET-1 ){
23524 0 0 for(i=1; i
23543 0 0 if( pCmpData == 0 ){
23554 0 0 if( iFlags == 5 ){
23556 0 0 if( (sA.iFlags & MEMOBJ_STRING) == 0 ){
23559 0 0 if( (sB.iFlags & MEMOBJ_STRING) == 0 ){
23582 0 0 if( pCmpData == 0 ){
23593 0 0 if( iFlags == 5 ){
23595 0 0 if( (sA.iFlags & MEMOBJ_STRING) == 0 ){
23598 0 0 if( (sB.iFlags & MEMOBJ_STRING) == 0 ){
23633 0 0 if( rc != SXRET_OK ){
23638 0 0 if((sResult.iFlags & MEMOBJ_INT) == 0 ){
23661 0 0 if( i >= pMap->nEntry ){
23665 0 0 if( p->iType == HASHMAP_BLOB_NODE ){
23706 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
23713 0 0 if( pMap->nEntry > 1 ){
23715 0 0 if( nArg > 1 ){
23718 0 0 if( iCmpFlags == 3 /* SORT_REGULAR */ ){
23750 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
23757 0 0 if( pMap->nEntry > 1 ){
23759 0 0 if( nArg > 1 ){
23762 0 0 if( iCmpFlags == 3 /* SORT_REGULAR */ ){
23793 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
23800 0 0 if( pMap->nEntry > 1 ){
23804 0 0 if( nArg > 1 && jx9_value_is_callable(apArg[1]) ){
0 0 if( nArg > 1 && jx9_value_is_callable(apArg[1]) ){
23838 0 0 if( nArg < 1 ){
23843 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
23849 0 0 if( nArg > 1 ){
23872 0 0 if( nArg < 2 ){
23878 0 0 if( !jx9_value_is_json_array(apArg[1]) ){
23884 0 0 rc = jx9HashmapLookup((jx9_hashmap *)apArg[1]->x.pOther, apArg[0], 0);
23900 0 0 if( nArg < 1 ){
23906 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
23912 0 0 if( pMap->nEntry < 1 ){
23948 0 0 if( nArg < 1 ){
23954 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
23962 0 0 for( i = 1 ; i < nArg ; ++i ){
23964 0 0 if( rc != SXRET_OK ){
23983 0 0 if( nArg < 1 ){
23989 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
23996 0 0 if( pMap->nEntry < 1 ){
24017 0 0 if( n < 1 ){
24020 0 0 if( pEntry->iType == HASHMAP_INT_NODE ){
24039 0 0 if( pCur == 0 ){
24044 0 0 if( iDirection != 0 ){
24045 0 0 if( iDirection > 0 ){
24054 0 0 if( pCur == 0 ){
24082 0 0 if( nArg < 1 ){
24088 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24108 0 0 if( nArg < 1 ){
24114 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24134 0 0 if( nArg < 1 ){
24140 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24159 0 0 if( nArg < 1 ){
24165 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24189 0 0 if( nArg < 1 ){
24195 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24224 0 0 if( nArg < 1 ){
24230 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24237 0 0 if( pCur == 0 ){
24242 0 0 if( pCur->iType == HASHMAP_INT_NODE){
24272 0 0 if( nArg < 1 ){
24278 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24285 0 0 if( pMap->pCur == 0 ){
24293 0 0 if( pArray == 0 ){
24302 0 0 if( pCur->iType == HASHMAP_INT_NODE ){
24333 0 0 if( nArg < 1 ){
24339 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24348 0 0 if( pArray == 0 ){
24354 0 0 for( n = 0 ; n < pMap->nEntry ; ++n ){
24386 0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
24415 0 0 if( nArg < 1 ){
24422 0 0 if( pArray == 0 ){
24429 0 0 for( i = 0 ; i < nArg ; i++ ){
24431 0 0 if( !jx9_value_is_json_array(apArg[i]) ){
24463 0 0 if( nArg < 2 ){
24470 0 0 if( nArg > 2 ){
24473 0 0 if( !jx9_value_is_json_array(apArg[1]) ){
24501 0 0 if( nArg < 1 ){
24508 0 0 if( pArray == 0 ){
24514 0 0 if( jx9_value_is_json_array(apArg[0])){
24541 0 0 if( nArg < 1 ){
24575 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
24580 0 0 if( nArg == 1 ){
24587 0 0 if( pArray == 0 ){
24597 0 0 if( n < 1 ){
24603 0 0 for( i = 1 ; i < nArg ; i++ ){
24604 0 0 if( !jx9_value_is_json_array(apArg[i])) {
24612 0 0 if( rc == SXRET_OK ){
24617 0 0 if( i >= nArg ){
24654 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
24659 0 0 if( nArg == 1 ){
24666 0 0 if( pArray == 0 ){
24676 0 0 if( n < 1 ){
24682 0 0 for( i = 1 ; i < nArg ; i++ ){
24683 0 0 if( !jx9_value_is_json_array(apArg[i])) {
24691 0 0 if( rc != SXRET_OK ){
24696 0 0 if( i >= nArg ){
24724 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
24726 0 0 if( pObj && (pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES)) == 0){
24727 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24729 0 0 }else if( pObj->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
24731 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
24732 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
24752 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
24754 0 0 if( pObj && (pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES)) == 0){
24755 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24757 0 0 }else if( pObj->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
24759 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
24760 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
24780 0 0 if( nArg < 1 ){
24786 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24792 0 0 if( pMap->nEntry < 1 ){
24805 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24828 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
24830 0 0 if( pObj && (pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES)) == 0){
24831 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24833 0 0 }else if( pObj->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
24835 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
24836 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
24857 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
24859 0 0 if( pObj && (pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES)) == 0){
24860 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24862 0 0 }else if( pObj->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
24864 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
24865 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
24885 0 0 if( nArg < 1 ){
24891 0 0 if( !jx9_value_is_json_array(apArg[0]) ){
24897 0 0 if( pMap->nEntry < 1 ){
24910 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
24937 0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[1]) ){
24944 0 0 if( pArray == 0 ){
24954 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
24957 0 0 if( pValue ){
24963 0 0 if( rc != SXRET_OK ){
25005 0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_json_array(apArg[0]) ){
25010 0 0 pUserData = nArg > 2 ? apArg[2] : 0;
25016 0 0 for( n = 0 ; n < pMap->nEntry ; n++ ){
25025 0 0 if( rc != SXRET_OK ){
25078 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aHashmapFunc) ; n++ ){
25109 0 0 if( n < 1 ){
25120 0 0 if( rc != JX9_OK ){
25200 0 0 if( jx9_value_is_null(pIn) || jx9_value_is_resource(pIn)){
0 0 if( jx9_value_is_null(pIn) || jx9_value_is_resource(pIn)){
25203 0 0 }else if( jx9_value_is_bool(pIn) ){
25207 0 0 iLen = iBool ? sizeof("true") : sizeof("false");
25208 0 0 SyBlobAppend(pOut, iBool ? "true" : "false", iLen-1);
25209 0 0 }else if( jx9_value_is_numeric(pIn) && !jx9_value_is_string(pIn) ){
0 0 }else if( jx9_value_is_numeric(pIn) && !jx9_value_is_string(pIn) ){
25214 0 0 }else if( jx9_value_is_string(pIn) ){
25223 0 0 if( zIn >= zEnd ){
25230 0 0 if( c == '"' || c == '\\' ){
25239 0 0 }else if( jx9_value_is_json_array(pIn) ){
25241 0 0 pData->isFirst = 1;
25273 0 0 if( pJson->nRecCount > 31 ){
25278 0 0 if( !pJson->isFirst ){
25298 0 0 if( pJson->nRecCount > 31 ){
25302 0 0 if( !pJson->isFirst ){
25309 0 0 if( nByte > 0 ){
25368 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
25370 0 0 if( pStream->zText[0] == '\n' ){
25376 0 0 if( pStream->zText >= pStream->zEnd ){
25386 0 0 if( pStream->zText[0] >= 0xc0 || SyisAlpha(pStream->zText[0]) || pStream->zText[0] == '_' ){
0 0 if( pStream->zText[0] >= 0xc0 || SyisAlpha(pStream->zText[0]) || pStream->zText[0] == '_' ){
25396 0 0 if( pStream->zText[0] < 0xc0 ){
25401 0 0 if( zIn[0] >= 0xc0 ){
25404 0 0 while( zIn < pStream->zEnd && ((zIn[0] & 0xc0) == 0x80) ){
0 0 while( zIn < pStream->zEnd && ((zIn[0] & 0xc0) == 0x80) ){
25409 0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
25412 0 0 if( zIn == pStream->zText ){
25423 0 0 if( pStr->nByte == sizeof("true") -1 && SyStrnicmp(pStr->zString, "true", sizeof("true")-1) == 0 ){
0 0 if( pStr->nByte == sizeof("true") -1 && SyStrnicmp(pStr->zString, "true", sizeof("true")-1) == 0 ){
25426 0 0 }else if( pStr->nByte == sizeof("false") -1 && SyStrnicmp(pStr->zString,"false", sizeof("false")-1) == 0 ){
0 0 }else if( pStr->nByte == sizeof("false") -1 && SyStrnicmp(pStr->zString,"false", sizeof("false")-1) == 0 ){
25429 0 0 }else if( pStr->nByte == sizeof("null") -1 && SyStrnicmp(pStr->zString,"null", sizeof("null")-1) == 0 ){
0 0 }else if( pStr->nByte == sizeof("null") -1 && SyStrnicmp(pStr->zString,"null", sizeof("null")-1) == 0 ){
25457 0 0 while( pStream->zText < pStream->zEnd ){
25458 0 0 if( pStream->zText[0] == '"' && pStream->zText[-1] != '\\' ){
0 0 if( pStream->zText[0] == '"' && pStream->zText[-1] != '\\' ){
25461 0 0 if( pStream->zText[0] == '\n' ){
25467 0 0 if( pStream->zText >= pStream->zEnd ){
25475 0 0 }else if( pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
25479 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
25482 0 0 if( pStream->zText < pStream->zEnd ){
25484 0 0 if( c == '.' ){
25487 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
25490 0 0 if( pStream->zText < pStream->zEnd ){
25492 0 0 if( c=='e' || c=='E' ){
25494 0 0 if( pStream->zText < pStream->zEnd ){
25496 0 0 if( c =='+' || c=='-' ){
25499 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
25505 0 0 }else if( c=='e' || c=='E' ){
25508 0 0 if( pStream->zText < pStream->zEnd ){
25510 0 0 if( c =='+' || c=='-' ){
25513 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
25530 0 0 if( pToken->nType == JSON_TK_STR ){
25571 0 0 while( zIn < zEnd && zIn[0] != '\\' ){
0 0 while( zIn < zEnd && zIn[0] != '\\' ){
25574 0 0 if( zIn > zCur ){
25579 0 0 if( zIn >= zEnd ){
25622 0 0 if( pDecoder->rec_count > 31 ){
25626 0 0 if( pDecoder->pIn->nType & (JSON_TK_STR|JSON_TK_ID|JSON_TK_TRUE|JSON_TK_FALSE|JSON_TK_NULL|JSON_TK_NUM) ){
25629 0 0 if( pWorker == 0 ){
25635 0 0 if( pDecoder->pIn->nType & JSON_TK_NULL ){
25638 0 0 }else if( pDecoder->pIn->nType & (JSON_TK_TRUE|JSON_TK_FALSE) ){
25641 0 0 }else if( pDecoder->pIn->nType & JSON_TK_NUM ){
25651 0 0 }else if( pDecoder->pIn->nType & JSON_TK_ID ){
25660 0 0 if( rc == SXERR_ABORT ){
25665 0 0 }else if( pDecoder->pIn->nType & JSON_TK_OSB /*'[' */) {
25672 0 0 if( pWorker == 0 ){
25688 0 0 while( (pDecoder->pIn < pDecoder->pEnd) && (pDecoder->pIn->nType & JSON_TK_COMMA) ){
0 0 while( (pDecoder->pIn < pDecoder->pEnd) && (pDecoder->pIn->nType & JSON_TK_COMMA) ){
25691 0 0 if( pDecoder->pIn >= pDecoder->pEnd || (pDecoder->pIn->nType & JSON_TK_CSB) /*']'*/ ){
0 0 if( pDecoder->pIn >= pDecoder->pEnd || (pDecoder->pIn->nType & JSON_TK_CSB) /*']'*/ ){
25692 0 0 if( pDecoder->pIn < pDecoder->pEnd ){
25701 0 0 if( rc == SXERR_ABORT ){
25706 0 0 if( (pDecoder->pIn < pDecoder->pEnd) &&
25707 0 0 ((pDecoder->pIn->nType & (JSON_TK_CSB/*']'*/|JSON_TK_COMMA/*','*/))==0) ){
25718 0 0 }else if( pDecoder->pIn->nType & JSON_TK_OCB /*'{' */) {
25727 0 0 if( pWorker == 0 || pKey == 0){
25743 0 0 while( (pDecoder->pIn < pDecoder->pEnd) && (pDecoder->pIn->nType & JSON_TK_COMMA) ){
0 0 while( (pDecoder->pIn < pDecoder->pEnd) && (pDecoder->pIn->nType & JSON_TK_COMMA) ){
25746 0 0 if( pDecoder->pIn >= pDecoder->pEnd || (pDecoder->pIn->nType & JSON_TK_CCB) /*'}'*/ ){
0 0 if( pDecoder->pIn >= pDecoder->pEnd || (pDecoder->pIn->nType & JSON_TK_CCB) /*'}'*/ ){
25747 0 0 if( pDecoder->pIn < pDecoder->pEnd ){
25752 0 0 if( (pDecoder->pIn->nType & (JSON_TK_ID|JSON_TK_STR)) == 0 || &pDecoder->pIn[1] >= pDecoder->pEnd
0 0 if( (pDecoder->pIn->nType & (JSON_TK_ID|JSON_TK_STR)) == 0 || &pDecoder->pIn[1] >= pDecoder->pEnd
25753 0 0 || (pDecoder->pIn[1].nType & JSON_TK_COLON) == 0){
25758 0 0 if( pDecoder->pIn->nType & JSON_TK_ID ){
25771 0 0 if( rc == SXERR_ABORT ){
25835 0 0 if( rc != SXRET_OK ){
25855 0 0 if( rc == SXERR_ABORT ){
25903 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisSpace(pStream->zText[0]) ){
25905 0 0 if( pStream->zText[0] == '\n' ){
25911 0 0 if( pStream->zText >= pStream->zEnd ){
25920 0 0 if( pStream->zText[0] >= 0xc0 || SyisAlpha(pStream->zText[0]) || pStream->zText[0] == '_' ){
0 0 if( pStream->zText[0] >= 0xc0 || SyisAlpha(pStream->zText[0]) || pStream->zText[0] == '_' ){
0 0 if( pStream->zText[0] >= 0xc0 || SyisAlpha(pStream->zText[0]) || pStream->zText[0] == '_' ){
25931 0 0 if( pStream->zText[0] < 0xc0 ){
25936 0 0 if( zIn[0] >= 0xc0 ){
25939 0 0 while( zIn < pStream->zEnd && ((zIn[0] & 0xc0) == 0x80) ){
0 0 while( zIn < pStream->zEnd && ((zIn[0] & 0xc0) == 0x80) ){
25944 0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
0 0 while( zIn < pStream->zEnd && zIn[0] < 0xc0 && (SyisAlphaNum(zIn[0]) || zIn[0] == '_') ){
25947 0 0 if( zIn == pStream->zText ){
25957 0 0 if( nKeyword != JX9_TK_ID ){
25968 0 0 if( pStream->zText[0] == '#' ||
0 0 if( pStream->zText[0] == '#' ||
25969 0 0 ( pStream->zText[0] == '/' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '/') ){
0 0 ( pStream->zText[0] == '/' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '/') ){
25972 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] != '\n' ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] != '\n' ){
25977 0 0 }else if( pStream->zText[0] == '/' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '*' ){
0 0 }else if( pStream->zText[0] == '/' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '*' ){
0 0 }else if( pStream->zText[0] == '/' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '*' ){
25980 0 0 while( pStream->zText < pStream->zEnd ){
25981 0 0 if( pStream->zText[0] == '*' ){
25982 0 0 if( &pStream->zText[1] >= pStream->zEnd || pStream->zText[1] == '/' ){
0 0 if( &pStream->zText[1] >= pStream->zEnd || pStream->zText[1] == '/' ){
25986 0 0 if( pStream->zText[0] == '\n' ){
25994 0 0 }else if( SyisDigit(pStream->zText[0]) ){
25997 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
26002 0 0 if( pStream->zText < pStream->zEnd ){
26007 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
26010 0 0 if( pStream->zText < pStream->zEnd ){
26012 0 0 if( c=='e' || c=='E' ){
26014 0 0 if( pStream->zText < pStream->zEnd ){
26016 0 0 if( (c =='+' || c=='-') && &pStream->zText[1] < pStream->zEnd &&
0 0 if( (c =='+' || c=='-') && &pStream->zText[1] < pStream->zEnd &&
26017 0 0 pStream->zText[1] < 0xc0 && SyisDigit(pStream->zText[1]) ){
0 0 pStream->zText[1] < 0xc0 && SyisDigit(pStream->zText[1]) ){
26020 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
26031 0 0 if( pStream->zText < pStream->zEnd ){
26033 0 0 if( (c =='+' || c=='-') && &pStream->zText[1] < pStream->zEnd &&
0 0 if( (c =='+' || c=='-') && &pStream->zText[1] < pStream->zEnd &&
26034 0 0 pStream->zText[1] < 0xc0 && SyisDigit(pStream->zText[1]) ){
0 0 pStream->zText[1] < 0xc0 && SyisDigit(pStream->zText[1]) ){
26037 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisDigit(pStream->zText[0]) ){
26045 0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisHex(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisHex(pStream->zText[0]) ){
0 0 while( pStream->zText < pStream->zEnd && pStream->zText[0] < 0xc0 && SyisHex(pStream->zText[0]) ){
26051 0 0 while( pStream->zText < pStream->zEnd && (pStream->zText[0] == '0' || pStream->zText[0] == '1') ){
0 0 while( pStream->zText < pStream->zEnd && (pStream->zText[0] == '0' || pStream->zText[0] == '1') ){
26075 0 0 if( pTokSet->nUsed >= 2 ){
26081 0 0 if( (sxu32)nID & (JX9_TKWRD_INT|JX9_TKWRD_FLOAT|JX9_TKWRD_STRING|JX9_TKWRD_BOOL) ){
26086 0 0 if( nID & JX9_TKWRD_FLOAT ){
26088 0 0 }else if( nID & JX9_TKWRD_BOOL ){
26090 0 0 }else if( nID & JX9_TKWRD_STRING ){
26111 0 0 while( pStream->zText < pStream->zEnd ){
26112 0 0 if( pStream->zText[0] == '\'' ){
26113 0 0 if( pStream->zText[-1] != '\\' ){
26118 0 0 while( zPtr > pStream->zInput && zPtr[0] == '\\' ){
0 0 while( zPtr > pStream->zInput && zPtr[0] == '\\' ){
26122 0 0 if((i&1)==0){
26127 0 0 if( pStream->zText[0] == '\n' ){
26143 0 0 while( pStream->zText < pStream->zEnd ){
26144 0 0 if( pStream->zText[0] == '{' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '$'){
0 0 if( pStream->zText[0] == '{' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '$'){
0 0 if( pStream->zText[0] == '{' && &pStream->zText[1] < pStream->zEnd && pStream->zText[1] == '$'){
26148 0 0 while(pStream->zText < pStream->zEnd ){
26149 0 0 if( pStream->zText[0] == '{' ){
26151 0 0 }else if (pStream->zText[0] == '}' ){
26153 0 0 if( iNest <= 0 ){
26157 0 0 }else if( pStream->zText[0] == '\n' ){
26162 0 0 if( pStream->zText >= pStream->zEnd ){
26166 0 0 if( pStream->zText[0] == '"' ){
26167 0 0 if( pStream->zText[-1] != '\\' ){
26172 0 0 while( zPtr > pStream->zInput && zPtr[0] == '\\' ){
0 0 while( zPtr > pStream->zInput && zPtr[0] == '\\' ){
26176 0 0 if((i&1)==0){
26181 0 0 if( pStream->zText[0] == '\n' ){
26201 0 0 if( pStream->zText < pStream->zEnd ){
26202 0 0 if( pStream->zText[0] == '=' ){
26206 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26214 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26217 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26225 0 0 if( pStream->zText < pStream->zEnd ){
26226 0 0 if( pStream->zText[0] == '&' ){
26230 0 0 }else if( pStream->zText[0] == '=' ){
26237 0 0 if( pStream->zText < pStream->zEnd && (pStream->zText[0] == '.' || pStream->zText[0] == '=') ){
0 0 if( pStream->zText < pStream->zEnd && (pStream->zText[0] == '.' || pStream->zText[0] == '=') ){
26243 0 0 if( pStream->zText < pStream->zEnd ){
26244 0 0 if( pStream->zText[0] == '|' ){
26247 0 0 }else if( pStream->zText[0] == '=' ){
26254 0 0 if( pStream->zText < pStream->zEnd ){
26255 0 0 if( pStream->zText[0] == '+' ){
26258 0 0 }else if( pStream->zText[0] == '=' ){
26265 0 0 if( pStream->zText < pStream->zEnd ){
26266 0 0 if( pStream->zText[0] == '-' ){
26269 0 0 }else if( pStream->zText[0] == '=' ){
26272 0 0 }else if( pStream->zText[0] == '>' ){
26279 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26285 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26291 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26297 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26303 0 0 if( pStream->zText < pStream->zEnd ){
26304 0 0 if( pStream->zText[0] == '<' ){
26307 0 0 if( pStream->zText < pStream->zEnd ){
26308 0 0 if( pStream->zText[0] == '=' ){
26311 0 0 }else if( pStream->zText[0] == '<' ){
26316 0 0 if( rc == SXRET_OK ){
26322 0 0 }else if( pStream->zText[0] == '>' ){
26325 0 0 }else if( pStream->zText[0] == '=' ){
26332 0 0 if( pStream->zText < pStream->zEnd ){
26333 0 0 if( pStream->zText[0] == '>' ){
26336 0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
0 0 if( pStream->zText < pStream->zEnd && pStream->zText[0] == '=' ){
26340 0 0 }else if( pStream->zText[0] == '=' ){
26349 0 0 if( pStr->nByte <= 0 ){
26353 0 0 if( pToken->nType & JX9_TK_OP ){
26357 0 0 if( pOp == 0 ){
26360 0 0 if( pToken->nType <= 0 ){
26434 0 0 if( n<2 ) return JX9_TK_ID;
26436 0 0 for(i=((int)aHash[h])-1; i>=0; i=((int)aNext[i])-1){
26437 0 0 if( (int)aLen[i]==n && SyMemcmp(&zText[aOffset[i]],z,n)==0 ){
0 0 if( (int)aLen[i]==n && SyMemcmp(&zText[aOffset[i]],z,n)==0 ){
26504 0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
26507 0 0 if( zIn >= zEnd ){
26511 0 0 if( zIn[0] == '\'' || zIn[0] == '"' ){
26514 0 0 if( zIn[0] < 0xc0 && !SyisAlphaNum(zIn[0]) && zIn[0] != '_' ){
0 0 if( zIn[0] < 0xc0 && !SyisAlphaNum(zIn[0]) && zIn[0] != '_' ){
0 0 if( zIn[0] < 0xc0 && !SyisAlphaNum(zIn[0]) && zIn[0] != '_' ){
26523 0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && (SyisAlphaNum(zPtr[0]) || zPtr[0] == '_') ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && (SyisAlphaNum(zPtr[0]) || zPtr[0] == '_') ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && (SyisAlphaNum(zPtr[0]) || zPtr[0] == '_') ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && (SyisAlphaNum(zPtr[0]) || zPtr[0] == '_') ){
26526 0 0 if( zPtr < zEnd && zPtr[0] >= 0xc0 ){
0 0 if( zPtr < zEnd && zPtr[0] >= 0xc0 ){
26529 0 0 while( zPtr < zEnd && ((zPtr[0] & 0xc0) == 0x80) ){
0 0 while( zPtr < zEnd && ((zPtr[0] & 0xc0) == 0x80) ){
26533 0 0 if( zPtr == zIn ){
26542 0 0 if( zIn[0] == '"' || zIn[0] == '\'' ){
26547 0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] < 0xc0 && SyisSpace(zIn[0]) && zIn[0] != '\n' ){
26550 0 0 if( sDelim.nByte <= 0 || zIn >= zEnd || zIn[0] != '\n' ){
0 0 if( sDelim.nByte <= 0 || zIn >= zEnd || zIn[0] != '\n' ){
0 0 if( sDelim.nByte <= 0 || zIn >= zEnd || zIn[0] != '\n' ){
26561 0 0 while( zIn < zEnd && zIn[0] != '\n' ){
0 0 while( zIn < zEnd && zIn[0] != '\n' ){
26564 0 0 if( zIn >= zEnd ){
26571 0 0 if( (sxu32)(zEnd - zIn) >= sDelim.nByte && SyMemcmp((const void *)sDelim.zString, (const void *)zIn, sDelim.nByte) == 0 ){
0 0 if( (sxu32)(zEnd - zIn) >= sDelim.nByte && SyMemcmp((const void *)sDelim.zString, (const void *)zIn, sDelim.nByte) == 0 ){
26573 0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
26576 0 0 if( zPtr >= zEnd ){
26581 0 0 if( zPtr[0] == ';' ){
26584 0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
0 0 while( zPtr < zEnd && zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) && zPtr[0] != '\n' ){
26587 0 0 if( zPtr >= zEnd || zPtr[0] == '\n' ){
0 0 if( zPtr >= zEnd || zPtr[0] == '\n' ){
26592 0 0 }else if( zPtr[0] == '\n' ){
26607 0 0 SyStringRightTrim(&pToken->sData);
0 0 SyStringRightTrim(&pToken->sData);
0 0 SyStringRightTrim(&pToken->sData);
26938 288 12 if( !zIn[0] ){ break; } zIn++;
26939 288 0 if( !zIn[0] ){ break; } zIn++;
26940 256 32 if( !zIn[0] ){ break; } zIn++;
26941 245 11 if( !zIn[0] ){ break; } zIn++;
26952 0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
26953 0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
26954 0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
26955 0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
0 0 if( zIn >= zEnd ){ break; }if( zIn[0] == c ){ if( pPos ){ *pPos = (sxu32)(zIn - zStr); } return SXRET_OK; } zIn++;
26967 0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
26968 0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
26969 0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
26970 0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
0 0 if( zEnd < zIn ){ break; } if( zEnd[0] == c ){ if( pPos ){ *pPos = (sxu32)(zEnd - zIn);} return SXRET_OK; } zEnd--;
26983 0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
26984 0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
26985 0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
26986 0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
0 0 if( zIn >= zEnd ){ break; } for(zPtr = zList ; (c = zPtr[0]) != 0 ; zPtr++ ){ if( zIn[0] == c ){ if( pFirstPos ){ *pFirstPos = (sxu32)(zIn - zSrc); } return SXRET_OK; } } zIn++;
26996 0 0 if( SX_EMPTY_STR(zP) || SX_EMPTY_STR(zQ) ){
0 0 if( SX_EMPTY_STR(zP) || SX_EMPTY_STR(zQ) ){
0 0 if( SX_EMPTY_STR(zP) || SX_EMPTY_STR(zQ) ){
0 0 if( SX_EMPTY_STR(zP) || SX_EMPTY_STR(zQ) ){
26997 0 0 return SX_EMPTY_STR(zP) ? (SX_EMPTY_STR(zQ) ? 0 : -1) :1;
0 0 return SX_EMPTY_STR(zP) ? (SX_EMPTY_STR(zQ) ? 0 : -1) :1;
0 0 return SX_EMPTY_STR(zP) ? (SX_EMPTY_STR(zQ) ? 0 : -1) :1;
26999 0 0 if( nLen <= 0 ){
27003 0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
27004 0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
27005 0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
27006 0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
0 0 if( nLen <= 0 ){ return 0; } if( zP[0] == 0 || zQ[0] == 0 || zP[0] != zQ[0] ){ break; } zP++; zQ++; nLen--;
27016 6 0 if( SX_EMPTY_STR(p) || SX_EMPTY_STR(q) ){
6 0 if( SX_EMPTY_STR(p) || SX_EMPTY_STR(q) ){
6 0 if( SX_EMPTY_STR(p) || SX_EMPTY_STR(q) ){
0 6 if( SX_EMPTY_STR(p) || SX_EMPTY_STR(q) ){
27017 0 0 return SX_EMPTY_STR(p)? SX_EMPTY_STR(q) ? 0 : -1 :1;
0 0 return SX_EMPTY_STR(p)? SX_EMPTY_STR(q) ? 0 : -1 :1;
0 0 return SX_EMPTY_STR(p)? SX_EMPTY_STR(q) ? 0 : -1 :1;
27020 6 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
27021 6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
27022 6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
27023 6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
0 6 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
6 0 if( !SLen ){ return 0; }if( !*p || !*q || SyCharToLower(*p) != SyCharToLower(*q) ){ break; }p++;q++;--SLen;
27026 0 0 return (sxi32)(SyCharToLower(p[0]) - SyCharToLower(q[0]));
0 0 return (sxi32)(SyCharToLower(p[0]) - SyCharToLower(q[0]));
0 0 return (sxi32)(SyCharToLower(p[0]) - SyCharToLower(q[0]));
0 0 return (sxi32)(SyCharToLower(p[0]) - SyCharToLower(q[0]));
27038 21 0 if( nLen <= 0 ){
27043 174 0 if( zBuf >= zEnd || nLen == 0 ){ break;} zBuf[0] = zIn[0]; zIn++; zBuf++; nLen--;
27044 174 0 if( zBuf >= zEnd || nLen == 0 ){ break;} zBuf[0] = zIn[0]; zIn++; zBuf++; nLen--;
27045 154 20 if( zBuf >= zEnd || nLen == 0 ){ break;} zBuf[0] = zIn[0]; zIn++; zBuf++; nLen--;
27046 153 1 if( zBuf >= zEnd || nLen == 0 ){ break;} zBuf[0] = zIn[0]; zIn++; zBuf++; nLen--;
27063 29390 164 if( zSrc >= zEnd ){break;} zSrc[0] = 0; zSrc++;
27064 29390 0 if( zSrc >= zEnd ){break;} zSrc[0] = 0; zSrc++;
27065 29390 0 if( zSrc >= zEnd ){break;} zSrc[0] = 0; zSrc++;
27066 29386 4 if( zSrc >= zEnd ){break;} zSrc[0] = 0; zSrc++;
27072 31 0 if( nSize <= 0 ){
27075 0 31 if( pB1 == 0 || pB2 == 0 ){
27076 0 0 return pB1 != 0 ? 1 : (pB2 == 0 ? 0 : -1);
0 0 return pB1 != 0 ? 1 : (pB2 == 0 ? 0 : -1);
27078 43 0 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
39 4 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
39 0 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
39 0 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
36 3 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
36 0 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
12 24 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
12 0 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
4 27 SX_MACRO_FAST_CMP(pB1, pB2, nSize, rc);
27083 49 0 if( pSrc == 0 || pDest == 0 ){
27086 49 0 if( pSrc == (const void *)pDest ){
27089 124 23 SX_MACRO_FAST_MEMCPY(pSrc, pDest, nLen);
122 2 SX_MACRO_FAST_MEMCPY(pSrc, pDest, nLen);
116 6 SX_MACRO_FAST_MEMCPY(pSrc, pDest, nLen);
98 18 SX_MACRO_FAST_MEMCPY(pSrc, pDest, nLen);
27096 122 0 if( pChunk == 0 ){
27107 1 0 if( pOldChunk[0] >= nBytes ){
27111 1 0 if( pChunk == 0 ){
27150 0 122 if( pBlock != 0 || pBackend->xMemError == 0 || nRetry > SXMEM_BACKEND_RETRY
0 0 if( pBlock != 0 || pBackend->xMemError == 0 || nRetry > SXMEM_BACKEND_RETRY
0 0 if( pBlock != 0 || pBackend->xMemError == 0 || nRetry > SXMEM_BACKEND_RETRY
27151 0 0 || SXERR_RETRY != pBackend->xMemError(pBackend->pUserData) ){
27156 122 0 if( pBlock == 0 ){
27161 16 106 MACRO_LD_PUSH(pBackend->pBlocks, pBlock);
27176 0 79 if( pBackend->pMutexMethods ){
27177 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27180 0 79 if( pBackend->pMutexMethods ){
27181 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27190 15 1 if( pOld == 0 ){
27204 0 1 if( pNew != 0 || pBackend->xMemError == 0 || nRetry > SXMEM_BACKEND_RETRY ||
0 0 if( pNew != 0 || pBackend->xMemError == 0 || nRetry > SXMEM_BACKEND_RETRY ||
27210 1 0 if( pNew == 0 ){
27213 1 0 if( pNew != pBlock ){
27214 1 0 if( pPrev == 0 ){
27219 1 0 if( pNext ){
27236 0 16 if( pBackend->pMutexMethods ){
27237 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27240 0 16 if( pBackend->pMutexMethods ){
27241 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27255 63 0 if( pBackend->nBlock > 0 ){
27261 39 24 MACRO_LD_REMOVE(pBackend->pBlocks, pBlock);
24 39 MACRO_LD_REMOVE(pBackend->pBlocks, pBlock);
63 0 MACRO_LD_REMOVE(pBackend->pBlocks, pBlock);
27275 63 0 if( pChunk == 0 ){
27278 0 63 if( pBackend->pMutexMethods ){
27279 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27282 0 63 if( pBackend->pMutexMethods ){
27283 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27336 28 0 if( zBucket == 0 ){
27344 7540 28 if( &zBucket[nBucketSize] >= zBucketEnd ){
27362 0 49 if( nByte + sizeof(SyMemHeader) >= SXMEM_POOL_MAXALLOC ){
27365 0 0 if( pBucket == 0 ){
27375 275 49 while( nByte + sizeof(SyMemHeader) > nBucketSize ){
27380 28 21 if( pBucket == 0 ){
27383 0 28 if( rc != SXRET_OK ){
27403 0 49 if( pBackend->pMutexMethods ){
27404 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27407 0 49 if( pBackend->pMutexMethods ){
27408 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27419 45 0 if( (pHeader->nBucket >> 16) != SXMEM_POOL_MAGIC ){
27423 0 45 if( nBucket == SXU16_HIGH ){
27441 0 45 if( pBackend->pMutexMethods ){
27442 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27445 0 45 if( pBackend->pMutexMethods ){
27446 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27538 0 0 if( pMethods->xAlloc == 0 || pMethods->xRealloc == 0 || pMethods->xFree == 0 || pMethods->xChunkSize == 0 ){
0 0 if( pMethods->xAlloc == 0 || pMethods->xRealloc == 0 || pMethods->xFree == 0 || pMethods->xChunkSize == 0 ){
0 0 if( pMethods->xAlloc == 0 || pMethods->xRealloc == 0 || pMethods->xFree == 0 || pMethods->xChunkSize == 0 ){
0 0 if( pMethods->xAlloc == 0 || pMethods->xRealloc == 0 || pMethods->xFree == 0 || pMethods->xChunkSize == 0 ){
27548 0 0 if( pBackend->pMethods->xInit ){
27550 0 0 if( SXRET_OK != pBackend->pMethods->xInit(pBackend->pMethods->pUserData) ){
27573 0 15 if( bInheritMutex ){
27577 0 0 if( pBackend->pMutex == 0){
27592 17 8 if( pBackend->nBlock == 0 ){
27600 13 4 if( pBackend->nBlock == 0 ){
27608 10 3 if( pBackend->nBlock == 0 ){
27616 10 0 if( pBackend->nBlock == 0 ){
27625 0 15 if( pBackend->pMethods->xRelease ){
27643 0 15 if( pBackend->pMutexMethods ){
27644 0 0 SyMutexEnter(pBackend->pMutexMethods, pBackend->pMutex);
27647 0 15 if( pBackend->pMutexMethods ){
27648 0 0 SyMutexLeave(pBackend->pMutexMethods, pBackend->pMutex);
27649 0 0 SyMutexRelease(pBackend->pMutexMethods, pBackend->pMutex);
0 0 SyMutexRelease(pBackend->pMutexMethods, pBackend->pMutex);
27662 1 0 if( pNew ){
27671 0 0 if( zDest ){
27700 5 0 pBlob->nFlags = 0;
27724 26 16 if( pBlob->nFlags & (SXBLOB_LOCKED|SXBLOB_STATIC) ){
27725 0 26 if ( SyBlobFreeSpace(pBlob) < nByte ){
27727 0 0 if( (*pByte) == 0 ){
27733 0 16 if( pBlob->nFlags & SXBLOB_RDONLY ){
27735 0 0 if( pBlob->nByte > 0 ){
27737 0 0 if( pNew == 0 ){
27749 3 13 if( SyBlobFreeSpace(pBlob) >= nByte ){
27752 1 12 if( pBlob->mByte > 0 ){
27758 13 0 if( pNew == 0 ){
27769 42 0 if( nSize < 1 ){
27776 42 0 if( pData ){
27780 65 7 SX_MACRO_FAST_MEMCPY(pData, zBlob, nSize);
59 6 SX_MACRO_FAST_MEMCPY(pData, zBlob, nSize);
55 4 SX_MACRO_FAST_MEMCPY(pData, zBlob, nSize);
30 25 SX_MACRO_FAST_MEMCPY(pData, zBlob, nSize);
27790 0 0 if (rc == SXRET_OK ){
27798 0 0 if( pSrc->nByte > 0 ){
27806 0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
0 0 if( pBlob->nFlags & SXBLOB_RDONLY ){
27823 11 26 if( (pBlob->nFlags & (SXBLOB_STATIC|SXBLOB_RDONLY)) == 0 && pBlob->mByte > 0 ){
11 0 if( (pBlob->nFlags & (SXBLOB_STATIC|SXBLOB_RDONLY)) == 0 && pBlob->mByte > 0 ){
27837 0 0 if( pLen > nLen ){
27842 0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
27843 0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
27844 0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
27845 0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
0 0 if( zIn > zEnd ){break;} SX_MACRO_FAST_CMP(zIn, pPattern, pLen, rc); if( rc == 0 ){ if( pOfft ){ *pOfft = (sxu32)(zIn - (const char *)pBlob);} return SXRET_OK; } zIn++;
27859 0 0 pSet->pUserData = 0;
0 0 pSet->pUserData = 0;
0 0 pSet->pUserData = 0;
27865 3 3 if( pSet->nUsed >= pSet->nSize ){
27867 3 0 if( pSet->pAllocator == 0 ){
27870 3 0 if( pSet->nSize <= 0 ){
27874 3 0 if( pNew == 0 ){
27881 12 6 SX_MACRO_FAST_MEMCPY(pItem, &zbase[pSet->nUsed * pSet->eSize], pSet->eSize);
12 0 SX_MACRO_FAST_MEMCPY(pItem, &zbase[pSet->nUsed * pSet->eSize], pSet->eSize);
12 0 SX_MACRO_FAST_MEMCPY(pItem, &zbase[pSet->nUsed * pSet->eSize], pSet->eSize);
12 0 SX_MACRO_FAST_MEMCPY(pItem, &zbase[pSet->nUsed * pSet->eSize], pSet->eSize);
27887 0 0 if( pSet->nSize > 0 ){
27894 0 0 if( pSet->pBase == 0 ){
27914 0 0 if( pSet->nCursor >= pSet->nUsed ){
0 0 if( pSet->nCursor >= pSet->nUsed ){
0 0 if( pSet->nCursor >= pSet->nUsed ){
0 0 if( pSet->nCursor >= pSet->nUsed ){
27923 0 0 pSet->nCursor++;
27929 0 0 if( pSet->pAllocator && pSet->pBase ){
0 0 if( pSet->pAllocator && pSet->pBase ){
27940 0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
0 0 if( pSet->nUsed <= 0 ){
27944 0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
0 0 return (void *)&zBase[(pSet->nUsed - 1) * pSet->eSize];
27950 0 0 if( pSet->nUsed <= 0 ){
27955 0 0 pData = (void *)&zBase[pSet->nUsed * pSet->eSize];
27961 0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
0 0 if( nIdx >= pSet->nUsed ){
27966 0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
0 0 return (void *)&zBase[nIdx * pSet->eSize];
27991 0 0 if( apNew == 0 ){
27996 0 0 pHash->xHash = xHash ? xHash : SyBinHash;
27997 0 0 pHash->xCmp = xCmp ? xCmp : SyMemcmp;
28014 0 0 if( pHash->nEntry == 0 ){
28022 0 0 if( pHash->apBucket ){
28038 0 0 if( pEntry == 0 ){
28041 0 0 if( pEntry->nHash == nHash && pEntry->nKeyLen == nKeyLen &&
28058 0 0 if( pHash->nEntry < 1 || nKeyLen < 1 ){
0 0 if( pHash->nEntry < 1 || nKeyLen < 1 ){
28063 0 0 if( pEntry == 0 ){
28071 0 0 if( pEntry->pPrevCollide == 0 ){
28076 0 0 if( pEntry->pNextCollide ){
28079 0 0 MACRO_LD_REMOVE(pHash->pList, pEntry);
0 0 MACRO_LD_REMOVE(pHash->pList, pEntry);
0 0 MACRO_LD_REMOVE(pHash->pList, pEntry);
28081 0 0 if( ppUserData ){
28099 0 0 if( pEntry == 0 ){
28116 0 0 for( n = 0 ; n < pHash->nEntry ; n++ ){
28119 0 0 if( rc != SXRET_OK ){
28136 0 0 if( apNew == 0 ){
28143 0 0 for( n = 0, pEntry = pHash->pList; n < pHash->nEntry ; n++ ){
28148 0 0 if( apNew[iBucket] != 0 ){
28166 0 0 if( pHash->apBucket[iBucket] != 0 ){
28171 0 0 MACRO_LD_PUSH(pHash->pList, pEntry);
28172 0 0 if( pHash->nEntry == 0 ){
28187 0 0 if( pHash->nEntry >= pHash->nBucketSize * SXHASH_FILL_FACTOR ){
28189 0 0 if( rc != SXRET_OK ){
28195 0 0 if( pEntry == 0 ){
28220 0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisSpace(zSrc[0]) ){
28223 0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
28227 0 0 if( pReal ){
28231 0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
28232 0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
28233 0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
28234 0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
0 0 if( zSrc >= zEnd || (unsigned char)zSrc[0] >= 0xc0 || !SyisDigit(zSrc[0]) ){ break; } zSrc++;
28236 0 0 if( zSrc < zEnd && zSrc > zCur ){
28238 0 0 if( c == '.' ){
28240 0 0 if( pReal ){
28243 0 0 if( pzTail ){
28244 0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
28247 0 0 if( zSrc < zEnd && (zSrc[0] == 'e' || zSrc[0] == 'E') ){
0 0 if( zSrc < zEnd && (zSrc[0] == 'e' || zSrc[0] == 'E') ){
28249 0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
28252 0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
28257 0 0 }else if( c == 'e' || c == 'E' ){
28259 0 0 if( pReal ){
28262 0 0 if( pzTail ){
28263 0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
0 0 if( zSrc < zEnd && (zSrc[0] == '+' || zSrc[0] == '-') ){
28266 0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
0 0 while( zSrc < zEnd && (unsigned char)zSrc[0] < 0xc0 && SyisDigit(zSrc[0]) ){
28272 0 0 if( pzTail ){
28276 0 0 return zSrc > zCur ? SXRET_OK /* String prefix is numeric */ : SXERR_INVALID /* Not a digit stream */;
28297 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
28300 0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
28305 0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
28309 0 0 if( (sxu32)(zEnd-zSrc) >= 10 ){
28311 0 0 i = SyMemcmp(zSrc, (isNeg == TRUE) ? SXINT32_MIN_STR : SXINT32_MAX_STR, nLen) <= 0 ? 10 : 9;
0 0 i = SyMemcmp(zSrc, (isNeg == TRUE) ? SXINT32_MIN_STR : SXINT32_MAX_STR, nLen) <= 0 ? 10 : 9;
28314 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28315 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28316 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28317 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28320 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
28323 0 0 if( zRest ){
28326 0 0 if( pOutVal ){
28327 0 0 if( isNeg == TRUE && nVal != 0 ){
28332 0 0 return (zSrc >= zEnd) ? SXRET_OK : SXERR_SYNTAX;
28349 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
28352 0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
28357 0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
28361 0 0 if( (sxu32)(zEnd-zSrc) >= 19 ){
28362 0 0 i = SyMemcmp(zSrc, isNeg ? SXINT64_MIN_STR : SXINT64_MAX_STR, 19) <= 0 ? 19 : 18 ;
0 0 i = SyMemcmp(zSrc, isNeg ? SXINT64_MIN_STR : SXINT64_MAX_STR, 19) <= 0 ? 19 : 18 ;
28366 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28367 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28368 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28369 0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
0 0 if(zSrc >= zEnd || !i || !SyisDigit(zSrc[0])){ break; } nVal = nVal * 10 + ( zSrc[0] - '0' ) ; --i ; zSrc++;
28372 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
28375 0 0 if( zRest ){
28378 0 0 if( pOutVal ){
28379 0 0 if( isNeg == TRUE && nVal != 0 ){
28384 0 0 return (zSrc >= zEnd) ? SXRET_OK : SXERR_SYNTAX;
28388 0 0 switch(c){
0 0 switch(c){
28422 0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
28425 0 0 if( zSrc < zEnd && ( *zSrc == '-' || *zSrc == '+' ) ){
0 0 if( zSrc < zEnd && ( *zSrc == '-' || *zSrc == '+' ) ){
28429 0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'x' || zSrc[1] == 'X') ){
0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'x' || zSrc[1] == 'X') ){
0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'x' || zSrc[1] == 'X') ){
28434 0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
28439 0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
28440 0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
28441 0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
28442 0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
0 0 if(zSrc >= zEnd || !SyisHex(zSrc[0]) || (int)(zSrc-zIn) > 15) break; nVal = nVal * 16 + SyHexToint(zSrc[0]); zSrc++ ;
28444 0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
28447 0 0 if( zRest ){
28450 0 0 if( pOutVal ){
28451 0 0 if( isNeg == TRUE && nVal != 0 ){
28456 0 0 return zSrc >= zEnd ? SXRET_OK : SXERR_SYNTAX;
28473 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
28476 0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
28481 0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
28486 0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
28487 0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
28488 0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
28489 0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
0 0 if(zSrc >= zEnd || !SyisDigit(zSrc[0])){ break; } if( (c=zSrc[0]-'0') > 7 || (int)(zSrc-zIn) > 20){ break;} nVal = nVal * 8 + c; zSrc++;
28492 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
28495 0 0 if( zRest ){
28498 0 0 if( pOutVal ){
28499 0 0 if( isNeg == TRUE && nVal != 0 ){
28504 0 0 return (zSrc >= zEnd) ? SXRET_OK : SXERR_SYNTAX;
28521 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0]) ){
28524 0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+' ) ){
28528 0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'b' || zSrc[1] == 'B') ){
0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'b' || zSrc[1] == 'B') ){
0 0 if( zSrc < &zEnd[-2] && zSrc[0] == '0' && (zSrc[1] == 'b' || zSrc[1] == 'B') ){
28533 0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
0 0 while(zSrc < zEnd && zSrc[0] == '0' ){
28538 0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
28539 0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
28540 0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
28541 0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
0 0 if(zSrc >= zEnd || (zSrc[0] != '1' && zSrc[0] != '0') || (int)(zSrc-zIn) > 62){ break; } c = zSrc[0] - '0'; nVal = (nVal << 1) + c; zSrc++;
28544 0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
0 0 while(zSrc < zEnd && SyisSpace(zSrc[0])){
28547 0 0 if( zRest ){
28550 0 0 if( pOutVal ){
28551 0 0 if( isNeg == TRUE && nVal != 0 ){
28556 0 0 return (zSrc >= zEnd) ? SXRET_OK : SXERR_SYNTAX;
28588 0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
28591 0 0 if( zSrc < zEnd && (zSrc[0] == '-' || zSrc[0] == '+' ) ){
0 0 if( zSrc < zEnd && (zSrc[0] == '-' || zSrc[0] == '+' ) ){
28597 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
28598 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
28599 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
28600 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; zSrc++ ; --Lim;
28602 0 0 if( zSrc < zEnd && ( zSrc[0] == '.' || zSrc[0] == ',' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '.' || zSrc[0] == ',' ) ){
28606 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
28607 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
28608 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
28609 0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
0 0 if(zSrc >= zEnd||!Lim||!SyisDigit(zSrc[0])) break ; Val = Val * 10.0 + (zSrc[0] - '0') ; dec *= 10.0; zSrc++ ;--Lim;
28613 0 0 if( neg == TRUE && Val != 0.0 ) {
28616 0 0 if( Lim <= 0 ){
28618 0 0 while( zSrc < zEnd ){
28619 0 0 if( zSrc[0] == 'e' || zSrc[0] == 'E' ){
28626 0 0 if( zSrc < zEnd && ( zSrc[0] == 'e' || zSrc[0] == 'E' ) ){
0 0 if( zSrc < zEnd && ( zSrc[0] == 'e' || zSrc[0] == 'E' ) ){
28628 0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+') ){
0 0 if( zSrc < zEnd && ( zSrc[0] == '-' || zSrc[0] == '+') ){
28633 0 0 while( zSrc < zEnd && SyisDigit(zSrc[0]) && exp < SXDBL_MAX_EXP ){
0 0 while( zSrc < zEnd && SyisDigit(zSrc[0]) && exp < SXDBL_MAX_EXP ){
0 0 while( zSrc < zEnd && SyisDigit(zSrc[0]) && exp < SXDBL_MAX_EXP ){
28637 0 0 if( neg ){
28642 0 0 for( p = (sxreal *)aTab ; exp ; exp >>= 1 , p++ ){
28643 0 0 if( exp & 01 ){
28644 0 0 if( neg ){
28652 0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
0 0 while( zSrc < zEnd && SyisSpace(zSrc[0]) ){
28655 0 0 if( zRest ){
28658 0 0 if( pOutVal ){
28661 0 0 return zSrc >= zEnd ? SXRET_OK : SXERR_SYNTAX;
28671 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
28672 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
28673 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
28674 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
28691 0 0 for(i = 0; i + 2 < nLen; i += 3){
28698 0 0 if( rc != SXRET_OK ){return SXERR_ABORT;}
28701 0 0 if ( i+1 < nLen ){
28708 0 0 if( rc != SXRET_OK ){return SXERR_ABORT;}
28710 0 0 }else if( i < nLen ){
28717 0 0 if( rc != SXRET_OK ){return SXERR_ABORT;}
28739 0 0 while(nLen > 0 && zB64[nLen - 1] == '=' ){
0 0 while(nLen > 0 && zB64[nLen - 1] == '=' ){
28742 0 0 for( n = 0 ; n+3
28752 0 0 if( rc != SXRET_OK ){ return SXERR_ABORT;}
28754 0 0 if( n+2 < nLen ){
28763 0 0 if( rc != SXRET_OK ){ return SXERR_ABORT;}
28764 0 0 }else if( n+1 < nLen ){
28771 0 0 if( rc != SXRET_OK ){ return SXERR_ABORT;}
28787 0 0 if( pSet ){
28788 0 0 if ( SySetElemSize(pSet) != sizeof(SyToken) ){
28820 0 0 if( pStream->zText >= pStream->zEnd ){
28827 0 0 if( rc != SXRET_OK && rc != SXERR_CONTINUE ){
28829 0 0 if( rc == SXERR_ABORT ){
28834 0 0 if( rc == SXERR_CONTINUE ){
28837 0 0 }else if( pLex->pTokenSet ){
28840 0 0 if( rc != SXRET_OK ){
28844 0 0 if( zCur >= pStream->zText ){
28849 0 0 if( xSort && pLex->pTokenSet ){
0 0 if( xSort && pLex->pTokenSet ){
28852 0 0 if( xCmp == 0 ){
28890 0 0 if( zCur >= zEnd ){
28891 0 0 if( zCur != zIn ){
28897 0 0 if( SAFE_HTTP(c) ){
0 0 if( SAFE_HTTP(c) ){
28900 0 0 if( zCur != zIn && SXRET_OK != (rc = xConsumer(zIn, (sxu32)(zCur-zIn), pUserData))){
0 0 if( zCur != zIn && SXRET_OK != (rc = xConsumer(zIn, (sxu32)(zCur-zIn), pUserData))){
28903 0 0 if( c == ' ' ){
28911 0 0 if( SXRET_OK != rc ){
28916 0 0 return rc == SXRET_OK ? SXRET_OK : SXERR_ABORT;
28921 0 0 if( c >= 'a' && c <= 'f' ){
28925 0 0 if( c >= '0' && c <= '9' ){
28929 0 0 if( c >= 'A' && c <= 'F') {
28963 0 0 while(zCur < zEnd && zCur[0] != '%' && zCur[0] != '+' ){
0 0 while(zCur < zEnd && zCur[0] != '%' && zCur[0] != '+' ){
0 0 while(zCur < zEnd && zCur[0] != '%' && zCur[0] != '+' ){
28966 0 0 if( zCur != zIn ){
28969 0 0 if( rc != SXRET_OK ){
28974 0 0 if( zCur >= zEnd ){
28980 0 0 if( zCur[0] == '+' ){
28984 0 0 if( &zCur[2] >= zEnd ){
28990 0 0 if( c < 0x000C0 ){
28994 0 0 while( zCur[0] == '%' ){
28996 0 0 if( (d&0xC0) != 0x80 ){
29002 0 0 if( bUTF8 == FALSE ){
29005 0 0 SX_WRITE_UTF8(zOutPtr, c);
0 0 SX_WRITE_UTF8(zOutPtr, c);
0 0 SX_WRITE_UTF8(zOutPtr, c);
29012 0 0 if( rc != SXRET_OK ){
29109 0 0 if( (*cnt)++ >= 16 ){
0 0 if( (*cnt)++ >= 16 ){
0 0 if( (*cnt)++ >= 16 ){
29187 1 1 for(; (c=(*zFormat))!=0; ++zFormat){
29188 1 0 if( c!='%' ){
29192 48 1 while( (c=(*++zFormat))!='%' && c!=0 ) amt++;
48 0 while( (c=(*++zFormat))!='%' && c!=0 ) amt++;
29194 1 0 if( rc != SXRET_OK ){
29197 0 1 if( c==0 ){
29201 0 1 if( (c=(*++zFormat))==0 ){
29204 0 0 if( rc != SXRET_OK ){
29221 0 1 }while( c==0 && (c=(*++zFormat))!=0 );
0 0 }while( c==0 && (c=(*++zFormat))!=0 );
29224 0 1 if( c=='*' ){
29226 0 0 if( width<0 ){
29232 0 1 while( c>='0' && c<='9' ){
29242 0 1 if( c=='.' ){
29245 0 0 if( c=='*' ){
29250 0 0 while( c>='0' && c<='9' ){
29258 0 1 if( c=='l' || c == 'q' /* BSD quad (expect a 64-bit integer) */ ){
29259 0 0 flag_long = (c == 'q') ? 2 : 1;
29261 0 0 if( c == 'l' ){
29269 2 0 for(idx=0; idx< (int)SX_ARRAYSIZE(aFmt); idx++){
29270 1 1 if( c==aFmt[idx].fmttype ){
29298 0 0 if( flag_long > 0 ){
29299 0 0 if( flag_long > 1 ){
29306 0 0 if( infop->flags & SXFLAG_SIGNED ){
29317 0 0 if( longvalue==0 ) flag_alternateform = 0;
29323 0 0 if( infop->flags & SXFLAG_SIGNED ){
29324 0 0 if( longvalue<0 ){
29327 0 0 if( longvalue < 0 ){
29332 0 0 }else if( flag_plussign ) prefix = '+';
29333 0 0 else if( flag_blanksign ) prefix = ' ';
29336 0 0 if( longvalue<0 ){
29339 0 0 if( longvalue < 0 ){
29346 0 0 if( flag_zeropad && precision
29358 0 0 }while( longvalue>0 );
29361 0 0 for(idx=precision-length; idx>0; idx--){
29364 0 0 if( prefix ) *(--bufpt) = prefix; /* Add sign */
29365 0 0 if( flag_alternateform && infop->prefix ){ /* Add "0" or "0x" */
0 0 if( flag_alternateform && infop->prefix ){ /* Add "0" or "0x" */
29368 0 0 if( *bufpt!=pre[0] ){
29369 0 0 for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x;
29379 0 0 if( precision<0 ) precision = 6; /* Set default precision */
29381 0 0 if( realvalue<0.0 ){
29385 0 0 if( flag_plussign ) prefix = '+';
29386 0 0 else if( flag_blanksign ) prefix = ' ';
29389 0 0 if( infop->type==SXFMT_GENERIC && precision>0 ) precision--;
0 0 if( infop->type==SXFMT_GENERIC && precision>0 ) precision--;
29396 0 0 for(idx=precision, rounder=0.5; idx>0; idx--, rounder*=0.1);
29398 0 0 if( infop->type==SXFMT_FLOAT ) realvalue += rounder;
29401 0 0 if( realvalue>0.0 ){
29402 0 0 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; }
0 0 while( realvalue>=1e8 && exp<=350 ){ realvalue *= 1e-8; exp+=8; }
29403 0 0 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; }
0 0 while( realvalue>=10.0 && exp<=350 ){ realvalue *= 0.1; exp++; }
29404 0 0 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; }
0 0 while( realvalue<1e-8 && exp>=-350 ){ realvalue *= 1e8; exp-=8; }
29405 0 0 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; }
0 0 while( realvalue<1.0 && exp>=-350 ){ realvalue *= 10.0; exp--; }
29406 0 0 if( exp>350 || exp<-350 ){
29418 0 0 if( xtype!=SXFMT_FLOAT ){
29420 0 0 if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; }
29422 0 0 if( xtype==SXFMT_GENERIC ){
29424 0 0 if( exp<-4 || exp>precision ){
29438 0 0 if( xtype==SXFMT_FLOAT && exp+precision
0 0 if( xtype==SXFMT_FLOAT && exp+precision
29440 0 0 if( prefix ) *(bufpt++) = prefix; /* Sign */
29441 0 0 if( exp<0 ) *(bufpt++) = '0'; /* Digits before "." */
29442 0 0 else for(; exp>=0; exp--) *(bufpt++) = (char)getdigit(&realvalue, &nsd);
29443 0 0 if( flag_dp ) *(bufpt++) = '.'; /* The decimal point */
29444 0 0 for(exp++; exp<0 && precision>0; precision--, exp++){
29447 0 0 while( (precision--)>0 ) *(bufpt++) = (char)getdigit(&realvalue, &nsd);
29449 0 0 if( flag_rtz && flag_dp ){ /* Remove trailing zeros and "." */
29450 0 0 while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0;
0 0 while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0;
29451 0 0 if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0;
0 0 if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0;
29456 0 0 if( prefix ) *(bufpt++) = prefix; /* Sign */
29458 0 0 if( flag_dp ) *(bufpt++) = '.'; /* Decimal point */
29459 0 0 while( (precision--)>0 ) *(bufpt++) = (char)getdigit(&realvalue, &nsd);
29461 0 0 if( flag_rtz && flag_dp ){ /* Remove tail zeros */
29462 0 0 while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0;
0 0 while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0;
29463 0 0 if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0;
0 0 if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0;
29466 0 0 if( exp || flag_exp ){
29468 0 0 if( exp<0 ){ *(bufpt++) = '-'; exp = -exp; } /* sign of exp */
29470 0 0 if( exp>=100 ){
29486 0 0 if( flag_zeropad && !flag_leftjustify && length < width){
0 0 if( flag_zeropad && !flag_leftjustify && length < width){
29489 0 0 for(i=width; i>=nPad; i--){
29493 0 0 while( nPad-- ) bufpt[i++] = '0';
29517 0 0 if( precision>=0 ){
29518 0 0 for(idx=1; idx
29527 1 0 if( bufpt==0 ){
29533 1 0 if( precision < 0 ){
29537 0 1 if( precision>=0 && precision
29542 0 0 if( pStr == 0 || pStr->zString == 0 ){
0 0 if( pStr == 0 || pStr->zString == 0 ){
29555 0 0 if( c==0 ) zFormat--;
29563 1 0 if( !flag_leftjustify ){
29566 0 1 if( nspace>0 ){
29567 0 0 while( nspace>=etSPACESIZE ){
29569 0 0 if( rc != SXRET_OK ){
29574 0 0 if( nspace>0 ){
29576 0 0 if( rc != SXRET_OK ){
29582 1 0 if( length>0 ){
29584 1 0 if( rc != SXRET_OK ){
29588 0 1 if( flag_leftjustify ){
29591 0 0 if( nspace>0 ){
29592 0 0 while( nspace>=etSPACESIZE ){
29594 0 0 if( rc != SXRET_OK ){
29599 0 0 if( nspace>0 ){
29601 0 0 if( rc != SXRET_OK ){
29638 1 0 if( pOutLen ){
29658 1 0 if( pOutLen ){
29858 0 0 if( pBucketEntry == 0 ){
29861 0 0 if( nHash == pBucketEntry->nHash && pArch->xCmp(&sEntry, &pBucketEntry->sFileName) == 0 ){
0 0 if( nHash == pBucketEntry->nHash && pArch->xCmp(&sEntry, &pBucketEntry->sFileName) == 0 ){
29862 0 0 if( ppEntry ){
29888 0 0 if( apNew == 0 ){
29893 0 0 for( n = 0 , pEntry = pArch->pList ; n < pArch->nLoaded ; n++ , pEntry = pEntry->pNext ){
29895 0 0 ArchiveHashBucketInstall(apNew, pEntry->nHash & (nNewSize - 1), pEntry);
29906 0 0 if( pArch->nLoaded > pArch->nSize * 3 ){
29911 0 0 ArchiveHashBucketInstall(pArch->apHash, pEntry->nHash & (pArch->nSize - 1), pEntry);
29912 0 0 MACRO_LD_PUSH(pArch->pList, pEntry);
29927 0 0 if( /* rc != SXRET_OK || */nMagic != SXZIP_END_CENTRAL_MAGIC ){
29932 0 0 if( /* rc != SXRET_OK || */ pArch->nEntry > SXI16_HIGH /* SXU16_HIGH */ ){
29937 0 0 if( /*rc != SXRET_OK ||*/ pArch->nCentralSize > SXI32_HIGH ){
29962 0 0 if( /* rc != SXRET_OK || */ nMagic != SXZIP_CENTRAL_MAGIC ){
29977 0 0 if( pName->nByte > SXI16_HIGH /* SXU16_HIGH */){
29997 0 0 if( pEntry->nByte > SXI32_HIGH ){
30006 0 0 if( pEntry->nByteCompr > SXI32_HIGH ){
30012 0 0 if( pEntry->nOfft > SXI32_HIGH ){
30029 0 0 if( SyMemcmp(zHdr, "PK\003\004", sizeof(sxu32)) != 0 ){
30054 0 0 if( &zCentral[nOfft] >= zEnd ){
30059 0 0 if( pEntry == 0 ){
30066 0 0 if( rc == SXRET_OK ){
30070 0 0 if(rc != SXRET_OK ){
30074 0 0 if( SXRET_OK == SyBlobSearch((const void *)&zCentral[nOfft + nIncr], (sxu32)(zEnd - &zCentral[nOfft + nIncr]),
30083 0 0 if( pName->nByte <= 0 || ( pEntry->nByte <= 0 && pName->zString[pName->nByte - 1] != '/') ){
0 0 if( pName->nByte <= 0 || ( pEntry->nByte <= 0 && pName->zString[pName->nByte - 1] != '/') ){
0 0 if( pName->nByte <= 0 || ( pEntry->nByte <= 0 && pName->zString[pName->nByte - 1] != '/') ){
30090 0 0 if( zName == 0 ){
30098 0 0 if( rc == SXRET_OK ){
30111 0 0 return pArch->nLoaded > 0 ? SXRET_OK : SXERR_EMPTY;
30126 0 0 if( nLen < SXZIP_LOCAL_HDRSZ + SXZIP_CENTRAL_HDRSZ + SXZIP_END_CENTRAL_HDRSZ ){
30132 0 0 while( ((sxu32)((unsigned char *)&zBuf[nLen] - zEnd) < (SXZIP_END_CENTRAL_HDRSZ + SXI16_HIGH)) &&
30133 0 0 zEnd > (unsigned char *)zBuf && SyMemcmp(zEnd, "PK\005\006", sizeof(sxu32)) != 0 ){
0 0 zEnd > (unsigned char *)zBuf && SyMemcmp(zEnd, "PK\005\006", sizeof(sxu32)) != 0 ){
30138 0 0 if( rc != SXRET_OK ){
30144 0 0 if( zCentral <= (unsigned char *)zBuf || SyMemcmp(zCentral, "PK\001\002", sizeof(sxu32)) != 0 ){
0 0 if( zCentral <= (unsigned char *)zBuf || SyMemcmp(zCentral, "PK\001\002", sizeof(sxu32)) != 0 ){
30145 0 0 if( pArch->nCentralOfft >= nLen ){
30150 0 0 if( SyMemcmp(zCentral, "PK\001\002", sizeof(sxu32)) != 0 ){
30165 0 0 rc = SyStringCmp(pStr1, pStr2, SyMemcmp);
30179 0 0 if( apHash == 0){
30184 0 0 pArch->xHash = xHash ? xHash : SyBinHash;
30185 0 0 pArch->xCmp = xCmp ? xCmp : ArchiveHashCmp;
30198 0 0 if( pEntry->nDup == 0 ){
30218 0 0 if( pArch->nLoaded < 1 ){
30222 0 0 MACRO_LD_REMOVE(pArch->pList, pEntry);
0 0 MACRO_LD_REMOVE(pArch->pList, pEntry);
0 0 MACRO_LD_REMOVE(pArch->pList, pEntry);
30240 0 0 if( pArch->pCursor == 0 ){
30293 5 0 if (fd >= 0 ){
30294 5 0 if( read(fd, zBuf, nLen) > 0 ){
5 0 if( read(fd, zBuf, nLen) > 0 ){
30303 0 0 if( &zBuf[nLen] - &zBuf[sizeof(pid_t)] >= (int)sizeof(struct timeval) ){
30318 0 5 if( pCtx->nMagic == SXPRNG_MAGIC ){
30326 5 0 if( xSeed == 0 ){
30330 5 0 if( rc != SXRET_OK ){
30334 1280 5 for(i=0; i < SX_ARRAYSIZE(pCtx->s) ; i++){
30337 1280 5 for(i=0; i < sizeof(zSeed) ; i++){
30372 5 0 if(pCtx->nMagic != SXPRNG_MAGIC ){
30376 5 5 if( zBuf >= zEnd ){break;} zBuf[0] = randomByte(pCtx); zBuf++;
30377 5 0 if( zBuf >= zEnd ){break;} zBuf[0] = randomByte(pCtx); zBuf++;
30378 5 0 if( zBuf >= zEnd ){break;} zBuf[0] = randomByte(pCtx); zBuf++;
30379 5 0 if( zBuf >= zEnd ){break;} zBuf[0] = randomByte(pCtx); zBuf++;
30931 0 0 if( zIn >= zEnd ){
30936 0 0 if( rc != SXRET_OK ){
30953 0 0 *uNB = buf[3] + (buf[2] << 8) + (buf[1] << 16) + (buf[0] << 24);
30962 0 0 *uNB = buf[1] + (buf[0] << 8);
31084 0 0 if( r<(jx9_real)minInt ){
31086 0 0 }else if( r>(jx9_real)maxInt ){
0 0 }else if( r>(jx9_real)maxInt ){
31104 0 0 if( pVal->nByte <= 0 ){
31107 0 0 if( pVal->zString[0] == '0' ){
31109 0 0 if( pVal->nByte == sizeof(char) ){
31113 0 0 if( c == 'x' || c == 'X' ){
31116 0 0 }else if( c == 'b' || c == 'B' ){
31153 0 0 if (iFlags & MEMOBJ_REAL ){
31155 0 0 }else if( iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
31157 0 0 }else if (iFlags & MEMOBJ_STRING) {
31159 0 0 }else if( iFlags & MEMOBJ_NULL ){
31161 0 0 }else if( iFlags & MEMOBJ_HASHMAP ){
31167 0 0 }else if(iFlags & MEMOBJ_RES ){
31187 0 0 if( iFlags & MEMOBJ_REAL ){
31189 0 0 }else if (iFlags & (MEMOBJ_INT|MEMOBJ_BOOL) ){
31191 0 0 }else if (iFlags & MEMOBJ_STRING){
31199 0 0 if( SyBlobLength(&pObj->sBlob) > 0 ){
31208 0 0 }else if( iFlags & MEMOBJ_NULL ){
31214 0 0 }else if( iFlags & MEMOBJ_HASHMAP ){
31220 0 0 }else if(iFlags & MEMOBJ_RES ){
31221 0 0 return (jx9_real)(pObj->x.pOther != 0);
31232 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
31234 0 0 }else if( pObj->iFlags & MEMOBJ_INT ){
31237 0 0 }else if( pObj->iFlags & MEMOBJ_BOOL ){
31238 0 0 if( pObj->x.iVal ){
31243 0 0 }else if( pObj->iFlags & MEMOBJ_HASHMAP ){
31247 0 0 }else if(pObj->iFlags & MEMOBJ_RES ){
31268 0 0 if (iFlags & MEMOBJ_REAL ){
31274 0 0 }else if( iFlags & MEMOBJ_INT ){
31276 0 0 }else if (iFlags & MEMOBJ_STRING) {
31279 0 0 if( sString.nByte == 0 ){
31282 0 0 }else if( (sString.nByte == sizeof("true") - 1 && SyStrnicmp(sString.zString, "true", sizeof("true")-1) == 0) ||
0 0 }else if( (sString.nByte == sizeof("true") - 1 && SyStrnicmp(sString.zString, "true", sizeof("true")-1) == 0) ||
0 0 }else if( (sString.nByte == sizeof("true") - 1 && SyStrnicmp(sString.zString, "true", sizeof("true")-1) == 0) ||
31283 0 0 (sString.nByte == sizeof("on") - 1 && SyStrnicmp(sString.zString, "on", sizeof("on")-1) == 0) ||
0 0 (sString.nByte == sizeof("on") - 1 && SyStrnicmp(sString.zString, "on", sizeof("on")-1) == 0) ||
31284 0 0 (sString.nByte == sizeof("yes") - 1 && SyStrnicmp(sString.zString, "yes", sizeof("yes")-1) == 0) ){
31286 0 0 }else if( sString.nByte == sizeof("false") - 1 && SyStrnicmp(sString.zString, "false", sizeof("false")-1) == 0 ){
0 0 }else if( sString.nByte == sizeof("false") - 1 && SyStrnicmp(sString.zString, "false", sizeof("false")-1) == 0 ){
31292 0 0 while( zIn < zEnd && zIn[0] == '0' ){
0 0 while( zIn < zEnd && zIn[0] == '0' ){
31297 0 0 }else if( iFlags & MEMOBJ_NULL ){
31299 0 0 }else if( iFlags & MEMOBJ_HASHMAP ){
31304 0 0 }else if(iFlags & MEMOBJ_RES ){
31313 0 0 static sxi32 MemObjTryIntger(jx9_value *pObj)
31328 0 0 if( pObj->x.rVal ==(jx9_real)iVal && iVal>SMALLEST_INT64 && iVal
0 0 if( pObj->x.rVal ==(jx9_real)iVal && iVal>SMALLEST_INT64 && iVal
31339 0 0 if( (pObj->iFlags & MEMOBJ_INT) == 0 ){
31354 0 0 if((pObj->iFlags & MEMOBJ_REAL) == 0 ){
31368 0 0 if( (pObj->iFlags & MEMOBJ_BOOL) == 0 ){
31383 0 0 if( (pObj->iFlags & MEMOBJ_STRING) == 0 ){
31408 0 0 if( (pObj->iFlags & MEMOBJ_HASHMAP) == 0 ){
31412 0 0 if( pMap == 0 ){
31415 0 0 if( (pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_RES)) == 0 ){
31445 0 0 if( iFlags & MEMOBJ_STRING ){
31447 0 0 }else if( iFlags & MEMOBJ_INT ){
31449 0 0 }else if( iFlags & MEMOBJ_REAL ){
31451 0 0 }else if( iFlags & MEMOBJ_BOOL ){
31453 0 0 }else if( iFlags & MEMOBJ_HASHMAP ){
31466 0 0 if( pObj->iFlags & ( MEMOBJ_BOOL|MEMOBJ_INT|MEMOBJ_REAL) ){
31468 0 0 }else if( pObj->iFlags & (MEMOBJ_NULL|MEMOBJ_HASHMAP|MEMOBJ_RES) ){
31470 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
31474 0 0 if( sStr.nByte <= 0 ){
31499 0 0 if( pObj->iFlags & MEMOBJ_NULL ){
31501 0 0 }else if( pObj->iFlags & MEMOBJ_INT ){
31503 0 0 }else if( pObj->iFlags & MEMOBJ_REAL ){
31505 0 0 }else if( pObj->iFlags & MEMOBJ_BOOL ){
31507 0 0 }else if( pObj->iFlags & MEMOBJ_STRING ){
31508 0 0 if( SyBlobLength(&pObj->sBlob) <= 0 ){
31514 0 0 while( zIn < zEnd ){
31515 0 0 if( zIn[0] != '0' ){
31522 0 0 }else if( pObj->iFlags & MEMOBJ_HASHMAP ){
31525 0 0 }else if ( pObj->iFlags & (MEMOBJ_RES) ){
31541 0 0 if( pObj->iFlags & (MEMOBJ_INT|MEMOBJ_REAL|MEMOBJ_BOOL|MEMOBJ_NULL) ){
31542 0 0 if( pObj->iFlags & (MEMOBJ_BOOL|MEMOBJ_NULL) ){
31543 0 0 if( pObj->iFlags & MEMOBJ_NULL ){
31551 0 0 if( pObj->iFlags & MEMOBJ_STRING ){
31557 0 0 if( sString.nByte > 0 ){
31560 0 0 if( bReal ){
31563 0 0 if( rc != SXRET_OK ){
31573 0 0 }else if(pObj->iFlags & (MEMOBJ_HASHMAP|MEMOBJ_RES)){
31587 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
31679 0 0 if( pVal ){
31696 0 0 if( (pObj->iFlags & MEMOBJ_STRING) == 0 ){
31732 0 0 if( pSrc->iFlags & MEMOBJ_HASHMAP ){
31736 0 0 if( pDest->iFlags & MEMOBJ_HASHMAP ){
31741 0 0 if( SyBlobLength(&pSrc->sBlob) > 0 ){
31745 0 0 if( SyBlobLength(&pDest->sBlob) > 0 ){
31749 0 0 if( pMap ){
31762 0 0 if( pSrc->iFlags & MEMOBJ_HASHMAP ){
31766 0 0 if( SyBlobLength(&pDest->sBlob) > 0 ){
31769 0 0 if( SyBlobLength(&pSrc->sBlob) > 0 ){
31779 0 0 if( (pObj->iFlags & MEMOBJ_NULL) == 0 ){
31780 0 0 if( pObj->iFlags & MEMOBJ_HASHMAP ){
31847 0 0 if( bStrict ){
31852 0 0 if( iF1 != iF2 ){
31859 0 0 if( iComb & (MEMOBJ_RES|MEMOBJ_BOOL) ){
31861 0 0 if( (pObj1->iFlags & MEMOBJ_BOOL) == 0 ){
31864 0 0 if( (pObj2->iFlags & MEMOBJ_BOOL) == 0 ){
31868 0 0 }else if( iComb & MEMOBJ_NULL ){
31869 0 0 if( (pObj1->iFlags & MEMOBJ_NULL) == 0 ){
31872 0 0 if( (pObj2->iFlags & MEMOBJ_NULL) == 0 ){
31875 0 0 }else if ( iComb & MEMOBJ_HASHMAP ){
31877 0 0 if( (pObj1->iFlags & MEMOBJ_HASHMAP) == 0 ){
31881 0 0 if( (pObj2->iFlags & MEMOBJ_HASHMAP) == 0 ){
31888 0 0 }else if ( iComb & MEMOBJ_STRING ){
31891 0 0 if( (pObj1->iFlags&MEMOBJ_STRING) == 0 ){
31894 0 0 if( (pObj2->iFlags&MEMOBJ_STRING) == 0 ){
31904 0 0 if( rc == 0 ){
31905 0 0 if( s1.nByte != s2.nByte ){
31906 0 0 rc = s1.nByte < s2.nByte ? -1 : 1;
31910 0 0 }else if( iComb & (MEMOBJ_INT|MEMOBJ_REAL) ){
31912 0 0 if( (pObj1->iFlags & (MEMOBJ_INT|MEMOBJ_REAL)) == 0 ){
31915 0 0 if( (pObj2->iFlags & (MEMOBJ_INT|MEMOBJ_REAL)) == 0 ){
31918 0 0 if( (pObj1->iFlags & pObj2->iFlags & MEMOBJ_INT) == 0) {
31921 0 0 if( (pObj1->iFlags & MEMOBJ_REAL) == 0 ){
31925 0 0 if( (pObj2->iFlags & MEMOBJ_REAL) == 0 ){
31929 0 0 if( r1 > r2 ){
31931 0 0 }else if( r1 < r2 ){
31937 0 0 if( pObj1->x.iVal > pObj2->x.iVal ){
31939 0 0 }else if( pObj1->x.iVal < pObj2->x.iVal ){
31963 0 0 if( ((pObj1->iFlags|pObj2->iFlags) & MEMOBJ_HASHMAP) == 0 ){
31967 0 0 if( (pObj1->iFlags|pObj2->iFlags) & MEMOBJ_REAL ){
31970 0 0 if( (pObj1->iFlags & MEMOBJ_REAL) == 0 ){
31973 0 0 if( (pObj2->iFlags & MEMOBJ_REAL) == 0 ){
31994 0 0 if( bAddStore ){
31997 0 0 if( (pObj1->iFlags & MEMOBJ_HASHMAP) == 0 ){
32000 0 0 if( rc != SXRET_OK ){
32010 0 0 if( pMap == 0){
32015 0 0 if( !bAddStore ){
32016 0 0 if(pObj1->iFlags & MEMOBJ_HASHMAP ){
32020 0 0 if((pObj1->iFlags & MEMOBJ_NULL) == 0 ){
32027 0 0 if(pObj2->iFlags & MEMOBJ_HASHMAP ){
32030 0 0 if((pObj2->iFlags & MEMOBJ_NULL) == 0 ){
32036 0 0 if( pObj1->iFlags & MEMOBJ_STRING ){
32052 0 0 if( pVal->iFlags & MEMOBJ_NULL ){
32054 0 0 }else if( pVal->iFlags & MEMOBJ_INT ){
32056 0 0 }else if( pVal->iFlags & MEMOBJ_REAL ){
32058 0 0 }else if( pVal->iFlags & MEMOBJ_STRING ){
32060 0 0 }else if( pVal->iFlags & MEMOBJ_BOOL ){
32062 0 0 }else if( pVal->iFlags & MEMOBJ_HASHMAP ){
32064 0 0 if( pMap->iFlags & HASHMAP_JSON_OBJECT ){
32069 0 0 }else if( pVal->iFlags & MEMOBJ_RES ){
32088 0 0 if((pObj->iFlags & MEMOBJ_NULL) == 0 ){
32090 0 0 if( pObj->iFlags & MEMOBJ_HASHMAP ){
32098 0 0 if((pObj->iFlags & MEMOBJ_STRING) == 0 ){
32103 0 0 if( SyBlobLength(pContents) > 0 ){
32248 0 0 if( n >= SX_ARRAYSIZE(aOpTable) ){
32251 0 0 rc = SyStringCmp(pStr, &aOpTable[n].sOp, SyMemcmp);
32252 0 0 if( rc == 0 ){
32253 0 0 if( aOpTable[n].sOp.nByte != sizeof(char) || (aOpTable[n].iOp != EXPR_OP_UMINUS && aOpTable[n].iOp != EXPR_OP_UPLUS) || pLast == 0 ){
0 0 if( aOpTable[n].sOp.nByte != sizeof(char) || (aOpTable[n].iOp != EXPR_OP_UMINUS && aOpTable[n].iOp != EXPR_OP_UPLUS) || pLast == 0 ){
0 0 if( aOpTable[n].sOp.nByte != sizeof(char) || (aOpTable[n].iOp != EXPR_OP_UMINUS && aOpTable[n].iOp != EXPR_OP_UPLUS) || pLast == 0 ){
32254 0 0 if( aOpTable[n].iOp == EXPR_OP_SUBSCRIPT && (pLast == 0 || (pLast->nType & (JX9_TK_ID|JX9_TK_CSB/*]*/|JX9_TK_RPAREN/*)*/)) == 0) ){
0 0 if( aOpTable[n].iOp == EXPR_OP_SUBSCRIPT && (pLast == 0 || (pLast->nType & (JX9_TK_ID|JX9_TK_CSB/*]*/|JX9_TK_RPAREN/*)*/)) == 0) ){
0 0 if( aOpTable[n].iOp == EXPR_OP_SUBSCRIPT && (pLast == 0 || (pLast->nType & (JX9_TK_ID|JX9_TK_CSB/*]*/|JX9_TK_RPAREN/*)*/)) == 0) ){
32262 0 0 if( pLast->nType & (JX9_TK_LPAREN/*'('*/|JX9_TK_OCB/*'{'*/|JX9_TK_OSB/*'['*/|JX9_TK_COLON/*:*/|JX9_TK_COMMA/*, '*/) ){
32266 0 0 if( pLast->nType & JX9_TK_OP ){
32269 0 0 if( pOp->iOp != EXPR_OP_INCR && pOp->iOp != EXPR_OP_DECR ){
32291 0 0 if( pCur >= pEnd ){
32294 0 0 if( pCur->nType & nTokStart ){
32297 0 0 }else if( pCur->nType & nTokEnd ){
32300 0 0 if( iNest <= 0 ){
32321 0 0 if( nKeyID == JX9_TKWRD_PRINT || nKeyID == JX9_TKWRD_EXIT || nKeyID == JX9_TKWRD_DIE
32322 0 0 || nKeyID == JX9_TKWRD_INCLUDE|| nKeyID == JX9_TKWRD_IMPORT ){
0 0 || nKeyID == JX9_TKWRD_INCLUDE|| nKeyID == JX9_TKWRD_IMPORT ){
32337 0 0 if( pCur >= pEnd || (pCur->nType & JX9_TK_SEMI/*';'*/) ){
0 0 if( pCur >= pEnd || (pCur->nType & JX9_TK_SEMI/*';'*/) ){
32341 0 0 while( pCur < pEnd ){
32342 0 0 if( (pCur->nType & (JX9_TK_COMMA/*','*/|JX9_TK_SEMI/*';'*/)) && iNest <= 0){
0 0 if( (pCur->nType & (JX9_TK_COMMA/*','*/|JX9_TK_SEMI/*';'*/)) && iNest <= 0){
32345 0 0 if( pCur->nType & (JX9_TK_LPAREN/*'('*/|JX9_TK_OSB/*'['*/|JX9_TK_OCB/*'{'*/) ){
32347 0 0 }else if( pCur->nType & (JX9_TK_RPAREN/*')'*/|JX9_TK_CSB/*']'*/|JX9_TK_CCB/*'}*/) ){
32396 0 0 if( pIn < pEnd && (pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) ){
0 0 if( pIn < pEnd && (pIn->nType & (JX9_TK_ID|JX9_TK_KEYWORD)) ){
32399 0 0 if( pIn >= pEnd || (pIn->nType & JX9_TK_LPAREN) == 0 ){
0 0 if( pIn >= pEnd || (pIn->nType & JX9_TK_LPAREN) == 0 ){
32402 0 0 if( rc != SXERR_ABORT ){
32409 0 0 if( pIn >= pEnd || &pIn[1] >= pEnd ){
0 0 if( pIn >= pEnd || &pIn[1] >= pEnd ){
32412 0 0 if( rc != SXERR_ABORT ){
32418 0 0 if( pIn->nType & JX9_TK_OCB /*'{'*/ ){
32421 0 0 if( pIn < pEnd ){
32427 0 0 if( rc == SXERR_ABORT ){
32448 0 0 if( nNode > 0 && apNode[0]->pOp && (apNode[0]->pOp->iOp == EXPR_OP_ADD || apNode[0]->pOp->iOp == EXPR_OP_SUB) ){
0 0 if( nNode > 0 && apNode[0]->pOp && (apNode[0]->pOp->iOp == EXPR_OP_ADD || apNode[0]->pOp->iOp == EXPR_OP_SUB) ){
0 0 if( nNode > 0 && apNode[0]->pOp && (apNode[0]->pOp->iOp == EXPR_OP_ADD || apNode[0]->pOp->iOp == EXPR_OP_SUB) ){
32454 0 0 for( i = 0 ; i < nNode ; ++i ){
32455 0 0 if( apNode[i]->pStart->nType & JX9_TK_LPAREN /*'('*/){
32456 0 0 if( i > 0 && ( apNode[i-1]->xCode == jx9CompileVariable || apNode[i-1]->xCode == jx9CompileLiteral ||
0 0 if( i > 0 && ( apNode[i-1]->xCode == jx9CompileVariable || apNode[i-1]->xCode == jx9CompileLiteral ||
0 0 if( i > 0 && ( apNode[i-1]->xCode == jx9CompileVariable || apNode[i-1]->xCode == jx9CompileLiteral ||
32457 0 0 (apNode[i - 1]->pStart->nType & (JX9_TK_ID|JX9_TK_KEYWORD|JX9_TK_SSTR|JX9_TK_DSTR|JX9_TK_RPAREN/*')'*/|JX9_TK_CSB/*]*/))) ){
32459 0 0 if( (apNode[i - 1]->pStart->nType & JX9_TK_OP) == 0 ){
32469 0 0 }else if( apNode[i]->pStart->nType & JX9_TK_RPAREN/*')*/){
32470 0 0 if( iParen <= 0 ){
32472 0 0 if( rc != SXERR_ABORT ){
32478 0 0 }else if( apNode[i]->pStart->nType & JX9_TK_OSB /*'['*/ && apNode[i]->xCode == 0 ){
0 0 }else if( apNode[i]->pStart->nType & JX9_TK_OSB /*'['*/ && apNode[i]->xCode == 0 ){
32480 0 0 }else if (apNode[i]->pStart->nType & JX9_TK_CSB /*']'*/){
32481 0 0 if( iSquare <= 0 ){
32483 0 0 if( rc != SXERR_ABORT ){
32489 0 0 }else if( apNode[i]->pStart->nType & JX9_TK_OCB /*'{'*/ && apNode[i]->xCode == 0 ){
0 0 }else if( apNode[i]->pStart->nType & JX9_TK_OCB /*'{'*/ && apNode[i]->xCode == 0 ){
32491 0 0 }else if (apNode[i]->pStart->nType & JX9_TK_CCB /*'}'*/){
32492 0 0 if( iBraces <= 0 ){
32494 0 0 if( rc != SXERR_ABORT ){
32500 0 0 }else if( apNode[i]->pStart->nType & JX9_TK_OP ){
32502 0 0 if( i > 0 && (pOp->iOp == EXPR_OP_UMINUS || pOp->iOp == EXPR_OP_UPLUS)){
0 0 if( i > 0 && (pOp->iOp == EXPR_OP_UMINUS || pOp->iOp == EXPR_OP_UPLUS)){
32503 0 0 if( apNode[i-1]->xCode == jx9CompileVariable || apNode[i-1]->xCode == jx9CompileLiteral ){
0 0 if( apNode[i-1]->xCode == jx9CompileVariable || apNode[i-1]->xCode == jx9CompileLiteral ){
32506 0 0 if( pOp->iOp == EXPR_OP_UPLUS ){
32513 0 0 while( n < SX_ARRAYSIZE(aOpTable) && aOpTable[n].iOp != iExprOp ){
0 0 while( n < SX_ARRAYSIZE(aOpTable) && aOpTable[n].iOp != iExprOp ){
32524 0 0 if( iParen != 0 || iSquare != 0 || iBraces != 0){
32526 0 0 if( rc != SXERR_ABORT ){
32549 0 0 if( pNode == 0 ){
32561 0 0 if( pCur->nType & JX9_TK_OP ){
32566 0 0 }else if( pCur->nType & JX9_TK_DOLLAR ){
32569 0 0 if( pCur >= pGen->pEnd ){
32572 0 0 if( rc != SXERR_ABORT ){
32580 0 0 }else if( pCur->nType & JX9_TK_OCB /* '{' */ ){
32584 0 0 if( pCur < pGen->pEnd ){
32589 0 0 if( rc != SXERR_ABORT ){
32596 0 0 }else if( pCur->nType & JX9_TK_OSB /* '[' */ && !(pCur->nType & JX9_TK_OP) ){
32600 0 0 if( pCur < pGen->pEnd ){
32605 0 0 if( rc != SXERR_ABORT ){
32612 0 0 }else if( pCur->nType & JX9_TK_KEYWORD ){
32614 0 0 if( nKeyword == JX9_TKWRD_FUNCTION ){
32616 0 0 if( &pCur[1] >= pGen->pEnd ){
32623 0 0 if( rc != SXRET_OK ){
32629 0 0 }else if( jx9IsLangConstruct(nKeyword) && &pCur[1] < pGen->pEnd ){
0 0 }else if( jx9IsLangConstruct(nKeyword) && &pCur[1] < pGen->pEnd ){
32638 0 0 }else if( pCur->nType & (JX9_TK_ID) ){
32643 0 0 if( (pCur->nType & (JX9_TK_LPAREN|JX9_TK_RPAREN|JX9_TK_COMMA|JX9_TK_CSB|JX9_TK_OCB|JX9_TK_CCB|JX9_TK_COLON)) == 0 ){
32646 0 0 if( pNode->xCode == 0 ){
32648 0 0 if( rc != SXERR_ABORT ){
32671 0 0 if( pNode->pLeft ){
32675 0 0 if( pNode->pRight ){
32679 0 0 if( pNode->pCond ){
32683 0 0 if( SySetUsed(&pNode->aNodeArgs) > 0 ){
32688 0 0 for( n = 0 ; n < SySetUsed(&pNode->aNodeArgs) ; ++n ){
32705 0 0 for( n = 0 ; n < SySetUsed(pNodeSet) ; ++n ){
32706 0 0 if( apNode[n] ){
32719 0 0 if( pNode->pOp == 0 ){
32723 0 0 if( iExprOp == EXPR_OP_DOT /*'.' */ ){
32726 0 0 if( iExprOp == EXPR_OP_SUBSCRIPT/*'[]'*/ ){
32727 0 0 if( pNode->pLeft->pOp ) {
32728 0 0 if( pNode->pLeft->pOp->iOp != EXPR_OP_SUBSCRIPT /*'['*/ && pNode->pLeft->pOp->iOp != EXPR_OP_DOT /*'.'*/){
32731 0 0 }else if( pNode->pLeft->xCode != jx9CompileVariable ){
32754 0 0 if( iCur >= nToken ){
32760 0 0 while( iCur < nToken ){
32761 0 0 if( apNode[iCur] ){
32762 0 0 if( (apNode[iCur]->pStart->nType & JX9_TK_COMMA) && apNode[iCur]->pLeft == 0 && iNest <= 0 ){
0 0 if( (apNode[iCur]->pStart->nType & JX9_TK_COMMA) && apNode[iCur]->pLeft == 0 && iNest <= 0 ){
0 0 if( (apNode[iCur]->pStart->nType & JX9_TK_COMMA) && apNode[iCur]->pLeft == 0 && iNest <= 0 ){
32764 0 0 }else if( apNode[iCur]->pStart->nType & (JX9_TK_LPAREN|JX9_TK_OSB|JX9_TK_OCB) ){
32766 0 0 }else if( apNode[iCur]->pStart->nType & (JX9_TK_RPAREN|JX9_TK_CCB|JX9_TK_CSB) ){
32772 0 0 if( iCur > iNode ){
32774 0 0 if( apNode[iNode] ){
32780 0 0 if( rc != SXERR_ABORT ){
32787 0 0 if( rc != SXERR_ABORT ){
32793 0 0 if( iCur < nToken && apNode[iCur] && (apNode[iCur]->pStart->nType & JX9_TK_COMMA) ){
0 0 if( iCur < nToken && apNode[iCur] && (apNode[iCur]->pStart->nType & JX9_TK_COMMA) ){
0 0 if( iCur < nToken && apNode[iCur] && (apNode[iCur]->pStart->nType & JX9_TK_COMMA) ){
32795 0 0 if( iCur >= nToken ){
32798 0 0 if( rc != SXERR_ABORT ){
32818 0 0 if( nToken <= 0 || (nToken == 1 && apNode[0]->xCode) ){
0 0 if( nToken <= 0 || (nToken == 1 && apNode[0]->xCode) ){
0 0 if( nToken <= 0 || (nToken == 1 && apNode[0]->xCode) ){
32823 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
32828 0 0 if( apNode[iCur] == 0 || apNode[iCur]->pStart->nType != JX9_TK_LPAREN ){
0 0 if( apNode[iCur] == 0 || apNode[iCur]->pStart->nType != JX9_TK_LPAREN ){
32835 0 0 while( iCur < nToken ){
32836 0 0 if( apNode[iCur] ){
32837 0 0 if( apNode[iCur]->pStart->nType & JX9_TK_RPAREN /* ')' */){
32840 0 0 if( iNest <= 0 ){
32843 0 0 }else if( apNode[iCur]->pStart->nType & JX9_TK_LPAREN /* '(' */ ){
32850 0 0 if( iCur - iLeft > 1 ){
32853 0 0 if( rc != SXRET_OK ){
32865 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
32866 0 0 if( apNode[iCur] == 0 ){
32870 0 0 if( pNode->pOp && pNode->pOp->iPrec == 2 && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 2 && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 2 && pNode->pLeft == 0 ){
32871 0 0 if( pNode->pOp->iOp == EXPR_OP_FUNC_CALL ){
32875 0 0 while( nFuncTok + iCur < nToken ){
32876 0 0 if( apNode[nFuncTok+iCur] ){
32877 0 0 if( apNode[nFuncTok+iCur]->pStart->nType & JX9_TK_LPAREN /*'('*/ ){
32879 0 0 }else if ( apNode[nFuncTok+iCur]->pStart->nType & JX9_TK_RPAREN /*')'*/){
32881 0 0 if( iPtr <= 0 ){
32888 0 0 if( nFuncTok + iCur >= nToken ){
32891 0 0 if( rc != SXERR_ABORT ){
32896 0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) /*|| ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2)*/ ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) /*|| ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2)*/ ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) /*|| ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2)*/ ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) /*|| ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2)*/ ){
32899 0 0 if( rc != SXERR_ABORT ){
32904 0 0 if( nFuncTok > 1 ){
32907 0 0 if( rc != SXRET_OK ){
32914 0 0 for( iPtr = 1; iPtr <= nFuncTok ; iPtr++ ){
32917 0 0 }else if (pNode->pOp->iOp == EXPR_OP_SUBSCRIPT ){
32921 0 0 if( iLeft >= 0 && (apNode[iLeft]->xCode == jx9CompileVariable || (apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* postfix */) ) ){
0 0 if( iLeft >= 0 && (apNode[iLeft]->xCode == jx9CompileVariable || (apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* postfix */) ) ){
0 0 if( iLeft >= 0 && (apNode[iLeft]->xCode == jx9CompileVariable || (apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* postfix */) ) ){
0 0 if( iLeft >= 0 && (apNode[iLeft]->xCode == jx9CompileVariable || (apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* postfix */) ) ){
32923 0 0 while( iArrTok < nToken ){
32924 0 0 if( apNode[iArrTok] ){
32925 0 0 if( apNode[iArrTok]->pStart->nType & JX9_TK_OSB /*'['*/){
32928 0 0 }else if( apNode[iArrTok]->pStart->nType & JX9_TK_CSB /*']'*/){
32931 0 0 if( iNest <= 0 ){
32938 0 0 if( iArrTok > iCur + 1 ){
32941 0 0 if( rc != SXRET_OK ){
32951 0 0 for( iNest = iCur + 1 ; iNest <= iArrTok ; ++iNest ){
32958 0 0 while( iRight < nToken && apNode[iRight] == 0 ){
0 0 while( iRight < nToken && apNode[iRight] == 0 ){
32961 0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
32964 0 0 if( rc != SXERR_ABORT ){
32971 0 0 if( pNode->pLeft->pOp == 0 && pNode->pLeft->xCode != jx9CompileVariable ){
0 0 if( pNode->pLeft->pOp == 0 && pNode->pLeft->xCode != jx9CompileVariable ){
32975 0 0 if( rc != SXERR_ABORT ){
32988 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
32989 0 0 if( apNode[iCur] == 0 ){
32993 0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
32994 0 0 if( iLeft >= 0 && ((apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* Postfix */)
0 0 if( iLeft >= 0 && ((apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* Postfix */)
0 0 if( iLeft >= 0 && ((apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec == 2 /* Postfix */)
32995 0 0 || apNode[iLeft]->xCode == jx9CompileVariable) ){
33004 0 0 for( iCur = nToken - 1 ; iCur >= 0 ; iCur-- ){
33005 0 0 if( apNode[iCur] == 0 ){
33009 0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 3 && pNode->pLeft == 0){
33010 0 0 if( iLeft < 0 || (apNode[iLeft]->pOp == 0 && apNode[iLeft]->xCode != jx9CompileVariable)
0 0 if( iLeft < 0 || (apNode[iLeft]->pOp == 0 && apNode[iLeft]->xCode != jx9CompileVariable)
0 0 if( iLeft < 0 || (apNode[iLeft]->pOp == 0 && apNode[iLeft]->xCode != jx9CompileVariable)
33011 0 0 || ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2 /* Postfix */) ){
0 0 || ( apNode[iLeft]->pOp && apNode[iLeft]->pOp->iPrec != 2 /* Postfix */) ){
33014 0 0 if( rc != SXERR_ABORT ){
33029 0 0 for( iCur = nToken - 1 ; iCur >= 0 ; iCur-- ){
33030 0 0 if( apNode[iCur] ){
33032 0 0 if( pNode->pOp && pNode->pOp->iPrec == 4 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 4 && pNode->pLeft == 0){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 4 && pNode->pLeft == 0){
33033 0 0 if( iLeft > 0 ){
33037 0 0 if( pNode->pLeft && pNode->pLeft->pOp && pNode->pLeft->pOp->iPrec > 4 ){
0 0 if( pNode->pLeft && pNode->pLeft->pOp && pNode->pLeft->pOp->iPrec > 4 ){
0 0 if( pNode->pLeft && pNode->pLeft->pOp && pNode->pLeft->pOp->iPrec > 4 ){
33038 0 0 if( pNode->pLeft->pLeft == 0 || pNode->pLeft->pRight == 0 ){
0 0 if( pNode->pLeft->pLeft == 0 || pNode->pLeft->pRight == 0 ){
33041 0 0 if( rc != SXERR_ABORT ){
33050 0 0 if( rc != SXERR_ABORT ){
33061 0 0 for( i = 7 ; i < 17 ; i++ ){
33063 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
33064 0 0 if( apNode[iCur] == 0 ){
33068 0 0 if( pNode->pOp && pNode->pOp->iPrec == i && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == i && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == i && pNode->pLeft == 0 ){
33071 0 0 while( iRight < nToken && apNode[iRight] == 0 ){
0 0 while( iRight < nToken && apNode[iRight] == 0 ){
33074 0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
33077 0 0 if( rc != SXERR_ABORT ){
33095 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
33096 0 0 if( apNode[iCur] == 0 ){
33100 0 0 if( pNode->pOp && pNode->pOp->iOp == EXPR_OP_QUESTY && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iOp == EXPR_OP_QUESTY && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iOp == EXPR_OP_QUESTY && pNode->pLeft == 0 ){
33102 0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || !NODE_ISTERM(iLeft) ){
33105 0 0 if( rc != SXERR_ABORT ){
33112 0 0 while( iRight < nToken ){
33113 0 0 if( apNode[iRight] ){
33114 0 0 if( apNode[iRight]->pOp && apNode[iRight]->pOp->iOp == EXPR_OP_QUESTY && apNode[iRight]->pCond == 0){
0 0 if( apNode[iRight]->pOp && apNode[iRight]->pOp->iOp == EXPR_OP_QUESTY && apNode[iRight]->pCond == 0){
0 0 if( apNode[iRight]->pOp && apNode[iRight]->pOp->iOp == EXPR_OP_QUESTY && apNode[iRight]->pCond == 0){
33117 0 0 }else if( apNode[iRight]->pStart->nType & JX9_TK_COLON /*:*/ ){
33120 0 0 if( iNest <= 0 ){
33127 0 0 if( iRight > iCur + 1 ){
33130 0 0 if( rc != SXRET_OK ){
33137 0 0 if( rc != SXERR_ABORT ){
33143 0 0 if( iRight + 1 < nToken ){
33146 0 0 if( rc != SXRET_OK ){
33154 0 0 if( rc != SXERR_ABORT ){
33171 0 0 for( iCur = nToken - 1 ; iCur >= 0 ; iCur--){
33172 0 0 if( apNode[iCur] == 0 ){
33176 0 0 if( pNode->pOp && pNode->pOp->iPrec == 18 && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 18 && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 18 && pNode->pLeft == 0 ){
33179 0 0 while( iLeft >= 0 && apNode[iLeft] == 0 ){
0 0 while( iLeft >= 0 && apNode[iLeft] == 0 ){
33182 0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iLeft < 0 || iRight < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
33185 0 0 if( rc != SXERR_ABORT ){
33190 0 0 if( ExprIsModifiableValue(apNode[iLeft]) == FALSE ){
33191 0 0 if( pNode->pOp->iVmOp != JX9_OP_STORE ){
33195 0 0 if( rc != SXERR_ABORT ){
33210 0 0 for( iCur = 0 ; iCur < nToken ; ++iCur ){
33211 0 0 if( apNode[iCur] == 0 ){
33215 0 0 if( pNode->pOp && pNode->pOp->iPrec == 22 /* ',' */ && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 22 /* ',' */ && pNode->pLeft == 0 ){
0 0 if( pNode->pOp && pNode->pOp->iPrec == 22 /* ',' */ && pNode->pLeft == 0 ){
33218 0 0 while( iRight < nToken && apNode[iRight] == 0 ){
0 0 while( iRight < nToken && apNode[iRight] == 0 ){
33221 0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
0 0 if( iRight >= nToken || iLeft < 0 || !NODE_ISTERM(iRight) || !NODE_ISTERM(iLeft) ){
33224 0 0 if( rc != SXERR_ABORT ){
33237 0 0 for( iCur = 1 ; iCur < nToken ; ++iCur ){
33238 0 0 if( apNode[iCur] ){
33239 0 0 if( (apNode[iCur]->pOp || apNode[iCur]->xCode ) && apNode[0] != 0){
0 0 if( (apNode[iCur]->pOp || apNode[iCur]->xCode ) && apNode[0] != 0){
0 0 if( (apNode[iCur]->pOp || apNode[iCur]->xCode ) && apNode[0] != 0){
33241 0 0 if( rc != SXERR_ABORT ){
33267 0 0 while( pGen->pIn < pGen->pEnd ){
33269 0 0 if( rc != SXRET_OK ){
33275 0 0 if( SySetUsed(pExprNode) < 1 ){
33283 0 0 if( rc != SXRET_OK ){
33292 0 0 if( rc != SXRET_OK ){
33338 0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
33348 0 0 if( zEnd == zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d) ){
0 0 if( zEnd == zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d) ){
33353 0 0 if( (*pLen) == 0 ){
33381 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33388 0 0 if( pVfs == 0 || pVfs->xChdir == 0 ){
0 0 if( pVfs == 0 || pVfs->xChdir == 0 ){
33419 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33426 0 0 if( pVfs == 0 || pVfs->xChroot == 0 ){
0 0 if( pVfs == 0 || pVfs->xChroot == 0 ){
33457 0 0 if( pVfs == 0 || pVfs->xGetcwd == 0 ){
0 0 if( pVfs == 0 || pVfs->xGetcwd == 0 ){
33471 0 0 if( rc != JX9_OK ){
33491 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33498 0 0 if( pVfs == 0 || pVfs->xRmdir == 0 ){
0 0 if( pVfs == 0 || pVfs->xRmdir == 0 ){
33529 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33536 0 0 if( pVfs == 0 || pVfs->xIsdir == 0 ){
0 0 if( pVfs == 0 || pVfs->xIsdir == 0 ){
33575 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33582 0 0 if( pVfs == 0 || pVfs->xMkdir == 0 ){
0 0 if( pVfs == 0 || pVfs->xMkdir == 0 ){
33599 0 0 if( nArg > 1 ){
33601 0 0 if( nArg > 2 ){
33627 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
33634 0 0 if( pVfs == 0 || pVfs->xRename == 0 ){
0 0 if( pVfs == 0 || pVfs->xRename == 0 ){
33665 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33672 0 0 if( pVfs == 0 || pVfs->xRealpath == 0 ){
0 0 if( pVfs == 0 || pVfs->xRealpath == 0 ){
33686 0 0 if( rc != JX9_OK ){
33704 0 0 if( nArg < 1 || !jx9_value_is_int(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_int(apArg[0]) ){
33711 0 0 if( pVfs == 0 || pVfs->xSleep == 0 ){
0 0 if( pVfs == 0 || pVfs->xSleep == 0 ){
33722 0 0 if( nSleep < 0 ){
33729 0 0 if( rc != JX9_OK ){
33751 0 0 if( nArg < 1 || !jx9_value_is_int(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_int(apArg[0]) ){
33757 0 0 if( pVfs == 0 || pVfs->xSleep == 0 ){
0 0 if( pVfs == 0 || pVfs->xSleep == 0 ){
33767 0 0 if( nSleep < 0 ){
33789 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33796 0 0 if( pVfs == 0 || pVfs->xUnlink == 0 ){
0 0 if( pVfs == 0 || pVfs->xUnlink == 0 ){
33830 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
33837 0 0 if( pVfs == 0 || pVfs->xChmod == 0 ){
0 0 if( pVfs == 0 || pVfs->xChmod == 0 ){
33872 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
33879 0 0 if( pVfs == 0 || pVfs->xChown == 0 ){
0 0 if( pVfs == 0 || pVfs->xChown == 0 ){
33914 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
33921 0 0 if( pVfs == 0 || pVfs->xChgrp == 0 ){
0 0 if( pVfs == 0 || pVfs->xChgrp == 0 ){
33954 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33961 0 0 if( pVfs == 0 || pVfs->xFreeSpace == 0 ){
0 0 if( pVfs == 0 || pVfs->xFreeSpace == 0 ){
33992 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
33999 0 0 if( pVfs == 0 || pVfs->xTotalSpace == 0 ){
0 0 if( pVfs == 0 || pVfs->xTotalSpace == 0 ){
34030 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34037 0 0 if( pVfs == 0 || pVfs->xFileExists == 0 ){
0 0 if( pVfs == 0 || pVfs->xFileExists == 0 ){
34068 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34075 0 0 if( pVfs == 0 || pVfs->xFileSize == 0 ){
0 0 if( pVfs == 0 || pVfs->xFileSize == 0 ){
34106 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34113 0 0 if( pVfs == 0 || pVfs->xFileAtime == 0 ){
0 0 if( pVfs == 0 || pVfs->xFileAtime == 0 ){
34144 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34151 0 0 if( pVfs == 0 || pVfs->xFileMtime == 0 ){
0 0 if( pVfs == 0 || pVfs->xFileMtime == 0 ){
34182 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34189 0 0 if( pVfs == 0 || pVfs->xFileCtime == 0 ){
0 0 if( pVfs == 0 || pVfs->xFileCtime == 0 ){
34220 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34227 0 0 if( pVfs == 0 || pVfs->xIsfile == 0 ){
0 0 if( pVfs == 0 || pVfs->xIsfile == 0 ){
34258 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34265 0 0 if( pVfs == 0 || pVfs->xIslink == 0 ){
0 0 if( pVfs == 0 || pVfs->xIslink == 0 ){
34296 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34303 0 0 if( pVfs == 0 || pVfs->xReadable == 0 ){
0 0 if( pVfs == 0 || pVfs->xReadable == 0 ){
34334 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34341 0 0 if( pVfs == 0 || pVfs->xWritable == 0 ){
0 0 if( pVfs == 0 || pVfs->xWritable == 0 ){
34372 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34379 0 0 if( pVfs == 0 || pVfs->xExecutable == 0 ){
0 0 if( pVfs == 0 || pVfs->xExecutable == 0 ){
34410 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34417 0 0 if( pVfs == 0 || pVfs->xFiletype == 0 ){
0 0 if( pVfs == 0 || pVfs->xFiletype == 0 ){
34464 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34471 0 0 if( pVfs == 0 || pVfs->xStat == 0 ){
0 0 if( pVfs == 0 || pVfs->xStat == 0 ){
34483 0 0 if( pArray == 0 || pValue == 0 ){
34492 0 0 if( rc != JX9_OK ){
34533 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34540 0 0 if( pVfs == 0 || pVfs->xlStat == 0 ){
0 0 if( pVfs == 0 || pVfs->xlStat == 0 ){
34552 0 0 if( pArray == 0 || pValue == 0 ){
34561 0 0 if( rc != JX9_OK ){
34587 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34594 0 0 if( pVfs == 0 || pVfs->xGetenv == 0 ){
0 0 if( pVfs == 0 || pVfs->xGetenv == 0 ){
34607 0 0 if( iLen < 1 ){
34630 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34637 0 0 if( iLen < 1 ){
34646 0 0 while( zSettings < zEnd ){
34647 0 0 if( zSettings[0] == '=' ){
34656 0 0 if( zValue == 0 || zName[0] == 0 || zValue >= zEnd || zName >= zValue ){
0 0 if( zValue == 0 || zName[0] == 0 || zValue >= zEnd || zName >= zValue ){
34659 0 0 if( zSettings < zEnd ){
34667 0 0 if( pVfs == 0 || pVfs->xSetenv == 0 ){
0 0 if( pVfs == 0 || pVfs->xSetenv == 0 ){
34706 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34713 0 0 if( pVfs == 0 || pVfs->xTouch == 0 ){
0 0 if( pVfs == 0 || pVfs->xTouch == 0 ){
34725 0 0 if( nArg > 1 ){
34727 0 0 if( nArg > 2 ){
34762 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34769 0 0 if( iLen < 1 ){
34797 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34808 0 0 if( iLen < 1 ){
34816 0 0 while( zEnd > zPath && ( (int)zEnd[0] == c || (int)zEnd[0] == d ) ){
0 0 while( zEnd > zPath && ( (int)zEnd[0] == c || (int)zEnd[0] == d ) ){
34820 0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
34823 0 0 zBase = (zEnd > zPath) ? &zEnd[1] : zPath;
34825 0 0 if( nArg > 1 && jx9_value_is_string(apArg[1]) ){
0 0 if( nArg > 1 && jx9_value_is_string(apArg[1]) ){
34830 0 0 if( nSuffix > 0 && nSuffix < iLen && SyMemcmp(&zEnd[-nSuffix], zSuffix, nSuffix) == 0 ){
0 0 if( nSuffix > 0 && nSuffix < iLen && SyMemcmp(&zEnd[-nSuffix], zSuffix, nSuffix) == 0 ){
0 0 if( nSuffix > 0 && nSuffix < iLen && SyMemcmp(&zEnd[-nSuffix], zSuffix, nSuffix) == 0 ){
34875 0 0 if( nByte == sizeof(char) && ( (int)zPath[0] == c || (int)zPath[0] == d ) ){
0 0 if( nByte == sizeof(char) && ( (int)zPath[0] == c || (int)zPath[0] == d ) ){
34884 0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
0 0 while( zEnd > zPath && ( (int)zEnd[0] != c && (int)zEnd[0] != d ) ){
34887 0 0 zPtr = (zEnd > zPath) ? &zEnd[1] : zPath;
34892 0 0 if( pCur->nByte > 1 ){
34893 0 0 SyStringTrimTrailingChar(pCur, '/');
0 0 SyStringTrimTrailingChar(pCur, '/');
34897 0 0 }else if( (int)zPath[0] == c || (int)zPath[0] == d ){
34907 0 0 SyStringTrimLeadingChar(pCur, '/');
0 0 SyStringTrimLeadingChar(pCur, '/');
34912 0 0 if( pCur->nByte > 0 ){
34915 0 0 while( zEnd > pCur->zString /*basename*/ && zEnd[0] != '.' ){
0 0 while( zEnd > pCur->zString /*basename*/ && zEnd[0] != '.' ){
34918 0 0 if( zEnd > pCur->zString ){
34923 0 0 if( pCur->nByte > SyStringLength(&pOut->sExtension) ){
34940 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
34947 0 0 if( iLen < 1 ){
34954 0 0 if( nArg > 1 && jx9_value_is_int(apArg[1]) ){
0 0 if( nArg > 1 && jx9_value_is_int(apArg[1]) ){
34960 0 0 if( pComp->nByte > 0 ){
34969 0 0 if( pComp->nByte > 0 ){
34978 0 0 if( pComp->nByte > 0 ){
34987 0 0 if( pComp->nByte > 0 ){
35004 0 0 if( pArray == 0 || pValue == 0 ){
35011 0 0 if( pComp->nByte > 0 ){
35020 0 0 if( pComp->nByte > 0 ){
35029 0 0 if( pComp->nByte > 0 ){
35038 0 0 if( pComp->nByte > 0 ){
35133 0 0 if( !zPattern || !zString ) return 0;
35134 0 0 while( (c = jx9Utf8Read(zPattern, 0, &zPattern))!=0 ){
35135 0 0 if( !prevEscape && c==matchAll ){
0 0 if( !prevEscape && c==matchAll ){
35137 0 0 || c == matchOne ){
0 0 || c == matchOne ){
35138 0 0 if( c==matchOne && jx9Utf8Read(zString, 0, &zString)==0 ){
35142 0 0 if( c==0 ){
35144 0 0 }else if( c==esc ){
35146 0 0 if( c==0 ){
35149 0 0 }else if( c==matchSet ){
35156 0 0 while( (c2 = jx9Utf8Read(zString, 0, &zString))!=0 ){
35157 0 0 if( noCase ){
35158 0 0 GlogUpperToLower(c2);
35159 0 0 GlogUpperToLower(c);
35160 0 0 while( c2 != 0 && c2 != c ){
35162 0 0 GlogUpperToLower(c2);
35165 0 0 while( c2 != 0 && c2 != c ){
35169 0 0 if( c2==0 ) return 0;
35170 0 0 if( patternCompare(zPattern, zString, esc, noCase) ) return 1;
35173 0 0 }else if( !prevEscape && c==matchOne ){
35174 0 0 if( jx9Utf8Read(zString, 0, &zString)==0 ){
35177 0 0 }else if( c==matchSet ){
35179 0 0 if( esc == 0 ) return 0;
35183 0 0 if( c==0 ) return 0;
35185 0 0 if( c2=='^' ){
35189 0 0 if( c2==']' ){
35190 0 0 if( c==']' ) seen = 1;
35193 0 0 while( c2 && c2!=']' ){
35194 0 0 if( c2=='-' && zPattern[0]!=']' && zPattern[0]!=0 && prior_c>0 ){
0 0 if( c2=='-' && zPattern[0]!=']' && zPattern[0]!=0 && prior_c>0 ){
0 0 if( c2=='-' && zPattern[0]!=']' && zPattern[0]!=0 && prior_c>0 ){
0 0 if( c2=='-' && zPattern[0]!=']' && zPattern[0]!=0 && prior_c>0 ){
35196 0 0 if( c>=prior_c && c<=c2 ) seen = 1;
35199 0 0 if( c==c2 ){
35206 0 0 if( c2==0 || (seen ^ invert)==0 ){
35209 0 0 }else if( esc==c && !prevEscape ){
35213 0 0 if( noCase ){
35214 0 0 GlogUpperToLower(c);
35215 0 0 GlogUpperToLower(c2);
35217 0 0 if( c!=c2 ){
35261 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
35270 0 0 if( nArg > 2 && jx9_value_is_int(apArg[2]) ){
0 0 if( nArg > 2 && jx9_value_is_int(apArg[2]) ){
35272 0 0 if( rc & 0x01 /*FNM_NOESCAPE*/){
35275 0 0 if( rc & 0x08 /*FNM_CASEFOLD*/){
35301 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
35331 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
35338 0 0 if( pVfs == 0 || pVfs->xLink == 0 ){
0 0 if( pVfs == 0 || pVfs->xLink == 0 ){
35372 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
35379 0 0 if( pVfs == 0 || pVfs->xLink == 0 ){
0 0 if( pVfs == 0 || pVfs->xLink == 0 ){
35413 0 0 if( pVfs == 0 || pVfs->xUmask == 0 ){
0 0 if( pVfs == 0 || pVfs->xUmask == 0 ){
35423 0 0 if( nArg > 0 ){
35447 0 0 if( pVfs == 0 || pVfs->xTempDir == 0 ){
0 0 if( pVfs == 0 || pVfs->xTempDir == 0 ){
35474 0 0 if( pVfs == 0 || pVfs->xUsername == 0 ){
0 0 if( pVfs == 0 || pVfs->xUsername == 0 ){
35504 0 0 if( pVfs == 0 || pVfs->xProcessId == 0 ){
0 0 if( pVfs == 0 || pVfs->xProcessId == 0 ){
35535 0 0 if( pVfs == 0 || pVfs->xUid == 0 ){
0 0 if( pVfs == 0 || pVfs->xUid == 0 ){
35566 0 0 if( pVfs == 0 || pVfs->xGid == 0 ){
0 0 if( pVfs == 0 || pVfs->xGid == 0 ){
35612 0 0 if( nArg > 0 && jx9_value_is_string(apArg[0]) ){
0 0 if( nArg > 0 && jx9_value_is_string(apArg[0]) ){
35668 0 0 if( uname(&sName) != 0 ){
35751 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
35760 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
35768 0 0 if( pStream == 0 || pStream->xTrunc == 0){
0 0 if( pStream == 0 || pStream->xTrunc == 0){
35778 0 0 if( rc == JX9_OK ){
35811 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
35820 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
35828 0 0 if( pStream == 0 || pStream->xSeek == 0){
0 0 if( pStream == 0 || pStream->xSeek == 0){
35839 0 0 if( nArg > 2 && jx9_value_is_int(apArg[2]) ){
0 0 if( nArg > 2 && jx9_value_is_int(apArg[2]) ){
35844 0 0 if( rc == JX9_OK ){
35868 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
35877 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
35885 0 0 if( pStream == 0 || pStream->xTell == 0){
0 0 if( pStream == 0 || pStream->xTell == 0){
35913 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
35922 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
35930 0 0 if( pStream == 0 || pStream->xSeek == 0){
0 0 if( pStream == 0 || pStream->xSeek == 0){
35940 0 0 if( rc == JX9_OK ){
35962 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
35971 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
35979 0 0 if( pStream == 0 || pStream->xSync == 0){
0 0 if( pStream == 0 || pStream->xSync == 0){
36007 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36016 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36024 0 0 if( pStream == 0 ){
36034 0 0 if( SyBlobLength(&pDev->sBuffer) - pDev->nOfft > 0 ){
36042 0 0 if( n > 0 ){
36063 0 0 if( n > 0 ){
36071 0 0 if( pDev->nOfft >= SyBlobLength(&pDev->sBuffer) ){
36077 0 0 if( nLen < 1 ){
36086 0 0 if( nRead > 0 ){
36088 0 0 }else if( n < 1 ){
36103 0 0 while( zIn < zEnd ){
36104 0 0 if( zIn[0] == '\n' ){
36126 0 0 if( pDev->nOfft >= SyBlobLength(&pDev->sBuffer) ){
36131 0 0 if( SyBlobLength(&pDev->sBuffer) - pDev->nOfft > 0 ){
36134 0 0 if( rc == SXRET_OK ){
36144 0 0 n = pStream->xRead(pDev->pHandle, zBuf, (nMaxLen > 0 && nMaxLen < sizeof(zBuf)) ? nMaxLen : sizeof(zBuf));
36145 0 0 if( n < 1 ){
36153 0 0 if( rc == SXRET_OK ){
36158 0 0 if( nMaxLen > 0 && (SyBlobLength(&pDev->sBuffer) - pDev->nOfft >= nMaxLen) ){
0 0 if( nMaxLen > 0 && (SyBlobLength(&pDev->sBuffer) - pDev->nOfft >= nMaxLen) ){
36161 0 0 n = SyBlobLength(&pDev->sBuffer) - pDev->nOfft;
36168 0 0 if( SyBlobLength(&pDev->sBuffer) - pDev->nOfft > 0 ){
36171 0 0 n = SyBlobLength(&pDev->sBuffer) - pDev->nOfft;
36205 0 0 if( pStream == 0 ){
36210 0 0 if( use_include ){
36211 0 0 if( sFile.zString[0] == '/' ||
0 0 if( sFile.zString[0] == '/' ||
36215 0 0 (sFile.nByte > 1 && sFile.zString[0] == '.' && sFile.zString[1] == '/') ||
0 0 (sFile.nByte > 1 && sFile.zString[0] == '.' && sFile.zString[1] == '/') ||
0 0 (sFile.nByte > 1 && sFile.zString[0] == '.' && sFile.zString[1] == '/') ||
36216 0 0 (sFile.nByte > 2 && sFile.zString[0] == '.' && sFile.zString[1] == '.' && sFile.zString[2] == '/') ){
0 0 (sFile.nByte > 2 && sFile.zString[0] == '.' && sFile.zString[1] == '.' && sFile.zString[2] == '/') ){
0 0 (sFile.nByte > 2 && sFile.zString[0] == '.' && sFile.zString[1] == '.' && sFile.zString[2] == '/') ){
36236 0 0 if( SXRET_OK != SyBlobNullAppend(&sWorker) ){
36241 0 0 if( rc == JX9_OK ){
36242 0 0 if( bPushInclude ){
36254 0 0 if( rc == JX9_OK ){
36255 0 0 if( bPushInclude ){
36264 0 0 if( rc != JX9_OK ){
36284 0 0 if( nRead < 1 ){
36290 0 0 if( rc != SXRET_OK ){
36294 0 0 return SyBlobLength(pOut) > 0 ? SXRET_OK : -1;
36301 0 0 if( pStream->xClose ){
0 0 if( pStream->xClose ){
0 0 if( pStream->xClose ){
0 0 if( pStream->xClose ){
0 0 if( pStream->xClose ){
0 0 if( pStream->xClose ){
36322 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36331 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36339 0 0 if( pStream == 0 ){
36350 0 0 if( n < 1 ){
36381 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36390 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36398 0 0 if( pStream == 0 ){
36407 0 0 if( nArg > 1 ){
36413 0 0 if( n < 1 ){
36440 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36449 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36457 0 0 if( pStream == 0 ){
36466 0 0 if( nArg > 1 ){
36468 0 0 if( nLen < 1 ){
36475 0 0 if( pBuf == 0 ){
36482 0 0 if( nRead < 1 ){
36522 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36531 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36539 0 0 if( pStream == 0 ){
36548 0 0 if( nArg > 1 ){
36554 0 0 if( n < 1 ){
36562 0 0 if( nArg > 2 ){
36565 0 0 if( jx9_value_is_string(apArg[2]) ){
36568 0 0 if( i > 0 ){
36572 0 0 if( nArg > 3 ){
36573 0 0 if( jx9_value_is_string(apArg[3]) ){
36576 0 0 if( i > 0 ){
36580 0 0 if( nArg > 4 ){
36581 0 0 if( jx9_value_is_string(apArg[4]) ){
36584 0 0 if( i > 0 ){
36593 0 0 if( pArray == 0 ){
36628 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36637 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36645 0 0 if( pStream == 0 ){
36654 0 0 if( nArg > 1 ){
36660 0 0 if( n < 1 ){
36666 0 0 if( nArg > 2 && jx9_value_is_string(apArg[2]) ){
0 0 if( nArg > 2 && jx9_value_is_string(apArg[2]) ){
36689 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36698 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36706 0 0 if( pStream == 0 || pStream->xReadDir == 0 ){
0 0 if( pStream == 0 || pStream->xReadDir == 0 ){
36717 0 0 if( rc != JX9_OK ){
36736 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36745 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36753 0 0 if( pStream == 0 || pStream->xRewindDir == 0 ){
0 0 if( pStream == 0 || pStream->xRewindDir == 0 ){
36781 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
36790 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
36798 0 0 if( pStream == 0 || pStream->xCloseDir == 0 ){
0 0 if( pStream == 0 || pStream->xCloseDir == 0 ){
36830 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
36840 0 0 if( pStream == 0 ){
36846 0 0 if( pStream->xOpenDir == 0 ){
36856 0 0 if( pDev == 0 ){
36865 0 0 if( rc != JX9_OK ){
36898 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
36908 0 0 if( pStream == 0 ){
36913 0 0 if( nArg > 1 ){
36917 0 0 pHandle = jx9StreamOpenHandle(pCtx->pVm, pStream, zFile, JX9_IO_OPEN_RDONLY,
36919 0 0 if( pHandle == 0 ){
36928 0 0 if( n < 1 ){
36934 0 0 if( rc == JX9_ABORT ){
36976 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
36986 0 0 if( pStream == 0 ){
36992 0 0 if( nArg > 1 ){
36996 0 0 pHandle = jx9StreamOpenHandle(pCtx->pVm, pStream, zFile, JX9_IO_OPEN_RDONLY, use_include, nArg > 2 ? apArg[2] : 0, FALSE, 0);
36997 0 0 if( pHandle == 0 ){
37002 0 0 if( nArg > 3 ){
37005 0 0 if( n > 0 ){
37006 0 0 if( pStream->xSeek ){
37011 0 0 if( nArg > 4 ){
37020 0 0 (nMaxlen > 0 && (nMaxlen < sizeof(zBuf))) ? nMaxlen : sizeof(zBuf));
37021 0 0 if( n < 1 ){
37029 0 0 if( nMaxlen > 0 && nRead >= nMaxlen ){
37037 0 0 if( jx9_context_result_buf_length(pCtx) < 1 ){
37073 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) ){
37083 0 0 if( pStream == 0 ){
37090 0 0 if( nLen < 1 ){
37099 0 0 if( nArg > 2 ){
37101 0 0 if( iFlags & 0x01 /*FILE_USE_INCLUDE_PATH*/){
37104 0 0 if( iFlags & 0x08 /* FILE_APPEND */){
37113 0 0 pHandle = jx9StreamOpenHandle(pCtx->pVm, pStream, zFile, iOpenFlags, use_include,
37115 0 0 if( pHandle == 0 ){
37120 0 0 if( pStream->xWrite ){
37122 0 0 if( (iFlags & 0x01/* LOCK_EX */) && pStream->xLock ){
0 0 if( (iFlags & 0x01/* LOCK_EX */) && pStream->xLock ){
37128 0 0 if( n < 1 ){
37177 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
37187 0 0 if( pStream == 0 ){
37194 0 0 if( pDev == 0 ){
37205 0 0 if( iFlags & 0x01 /*FILE_USE_INCLUDE_PATH*/ ){
37211 0 0 if( pArray == 0 || pLine == 0 ){
37217 0 0 pDev->pHandle = jx9StreamOpenHandle(pCtx->pVm, pStream, zFile, JX9_IO_OPEN_RDONLY, use_include, nArg > 2 ? apArg[2] : 0, FALSE, 0);
37218 0 0 if( pDev->pHandle == 0 ){
37230 0 0 if( n < 1 ){
37239 0 0 if( iFlags & 0x02 /* FILE_IGNORE_NEW_LINES */ ){
37241 0 0 while( zPtr < zEnd && (zEnd[-1] == '\n'
0 0 while( zPtr < zEnd && (zEnd[-1] == '\n'
37250 0 0 if( iFlags & 0x04 /* FILE_SKIP_EMPTY_LINES */ ){
37252 0 0 while( zPtr < zEnd && (unsigned char)zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) ){
0 0 while( zPtr < zEnd && (unsigned char)zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) ){
0 0 while( zPtr < zEnd && (unsigned char)zPtr[0] < 0xc0 && SyisSpace(zPtr[0]) ){
37255 0 0 if( zPtr >= zEnd ){
37265 0 0 jx9StreamCloseHandle(pStream, pDev->pHandle);
37294 0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1])){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1])){
0 0 if( nArg < 2 || !jx9_value_is_string(apArg[0]) || !jx9_value_is_string(apArg[1])){
37304 0 0 if( pSin == 0 ){
37310 0 0 pIn = jx9StreamOpenHandle(pCtx->pVm, pSin, zFile, JX9_IO_OPEN_RDONLY, FALSE, nArg > 2 ? apArg[2] : 0, FALSE, 0);
37311 0 0 if( pIn == 0 ){
37320 0 0 if( pSout == 0 ){
37326 0 0 if( pSout->xWrite == 0 ){
37336 0 0 pOut = jx9StreamOpenHandle(pCtx->pVm, pSout, zFile,
37338 0 0 if( pOut == 0 ){
37348 0 0 if( n < 1 ){
37354 0 0 if( n < 1 ){
37380 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
37389 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37397 0 0 if( pStream == 0 || pStream->xStat == 0){
0 0 if( pStream == 0 || pStream->xStat == 0){
37408 0 0 if( pArray == 0 || pValue == 0 ){
37442 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
37451 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37459 0 0 if( pStream == 0 || pStream->xWrite == 0){
0 0 if( pStream == 0 || pStream->xWrite == 0){
37469 0 0 if( nArg > 2 ){
37472 0 0 if( n >= 0 && n < nLen ){
0 0 if( n >= 0 && n < nLen ){
37476 0 0 if( nLen < 1 ){
37483 0 0 if( n < 0 ){
37512 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) ){
37521 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37529 0 0 if( pStream == 0 || pStream->xLock == 0){
0 0 if( pStream == 0 || pStream->xLock == 0){
37562 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
37571 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37579 0 0 if( pStream == 0 ){
37591 0 0 if( n < 1 ){
37599 0 0 if( rc == JX9_ABORT ){
37629 0 0 if( nLen < 1 ){
37633 0 0 if( pData->iCount > 0 ){
37642 0 0 if( n == 0 ){
37647 0 0 if( c2 > 1 ){
37652 0 0 if( pData->pDev->pStream->xWrite(pData->pDev->pHandle, (const void *)zData, (jx9_int64)nLen) < 1 ){
37656 0 0 if( c2 > 0 ){
37659 0 0 if( c2 > 1 ){
37686 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_json_array(apArg[1]) ){
37695 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37703 0 0 if( pStream == 0 || pStream->xWrite == 0){
0 0 if( pStream == 0 || pStream->xWrite == 0){
37716 0 0 if( nArg > 2 ){
37721 0 0 if( n > 0 ){
37724 0 0 if( nArg > 3 ){
37726 0 0 if( n > 0 ){
37765 0 0 if( n < 1 ){
37791 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) ){
37800 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37807 0 0 if( pDev->pStream == 0 || pDev->pStream->xWrite == 0 ){
0 0 if( pDev->pStream == 0 || pDev->pStream->xWrite == 0 ){
37808 0 0 jx9_context_throw_error_format(pCtx, JX9_CTX_WARNING,
37817 0 0 if( nLen < 1 ){
37852 0 0 if( nArg < 3 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) || !jx9_value_is_json_array(apArg[2]) ){
0 0 if( nArg < 3 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) || !jx9_value_is_json_array(apArg[2]) ){
0 0 if( nArg < 3 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) || !jx9_value_is_json_array(apArg[2]) ){
0 0 if( nArg < 3 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_string(apArg[1]) || !jx9_value_is_json_array(apArg[2]) ){
37861 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
37868 0 0 if( pDev->pStream == 0 || pDev->pStream->xWrite == 0 ){
0 0 if( pDev->pStream == 0 || pDev->pStream->xWrite == 0 ){
37869 0 0 jx9_context_throw_error_format(pCtx, JX9_CTX_WARNING,
37878 0 0 if( nLen < 1 ){
37930 0 0 if( nLen < 1 ){
37939 0 0 if( zMode < zEnd ){
37941 0 0 if( c == '+' || c == 'w' || c == 'W' ){
0 0 if( c == '+' || c == 'w' || c == 'W' ){
37952 0 0 if( zMode < zEnd ){
37954 0 0 if( c == '+' || c == 'r' || c == 'R' ){
0 0 if( c == '+' || c == 'r' || c == 'R' ){
37966 0 0 if( zMode < zEnd ){
37968 0 0 if( c == '+' ){
37981 0 0 if( zMode < zEnd ){
37983 0 0 if( c == '+' || c == 'r' || c == 'R' ){
0 0 if( c == '+' || c == 'r' || c == 'R' ){
37993 0 0 if( zMode < zEnd ){
37995 0 0 if( c == '+' ){
38006 0 0 while( zMode < zEnd ){
38008 0 0 if( c == 'b' || c == 'B' ){
38011 0 0 }else if( c == 't' || c == 'T' ){
38028 0 0 pOut->iMagic = IO_PRIVATE_MAGIC;
0 0 pOut->iMagic = IO_PRIVATE_MAGIC;
38078 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
38086 0 0 if( nArg > 1 ){
38095 0 0 if( pStream == 0 ){
38103 0 0 if( pDev == 0 ){
38109 0 0 if( nArg > 3 ){
38111 0 0 }else if( is_jx9_stream(pStream) ){
38122 0 0 pDev->pHandle = jx9StreamOpenHandle(pCtx->pVm, pStream, zUri, iOpenFlags,
38124 0 0 if( pDev->pHandle == 0 ){
38148 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38157 0 0 if( IO_PRIVATE_INVALID(pDev) ){
0 0 if( IO_PRIVATE_INVALID(pDev) ){
38165 0 0 if( pStream == 0 ){
38176 0 0 if( pDev != pVm->pStdin && pDev != pVm->pStdout && pDev != pVm->pStderr ){
0 0 if( pDev != pVm->pStdin && pDev != pVm->pStdout && pDev != pVm->pStderr ){
0 0 if( pDev != pVm->pStdin && pDev != pVm->pStdout && pDev != pVm->pStderr ){
38178 0 0 jx9StreamCloseHandle(pStream, pDev->pHandle);
38365 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
38375 0 0 if( pStream == 0 ){
38382 0 0 if( pHandle == 0 ){
38390 0 0 if( SyBlobLength(&sContents) < 1 ){
38395 0 0 jx9ParseIniString(pCtx, (const char *)SyBlobData(&sContents), SyBlobLength(&sContents),
38449 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
38459 0 0 if( pStream == 0 ){
38466 0 0 if( pArchive == 0 ){
38475 0 0 if( pStream == pCtx->pVm->pDefStream /* file:// stream*/){
38483 0 0 if( rc == JX9_OK ){
38486 0 0 if( rc != SXRET_OK ){
38506 0 0 if( pHandle == 0 ){
38517 0 0 if( SyBlobLength(pContents) > 0 ){
38521 0 0 pRaw->iType = ZIP_RAW_DATA_MEMBUF;
38524 0 0 if( rc != SXRET_OK ){
38553 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38561 0 0 if( SXARCH_INVALID(pArchive) ){
0 0 if( SXARCH_INVALID(pArchive) ){
38568 0 0 if( pRaw->iType == ZIP_RAW_DATA_MEMBUF ){
38572 0 0 if( pVfs->xUnmap ){
38596 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38606 0 0 if( SXARCH_INVALID(pArchive) ){
0 0 if( SXARCH_INVALID(pArchive) ){
38643 0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_resource(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_resource(apArg[1]) ){
0 0 if( nArg < 2 || !jx9_value_is_resource(apArg[0]) || !jx9_value_is_resource(apArg[1]) ){
38653 0 0 if( SXARCH_INVALID(pArchive) ){
0 0 if( SXARCH_INVALID(pArchive) ){
38661 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38683 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38692 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38717 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38726 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38749 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38758 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38780 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38789 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38817 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38826 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38833 0 0 if( pEntry->nReadCount >= pEntry->nByteCompr ){
38840 0 0 if( nArg > 1 ){
38842 0 0 if( iLength < 1 ){
38846 0 0 if( (sxu32)iLength > pEntry->nByteCompr - pEntry->nReadCount ){
38851 0 0 if( pRaw->iType == ZIP_RAW_DATA_MEMBUF ){
38876 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38885 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
38909 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
38918 0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
0 0 if( SXARCH_ENTRY_INVALID(pEntry) ){
40180 0 0 return rc == 0 ? JX9_OK : -1;
40189 0 0 if( zDir == 0 ){
40201 0 0 return rc == 0 ? JX9_OK : -1;
40208 0 0 return rc == 0 ? JX9_OK : -1;
40216 0 0 if( rc != 0 ){
40220 0 0 return rc ? JX9_OK : -1 ;
40227 0 0 return rc == 0 ? JX9_OK : -1;
40230 0 0 static int UnixVfs_Realpath(const char *zPath, jx9_context *pCtx)
40235 0 0 if( zReal == 0 ){
40259 0 0 return rc == 0 ? JX9_OK : -1 ;
40266 0 0 return rc == 0 ? JX9_OK : -1;
40274 0 0 if( rc != 0 ){
40287 0 0 if( rc != 0 ){
40298 0 0 if( rc != 0 ){
40309 0 0 if( rc != 0 ){
40320 0 0 if( rc != 0 ){
40331 0 0 if( rc != 0 ){
40378 0 0 if( rc != 0 ){
40424 0 0 return rc == 0 ? JX9_OK : - 1;
40434 0 0 if (pwd == 0) {
40439 0 0 return rc == 0 ? JX9_OK : -1;
40454 0 0 if (group == 0) {
40459 0 0 return rc == 0 ? JX9_OK : -1;
40472 0 0 if( rc != 0 ){
40476 0 0 return rc ? JX9_OK : -1 ;
40484 0 0 if( rc != 0 ){
40488 0 0 return rc ? JX9_OK : -1 ;
40495 0 0 return rc == 0 ? JX9_OK : -1;
40502 0 0 return rc == 0 ? JX9_OK : -1;
40509 0 0 return rc == 0 ? JX9_OK : -1;
40517 0 0 if( rc != 0 ){
40522 0 0 if(S_ISREG(st.st_mode) ){
40524 0 0 }else if(S_ISDIR(st.st_mode)){
40526 0 0 }else if(S_ISLNK(st.st_mode)){
40528 0 0 }else if(S_ISBLK(st.st_mode)){
40530 0 0 }else if(S_ISSOCK(st.st_mode)){
40532 0 0 }else if(S_ISFIFO(st.st_mode)){
40544 0 0 if( zEnv == 0 ){
40555 0 0 return rc == 0 ? JX9_OK : -1;
40566 0 0 if( fd < 0 ){
40574 0 0 if( pMap == MAP_FAILED ){
40601 0 0 if( zDir && zDir[0] != 0 && !access(zDir, 07) ){
0 0 if( zDir && zDir[0] != 0 && !access(zDir, 07) ){
0 0 if( zDir && zDir[0] != 0 && !access(zDir, 07) ){
40605 0 0 for(i=0; i
40607 0 0 if( zDir==0 ) continue;
40608 0 0 if( stat(zDir, &buf) ) continue;
40609 0 0 if( !S_ISDIR(buf.st_mode) ) continue;
40610 0 0 if( access(zDir, 07) ) continue;
40648 0 0 if (pwd == 0) {
40662 0 0 if( is_sym ){
40669 0 0 return rc == 0 ? JX9_OK : -1;
40676 0 0 return rc == 0 ? JX9_OK : -1;
40732 0 0 if( iOpenMode & JX9_IO_OPEN_CREATE ){
40735 0 0 if( iOpenMode & JX9_IO_OPEN_TRUNC ){
40740 0 0 }else if( iOpenMode & JX9_IO_OPEN_EXCL ){
40745 0 0 }else if( iOpenMode & JX9_IO_OPEN_TRUNC ){
40751 0 0 if( iOpenMode & JX9_IO_OPEN_RDWR ){
40755 0 0 }else if( iOpenMode & JX9_IO_OPEN_WRONLY ){
40760 0 0 if( iOpenMode & JX9_IO_OPEN_APPEND ){
40772 0 0 if( fd < 0 ){
40786 0 0 if( pDir == 0 ){
40813 0 0 if( pEntry == 0 ){
40820 0 0 if( n > sizeof("..")-1 || zName[0] != '.' || ( n == sizeof("..")-1 && zName[1] != '.') ){
0 0 if( n > sizeof("..")-1 || zName[0] != '.' || ( n == sizeof("..")-1 && zName[1] != '.') ){
0 0 if( n > sizeof("..")-1 || zName[0] != '.' || ( n == sizeof("..")-1 && zName[1] != '.') ){
0 0 if( n > sizeof("..")-1 || zName[0] != '.' || ( n == sizeof("..")-1 && zName[1] != '.') ){
40838 0 0 nRd = read(SX_PTR_TO_INT(pUserData), pBuffer, (size_t)nDatatoRead);
40839 0 0 if( nRd < 1 ){
40854 0 0 if( nWrite < 1 ){
40858 0 0 if( nWr < 1 ){
40866 0 0 if( nWrite > 0 ){
40888 0 0 if( iNew < 0 ){
40898 0 0 if( lock_type < 0 ){
40902 0 0 if( lock_type == 1 ){
40910 0 0 return !rc ? JX9_OK : -1;
40924 0 0 if( rc != 0 ){
40934 0 0 return rc == 0 ? JX9_OK : - 1;
40942 0 0 if( rc != 0 ){
41084 0 0 if( pVm == 0 ){
41089 0 0 if( pData == 0 ){
41096 0 0 if( iType == JX9_IO_STREAM_OUTPUT ){
41140 0 0 SyStringFullTrim(&sStream);
0 0 SyStringFullTrim(&sStream);
0 0 SyStringFullTrim(&sStream);
41142 0 0 if( SyStrnicmp(sStream.zString, "stdin", sizeof("stdin")-1) == 0 ){
41144 0 0 }else if( SyStrnicmp(sStream.zString, "output", sizeof("output")-1) == 0 ){
41146 0 0 }else if( SyStrnicmp(sStream.zString, "stdout", sizeof("stdout")-1) == 0 ){
41148 0 0 }else if( SyStrnicmp(sStream.zString, "stderr", sizeof("stderr")-1) == 0 ){
41155 0 0 pData = JX9StreamDataInit(pResource?pResource->pVm:0, iMode);
41156 0 0 if( pData == 0 ){
41167 0 0 if( pData == 0 ){
41170 0 0 if( pData->iType != JX9_IO_STREAM_STDIN ){
41190 0 0 nRd = read(fd, pBuffer, (size_t)nDatatoRead);
41191 0 0 if( nRd < 1 ){
41204 0 0 if( pData == 0 ){
41207 0 0 if( pData->iType == JX9_IO_STREAM_STDIN ){
41210 0 0 }else if( pData->iType == JX9_IO_STREAM_OUTPUT ){
41215 0 0 if( rc == JX9_ABORT ){
41237 0 0 if( nWr < 1 ){
41251 0 0 if( pData == 0 ){
41408 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aVfsFunc) ; ++n ){
41411 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aIOFunc) ; ++n ){
41440 0 0 if( pVm->pStdin == 0 ){
41444 0 0 if( pIn == 0 ){
41472 0 0 if( pVm->pStdout == 0 ){
41476 0 0 if( pOut == 0 ){
41504 0 0 if( pVm->pStderr == 0 ){
41508 0 0 if( pErr == 0 ){
41672 0 0 if( pEntry ){
41681 0 0 if( pCons == 0 ){
41686 0 0 if( zDupName == 0 ){
41695 0 0 if( rc != SXRET_OK ){
41722 0 0 if( pFunc == 0 ){
41727 0 0 if( zDup == 0 ){
41763 0 0 if( pEntry ){
41772 0 0 if( rc != SXRET_OK ){
41777 0 0 if( rc != SXRET_OK ){
41824 0 0 if( pName == 0 ){
41830 0 0 if( pEntry ){
41832 0 0 if( pLink != pFunc ){
41863 0 0 if( pIndex ){
41869 0 0 if( rc != SXRET_OK ){
41894 0 0 return pVm->pByteContainer;
41902 0 0 pInstr = (VmInstr *)SySetAt(pVm->pByteContainer, nIndex);
0 0 pInstr = (VmInstr *)SySetAt(pVm->pByteContainer, nIndex);
0 0 pInstr = (VmInstr *)SySetAt(pVm->pByteContainer, nIndex);
0 0 pInstr = (VmInstr *)SySetAt(pVm->pByteContainer, nIndex);
0 0 pInstr = (VmInstr *)SySetAt(pVm->pByteContainer, nIndex);
41917 0 0 return (VmInstr *)SySetPop(pVm->pByteContainer);
41924 0 0 return (VmInstr *)SySetPeek(pVm->pByteContainer);
0 0 return (VmInstr *)SySetPeek(pVm->pByteContainer);
41937 0 0 if( pFrame == 0 ){
41968 0 0 if( ppFrame ){
41988 0 0 while( pFrame ){
41991 0 0 if( pEntry ){
41998 0 0 if( pEntry == 0 ){
42012 0 0 if( pFrame ){
42015 0 0 if( pFrame->pParent ){
42020 0 0 for(n = 0 ; n < SySetUsed(&pFrame->sLocal) ; ++n ){
42044 0 0 if( zFin >= zFend || zSin >= zSend ){
42047 0 0 if( zFin[0] != zSin[0] ){
42078 0 0 while( i < (int)SX_ARRAYSIZE(apSet) ){
42079 0 0 if( pLink == 0 ){
42082 0 0 if( (int)SySetUsed(&pLink->aArgs) == nArg ){
42089 0 0 if( i < 1 ){
42093 0 0 if( nArg < 1 || i < 2 ){
42099 0 0 for( j = 0 ; j < nArg ; j++ ){
42101 0 0 if( aArg[j].iFlags & MEMOBJ_HASHMAP ){
42104 0 0 }else if( aArg[j].iFlags & MEMOBJ_BOOL ){
42107 0 0 }else if( aArg[j].iFlags & MEMOBJ_INT ){
42110 0 0 }else if( aArg[j].iFlags & MEMOBJ_STRING ){
42113 0 0 }else if( aArg[j].iFlags & MEMOBJ_REAL ){
42117 0 0 if( c > 0 ){
42125 0 0 for( j = 0 ; j < i ; j++ ){
42128 0 0 if( iCur > iMax ){
42149 0 0 if( pIndex ){
42155 0 0 if( rc != SXRET_OK ){
42172 0 0 if( pIndex ){
42178 0 0 if( rc != SXRET_OK ){
42387 0 0 if( pObj == 0 ){
42394 0 0 if( pObj == 0 ){
42401 0 0 if( pObj == 0 ){
42413 0 0 if( rc != SXRET_OK ){
42472 0 0 if( pStack == 0 ){
42476 0 0 while( nInstr > 0 ){
42495 0 0 if( pVm->nMagic != JX9_VM_INIT ){
42505 0 0 if( rc != SXRET_OK ){
42512 0 0 if( pVm->aOps == 0 ){
42521 0 0 if( rc != SXRET_OK ){
42527 0 0 if( rc != SXRET_OK ){
42543 0 0 if( pVm->nMagic != JX9_VM_RUN && pVm->nMagic != JX9_VM_EXEC ){
42600 0 0 if( SySetUsed(&pCtx->sVar) > 0 ){
42602 0 0 for( n = 0 ; n < SySetUsed(&pCtx->sVar) ; ++n ){
42603 0 0 if( apObj[n] == 0 ){
42612 0 0 if( SySetUsed(&pCtx->sChunk) > 0 ){
42619 0 0 for( n = 0; n < SySetUsed(&pCtx->sChunk) ; ++n ){
42622 0 0 if( pChunk ){
42638 0 0 if( pValue == 0 ){
42642 0 0 if( SySetUsed(&pCtx->sVar) > 0 ){
42645 0 0 for( n = 0 ; n < SySetUsed(&pCtx->sVar) ; ++n ){
42646 0 0 if( apObj[n] == pValue ){
42665 0 0 while( nPop > 0 ){
42683 0 0 nIdx = SXU32_HIGH; /* cc warning */
42685 0 0 if( pSlot ){
42686 0 0 pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pSlot->nIdx);
42689 0 0 if( pObj == 0 ){
42692 0 0 if( pObj == 0 ){
42698 0 0 if( pIdx ){
42725 0 0 if( pName == 0 || pName->nByte < 1 ){
0 0 if( pName == 0 || pName->nByte < 1 ){
42734 0 0 if( pEntry == 0 ){
42737 0 0 if( pEntry == 0 ){
42740 0 0 if( !bCreate ){
42748 0 0 if( pObj == 0 ){
42751 0 0 if( bDup ){
42754 0 0 if( zName == 0 ){
42760 0 0 if( rc != SXRET_OK ){
42767 0 0 if( pFrame->pParent != 0 ){
42774 0 0 nIdx = (sxu32)SX_PTR_TO_INT(pEntry->pUserData);
42776 0 0 if( bNullify && pObj ){
42782 0 0 nIdx = (sxu32)SX_PTR_TO_INT(pEntry->pUserData);
42802 0 0 if( pEntry == 0 ){
42807 0 0 nIdx = SX_PTR_TO_INT(pEntry->pUserData);
42830 0 0 if( zKey ){
42831 0 0 if( nKeylen < 0 ){
42837 0 0 if( zData ){
42838 0 0 if( nLen < 0 ){
42904 0 0 SyStringTrimTrailingChar(&sPath, '/');
0 0 SyStringTrimTrailingChar(&sPath, '/');
42906 0 0 SyStringFullTrim(&sPath);
0 0 SyStringFullTrim(&sPath);
0 0 SyStringFullTrim(&sPath);
0 0 SyStringFullTrim(&sPath);
0 0 SyStringFullTrim(&sPath);
0 0 SyStringFullTrim(&sPath);
42907 0 0 if( sPath.nByte > 0 ){
42920 0 0 if( nDepth > 2 && nDepth < 1024 ){
42954 0 0 if( pEntry ){
42956 0 0 nIdx = SX_PTR_TO_INT(pEntry->pUserData);
42959 0 0 if( pObj ){
42966 0 0 if( pObj == 0 ){
42984 0 0 if( nOp == JX9_VM_CONFIG_ENV_ATTR ){
42991 0 0 if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
43009 0 0 if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
43018 0 0 if( rc == SXRET_OK && zValue && zValue[0] != 0 ){
0 0 if( rc == SXRET_OK && zValue && zValue[0] != 0 ){
43019 0 0 if( pMap->nEntry > 1 ){
43043 0 0 if( pStream == 0 || pStream->zName == 0 || pStream->zName[0] == 0 ||
0 0 if( pStream == 0 || pStream->zName == 0 || pStream->zName[0] == 0 ||
0 0 if( pStream == 0 || pStream->zName == 0 || pStream->zName[0] == 0 ||
43044 0 0 pStream->xOpen == 0 || pStream->xRead == 0 ){
0 0 pStream->xOpen == 0 || pStream->xRead == 0 ){
43049 0 0 if( pVm->pDefStream == 0 && SyStrnicmp(pStream->zName, "file", sizeof("file")-1) == 0 ){
0 0 if( pVm->pDefStream == 0 && SyStrnicmp(pStream->zName, "file", sizeof("file")-1) == 0 ){
43075 0 0 if( SX_EMPTY_STR(zRequest) ){
0 0 if( SX_EMPTY_STR(zRequest) ){
43079 0 0 if( nByte < 0 ){
43125 0 0 if( pInstr >= pEnd ){
43133 0 0 if( rc != SXRET_OK ){
43179 0 0 if( !pVm->bErrReport ){
43187 0 0 if( pFile ){
43201 0 0 if( pFuncName ){
43228 0 0 if( !pVm->bErrReport ){
43236 0 0 if( pFile ){
43250 0 0 if( pFuncName ){
43321 0 0 if( nTos < 0 ){
43347 0 0 if( pInstr->iP1 ){
43353 0 0 if( pResult ){
43367 0 0 if( pInstr->iP1 ){
43373 0 0 if( pTos->iFlags & MEMOBJ_STRING ){
43374 0 0 if( SyBlobLength(&pTos->sBlob) > 0 ){
43381 0 0 }else if(pTos->iFlags & MEMOBJ_INT ){
43410 0 0 if((pTos->iFlags & MEMOBJ_BOOL) == 0 ){
43413 0 0 if( !pTos->x.iVal ){
43417 0 0 if( !pInstr->iP1 ){
43434 0 0 if((pTos->iFlags & MEMOBJ_BOOL) == 0 ){
43437 0 0 if( pTos->x.iVal ){
43441 0 0 if( !pInstr->iP1 ){
43460 0 0 if( &pTos[-n+1] < pStack ){
43478 0 0 if((pTos->iFlags & MEMOBJ_INT) == 0 ){
43495 0 0 if((pTos->iFlags & MEMOBJ_REAL) == 0 ){
43512 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
43527 0 0 if( (pTos->iFlags & MEMOBJ_BOOL) == 0 ){
43571 0 0 if( rc != SXRET_OK ){
43587 0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aLitObj, pInstr->iP2)) != 0 ){
0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aLitObj, pInstr->iP2)) != 0 ){
43588 0 0 if( pInstr->iP1 == 1 && SyBlobLength(&pObj->sBlob) <= 64 ){
0 0 if( pInstr->iP1 == 1 && SyBlobLength(&pObj->sBlob) <= 64 ){
43592 0 0 if( pEntry ){
43595 0 0 MemObjSetType(pTos, MEMOBJ_NULL);
43624 0 0 if( pInstr->p3 == 0 ){
43632 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
43643 0 0 if( pObj == 0 ){
43644 0 0 if( pInstr->iP1 ){
43646 0 0 if( !pInstr->p3 ){
43677 0 0 if( pMap == 0 ){
43683 0 0 if( pInstr->iP2 ){
43689 0 0 if( pInstr->iP1 > 0 ){
43692 0 0 while( pEntry <= pTos ){
43694 0 0 jx9HashmapInsert(pMap,
43723 0 0 if( pInstr->iP1 == 0 ){
43724 0 0 if( !pInstr->iP2){
43726 0 0 if( pTos >= pStack ){
43743 0 0 if( pTos->iFlags & MEMOBJ_STRING ){
43745 0 0 if( pIdx ){
43747 0 0 if( (pIdx->iFlags & MEMOBJ_INT) == 0 ){
43752 0 0 if( nOfft >= SyBlobLength(&pTos->sBlob) ){
43768 0 0 if( pInstr->iP2 && (pTos->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( pInstr->iP2 && (pTos->iFlags & MEMOBJ_HASHMAP) == 0 ){
43769 0 0 if( pTos->nIdx != SXU32_HIGH ){
43771 0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
43778 0 0 if( pTos->iFlags & MEMOBJ_HASHMAP ){
43781 0 0 if( pIdx ){
43785 0 0 if( rc != SXRET_OK && pInstr->iP2 ){
0 0 if( rc != SXRET_OK && pInstr->iP2 ){
43788 0 0 if( rc == SXRET_OK ){
43794 0 0 if( pIdx ){
43797 0 0 if( rc == SXRET_OK ){
43799 0 0 if( pMap->iRef < 2 ){
43830 0 0 if( pInstr->iP2 ){
43835 0 0 if( nIdx == SXU32_HIGH ){
43842 0 0 if( pObj ){
43848 0 0 }else if( pInstr->p3 == 0 ){
43850 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
43866 0 0 if( pObj == 0 ){
43871 0 0 if( !pInstr->p3 ){
43887 0 0 if( pInstr->iP1 ){
43895 0 0 if( pTos->iFlags & MEMOBJ_HASHMAP ){
43898 0 0 if( pMap->iRef < 2 ){
43905 0 0 if( pObj == 0 ){
43906 0 0 if( pKey ){
43913 0 0 if( (pObj->iFlags & MEMOBJ_STRING) ){
43915 0 0 if( (pTos->iFlags&MEMOBJ_STRING) == 0 ){
43919 0 0 if( pKey == 0 ){
43921 0 0 if( SyBlobLength(&pTos->sBlob) > 0 ){
43926 0 0 if((pKey->iFlags & MEMOBJ_INT)){
43931 0 0 if( nOfft < SyBlobLength(&pObj->sBlob) && SyBlobLength(&pTos->sBlob) > 0 ){
0 0 if( nOfft < SyBlobLength(&pObj->sBlob) && SyBlobLength(&pTos->sBlob) > 0 ){
43936 0 0 if( SyBlobLength(&pTos->sBlob) >= sizeof(char) ){
43942 0 0 if( pKey ){
43946 0 0 }else if( (pObj->iFlags & MEMOBJ_HASHMAP) == 0 ){
43949 0 0 if( rc != SXRET_OK ){
43959 0 0 if( pKey ){
43977 0 0 if( (pTos->iFlags & (MEMOBJ_HASHMAP|MEMOBJ_RES)) == 0 ){
43978 0 0 if( pTos->nIdx != SXU32_HIGH ){
43980 0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
43983 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
43991 0 0 if( pInstr->iP1 ){
43997 0 0 if( pInstr->iP1 ){
44001 0 0 if( pTos->iFlags & MEMOBJ_REAL ){
44026 0 0 if( (pTos->iFlags & (MEMOBJ_HASHMAP|MEMOBJ_RES|MEMOBJ_NULL)) == 0 ){
44029 0 0 if( pTos->nIdx != SXU32_HIGH ){
44031 0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44034 0 0 if( pObj->iFlags & MEMOBJ_REAL ){
44042 0 0 if( pInstr->iP1 ){
44048 0 0 if( pInstr->iP1 ){
44050 0 0 if( pTos->iFlags & MEMOBJ_REAL ){
44075 0 0 if( pTos->iFlags & MEMOBJ_REAL ){
44078 0 0 if( pTos->iFlags & MEMOBJ_INT ){
44098 0 0 if( pTos->iFlags & MEMOBJ_INT ){
44115 0 0 if( (pTos->iFlags & MEMOBJ_BOOL) == 0 ){
44133 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44156 0 0 if( MEMOBJ_REAL & (pTos->iFlags|pNos->iFlags) ){
44159 0 0 if( (pTos->iFlags & MEMOBJ_REAL) == 0 ){
44162 0 0 if( (pNos->iFlags & MEMOBJ_REAL) == 0 ){
44183 0 0 if( pInstr->iOp == JX9_OP_MUL_STORE ){
44185 0 0 if( pTos->nIdx == SXU32_HIGH ){
44187 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44230 0 0 if( nIdx == SXU32_HIGH ){
44232 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, nIdx)) != 0 ){
44253 0 0 if( MEMOBJ_REAL & (pTos->iFlags|pNos->iFlags) ){
44256 0 0 if( (pTos->iFlags & MEMOBJ_REAL) == 0 ){
44259 0 0 if( (pNos->iFlags & MEMOBJ_REAL) == 0 ){
44297 0 0 if( MEMOBJ_REAL & (pTos->iFlags|pNos->iFlags) ){
44300 0 0 if( (pTos->iFlags & MEMOBJ_REAL) == 0 ){
44303 0 0 if( (pNos->iFlags & MEMOBJ_REAL) == 0 ){
44324 0 0 if( pTos->nIdx == SXU32_HIGH ){
44326 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44351 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44354 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44360 0 0 if( b == 0 ){
44392 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44395 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44401 0 0 if( b == 0 ){
44411 0 0 if( pTos->nIdx == SXU32_HIGH ){
44413 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44436 0 0 if( (pTos->iFlags & MEMOBJ_REAL) == 0 ){
44439 0 0 if( (pNos->iFlags & MEMOBJ_REAL) == 0 ){
44445 0 0 if( b == 0 ){
44479 0 0 if( (pTos->iFlags & MEMOBJ_REAL) == 0 ){
44482 0 0 if( (pNos->iFlags & MEMOBJ_REAL) == 0 ){
44488 0 0 if( b == 0 ){
44501 0 0 if( pTos->nIdx == SXU32_HIGH ){
44503 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44538 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44541 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44592 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44595 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44613 0 0 if( pTos->nIdx == SXU32_HIGH ){
44615 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44646 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44649 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44655 0 0 if( pInstr->iOp == JX9_OP_SHL ){
44692 0 0 if( (pTos->iFlags & MEMOBJ_INT) == 0 ){
44695 0 0 if( (pNos->iFlags & MEMOBJ_INT) == 0 ){
44701 0 0 if( pInstr->iOp == JX9_OP_SHL_STORE ){
44709 0 0 if( pTos->nIdx == SXU32_HIGH ){
44711 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44724 0 0 if( pInstr->iP1 < 1 ){
44735 0 0 if( (pNos->iFlags & MEMOBJ_STRING) == 0 ){
44739 0 0 while( pCur <= pTos ){
44740 0 0 if( (pCur->iFlags & MEMOBJ_STRING) == 0 ){
44744 0 0 if( SyBlobLength(&pCur->sBlob) > 0 ){
44766 0 0 if((pTos->iFlags & MEMOBJ_STRING) == 0 ){
44770 0 0 if((pNos->iFlags & MEMOBJ_STRING) == 0 ){
44775 0 0 if( SyBlobLength(&pNos->sBlob) > 0 ){
44779 0 0 if( pTos->nIdx == SXU32_HIGH ){
44781 0 0 }else if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0 ){
44810 0 0 if((pTos->iFlags & MEMOBJ_BOOL) == 0 ){
44813 0 0 if((pNos->iFlags & MEMOBJ_BOOL) == 0 ){
44818 0 0 if( pInstr->iOp == JX9_OP_LAND ){
44825 0 0 if( v1 == 2 ){
44851 0 0 if((pTos->iFlags & MEMOBJ_BOOL) == 0 ){
44854 0 0 if((pNos->iFlags & MEMOBJ_BOOL) == 0 ){
44857 0 0 if( (pNos->x.iVal && !pTos->x.iVal) || (pTos->x.iVal && !pNos->x.iVal) ){
0 0 if( (pNos->x.iVal && !pTos->x.iVal) || (pTos->x.iVal && !pNos->x.iVal) ){
0 0 if( (pNos->x.iVal && !pTos->x.iVal) || (pTos->x.iVal && !pNos->x.iVal) ){
0 0 if( (pNos->x.iVal && !pTos->x.iVal) || (pTos->x.iVal && !pNos->x.iVal) ){
44889 0 0 if( pInstr->iOp == JX9_OP_EQ ){
44895 0 0 if( !pInstr->iP2 ){
44902 0 0 if( rc ){
44927 0 0 if( !pInstr->iP2 ){
44934 0 0 if( rc ){
44961 0 0 if( !pInstr->iP2 ){
44968 0 0 if( rc ){
45004 0 0 if( pInstr->iOp == JX9_OP_LE ){
45010 0 0 if( !pInstr->iP2 ){
45017 0 0 if( rc ){
45053 0 0 if( pInstr->iOp == JX9_OP_GE ){
45059 0 0 if( !pInstr->iP2 ){
45066 0 0 if( rc ){
45086 0 0 if( SyStringLength(&pInfo->sValue) < 1 ){
45088 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
45093 0 0 if( SyBlobLength(&pTos->sBlob) > 0 ){
45099 0 0 if( (pInfo->iFlags & JX9_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) < 1 ){
0 0 if( (pInfo->iFlags & JX9_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) < 1 ){
45100 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
45105 0 0 if( SyBlobLength(&pTos->sBlob) > 0 ){
45112 0 0 if( (pTos->iFlags & (MEMOBJ_HASHMAP)) == 0 || SyStringLength(&pInfo->sValue) < 1 ){
0 0 if( (pTos->iFlags & (MEMOBJ_HASHMAP)) == 0 || SyStringLength(&pInfo->sValue) < 1 ){
45114 0 0 if( (pTos->iFlags & MEMOBJ_NULL) == 0 ){
45122 0 0 if( pStep == 0 ){
45131 0 0 if( pTos->iFlags & MEMOBJ_HASHMAP ){
45140 0 0 if( SXRET_OK != SySetPut(&pInfo->aStep, (const void *)&pStep) ){
45163 0 0 pMap = pStep->pMap;
45176 0 0 if( (pStep->iFlags & JX9_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0 ){
0 0 if( (pStep->iFlags & JX9_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0 ){
45178 0 0 if( pKey ){
45184 0 0 if( pValue ){
45201 0 0 if( pTos->iFlags & MEMOBJ_HASHMAP ){
45203 0 0 pMap = (jx9_hashmap *)pTos->x.pOther;
45208 0 0 if( rc == SXRET_OK ){
45210 0 0 if( pMap->iRef < 2 ){
45248 0 0 for( n = 0 ; n < nEntry ; ++n ){
45257 0 0 if( rc == 0 ){
45264 0 0 if( n >= nEntry ){
45266 0 0 if( pSwitch->nDefault > 0 ){
45281 0 0 if( pVm->pFrame->pParent ){
45285 0 0 while( pLink <= pTos ){
45286 0 0 if((pLink->iFlags & MEMOBJ_STRING) == 0 ){
45291 0 0 if( sName.nByte > 0 ){
45310 0 0 if( (pTos->iFlags & MEMOBJ_STRING) == 0 ){
45314 0 0 if( pInstr->iP1 > 0 ){
45324 0 0 if( pEntry ){
45334 0 0 if( pVm->nRecursionDepth > pVm->nMaxDepth ){
45339 0 0 if( pInstr->iP1 > 0 ){
45346 0 0 if( pVmFunc->pNextName ){
45354 0 0 if( rc != SXRET_OK ){
45360 0 0 if( pInstr->iP1 > 0 ){
45367 0 0 if( SySetUsed(&pVmFunc->aStatic) > 0 ){
45371 0 0 for( n = 0 ; n < SySetUsed(&pVmFunc->aStatic) ; ++n ){
45373 0 0 if( pStatic->nIdx == SXU32_HIGH ){
45376 0 0 if( pObj ){
45379 0 0 if( SySetUsed(&pStatic->aByteCode) > 0 ){
45395 0 0 while( pArg < pTos ){
45396 0 0 if( n < SySetUsed(&pVmFunc->aArgs) ){
45397 0 0 if( (pArg->iFlags & MEMOBJ_NULL) && SySetUsed(&aFormalArg[n].aByteCode) > 0 ){
0 0 if( (pArg->iFlags & MEMOBJ_NULL) && SySetUsed(&aFormalArg[n].aByteCode) > 0 ){
45400 0 0 if( rc == JX9_ABORT ){
45405 0 0 if( aFormalArg[n].nType > 0 ){
45406 0 0 if( ((pArg->iFlags & aFormalArg[n].nType) == 0) ){
45409 0 0 if( xCast ){
45425 0 0 if( pObj ){
45437 0 0 while( n < SySetUsed(&pVmFunc->aArgs) ){
45438 0 0 if( SySetUsed(&aFormalArg[n].aByteCode) > 0 ){
45440 0 0 if( pObj ){
45443 0 0 if( rc == JX9_ABORT ){
45451 0 0 if( aFormalArg[n].nType > 0 && ((pObj->iFlags & aFormalArg[n].nType) == 0) ){
0 0 if( aFormalArg[n].nType > 0 && ((pObj->iFlags & aFormalArg[n].nType) == 0) ){
45467 0 0 if( pFrameStack == 0 ){
45471 0 0 if( pInstr->iP1 > 0 ){
45486 0 0 if( rc == JX9_ABORT ){
45496 0 0 if( pEntry == 0 ){
45500 0 0 if( pInstr->iP1 > 0 ){
45510 0 0 while( pArg < pTos ){
45522 0 0 if( rc == JX9_ABORT ){
45525 0 0 if( pInstr->iP1 > 0 ){
45546 0 0 while( pOut <= pTos ){
45548 0 0 if( (pOut->iFlags & MEMOBJ_STRING) == 0 ){
45551 0 0 if( SyBlobLength(&pOut->sBlob) > 0 ){
45558 0 0 if( rc == SXERR_ABORT ){
45577 0 0 while( pTos >= pStack ){
45594 0 0 if( pStack == 0 ){
45612 0 0 if( pVm->nMagic != JX9_VM_RUN ){
45613 0 0 return pVm->nMagic == JX9_VM_EXEC ? SXERR_LOCKED /* Locked VM */ : SXERR_CORRUPT; /* Stale VM */
45634 0 0 if( pVm->nMagic != JX9_VM_EXEC ){
45657 0 0 if( pString->nByte > 0 ){
45682 0 0 if( SyBlobLength(&sWorker) > 0 ){
45830 0 0 if( pFrame->pParent == 0 ){
45860 0 0 if( nArg < 1 || pFrame->pParent == 0 ){
0 0 if( nArg < 1 || pFrame->pParent == 0 ){
45868 0 0 if( nArg < 0 || nArg >= (int)SySetUsed(&pFrame->sArg) ){
0 0 if( nArg < 0 || nArg >= (int)SySetUsed(&pFrame->sArg) ){
45874 0 0 if( (pSlot = (VmSlot *)SySetAt(&pFrame->sArg, (sxu32)nArg)) != 0 ){
0 0 if( (pSlot = (VmSlot *)SySetAt(&pFrame->sArg, (sxu32)nArg)) != 0 ){
45875 0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pSlot->nIdx)) != 0 ){
0 0 if( (pObj = (jx9_value *)SySetAt(&pVm->aMemObj, pSlot->nIdx)) != 0 ){
45907 0 0 if( pFrame->pParent == 0 ){
45915 0 0 if( pArray == 0 ){
45923 0 0 for( n = 0; n < SySetUsed(&pFrame->sArg) ; n++ ){
45924 0 0 pObj = (jx9_value *)SySetAt(&pCtx->pVm->aMemObj, aSlot[n].nIdx);
45925 0 0 if( pObj ){
45947 0 0 if( nArg < 1 ){
45975 0 0 if( pValue->iFlags & MEMOBJ_STRING ){
46008 0 0 if( nArg < 1 ){
46058 0 0 if( pArray == 0 ){
46091 0 0 if((pFunc->iFlags & (MEMOBJ_STRING)) == 0 ){
46093 0 0 if( pResult ){
46101 0 0 if( aStack == 0 ){
46104 0 0 if( pResult ){
46111 0 0 for( i = 0 ; i < nArg ; i++ ){
46157 0 0 if( pArg == 0 ){
46181 0 0 if( nArg < 1 ){
46190 0 0 if( nLen > 0 && SyHashGet(&pCtx->pVm->hConstant, (const void *)zName, (sxu32)nLen) != 0 ){
0 0 if( nLen > 0 && SyHashGet(&pCtx->pVm->hConstant, (const void *)zName, (sxu32)nLen) != 0 ){
46228 0 0 if( pArray == 0 ){
46274 0 0 for( i = 0 ; i < nLen ; ++i ){
46297 0 0 if( nArg > 1 ){
46301 0 0 if( iMin < iMax ){
46303 0 0 if( iDiv > 0 ){
46306 0 0 }else if(iMax > 0 ){
46348 0 0 if( nArg > 0 ){
46351 0 0 if( iLen < 1 || iLen > 1024 ){
46389 0 0 for( i = 0 ; i < nArg ; ++i ){
46391 0 0 if( nDataLen > 0 ){
46395 0 0 if( rc == SXERR_ABORT ){
46418 0 0 if( nArg > 0 ){
46419 0 0 if( jx9_value_is_string(apArg[0]) ){
46425 0 0 }else if(jx9_value_is_int(apArg[0]) ){
46438 0 0 JX9_PRIVATE sxi32 jx9VmUnsetMemObj(jx9_vm *pVm,sxu32 nObjIdx)
46442 0 0 if( pObj ){
46465 0 0 if( nArg > 0 ){
46487 0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_resource(apArg[0]) ){
46509 0 0 for( i = 0 ; i < nArg ; i++ ){
46510 0 0 jx9_value *pObj = apArg[i];
46516 0 0 if( SyBlobLength(&sDump) > 0 ){
46595 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
46602 0 0 if( nLen < 1 ){
46609 0 0 if( rc != SXRET_OK ){
46614 0 0 if( nArg > 1 ){
46620 0 0 if( pComp->nByte < 1 ){
46629 0 0 if( pComp->nByte < 1 ){
46638 0 0 if( pComp->nByte < 1 ){
46650 0 0 if( pComp->nByte < 1 ){
46659 0 0 if( pComp->nByte < 1 ){
46668 0 0 if( pComp->nByte < 1 ){
46677 0 0 if( pComp->nByte < 1 ){
46686 0 0 if( pComp->nByte < 1 ){
46703 0 0 if( pArray == 0 || pValue == 0 ){
46712 0 0 if( pComp->nByte > 0 ){
46719 0 0 if( pComp->nByte > 0 ){
46726 0 0 if( pComp->nByte > 0 ){
46736 0 0 if( pComp->nByte > 0 ){
46743 0 0 if( pComp->nByte > 0 ){
46750 0 0 if( pComp->nByte > 0 ){
46757 0 0 if( pComp->nByte > 0 ){
46764 0 0 if( pComp->nByte > 0 ){
46849 0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_json_array(apArg[0]) ){
46856 0 0 if( pMap->nEntry < 1 ){
46863 0 0 if( nArg > 1 ){
46865 0 0 if( nArg > 2 ){
46887 0 0 if( (iFlags & 0x10/* EXTR_PREFIX_INVALID */) && (pKey->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL|MEMOBJ_REAL))){
0 0 if( (iFlags & 0x10/* EXTR_PREFIX_INVALID */) && (pKey->iFlags & (MEMOBJ_INT|MEMOBJ_BOOL|MEMOBJ_REAL))){
46892 0 0 if( SyBlobLength(&pKey->sBlob) < 1 ){
46897 0 0 if( (iFlags & 0x08/*EXTR_PREFIX_ALL*/ ) && pAux->Prefixlen > 0 ){
0 0 if( (iFlags & 0x08/*EXTR_PREFIX_ALL*/ ) && pAux->Prefixlen > 0 ){
46909 0 0 if( pObj ){
46911 0 0 if( iFlags & 0x02 /* EXTR_SKIP */ ){
46914 0 0 if( iFlags & 0x04 /* EXTR_PREFIX_SAME */ ){
46915 0 0 if( (iFlags & 0x08/*EXTR_PREFIX_ALL*/) || pAux->Prefixlen < 1){
0 0 if( (iFlags & 0x08/*EXTR_PREFIX_ALL*/) || pAux->Prefixlen < 1){
46931 0 0 if( pObj ){
46959 0 0 if( bTrueReturn ){
46970 0 0 if( pVm->sCodeGen.nErr > 0 ){
46972 0 0 if( pCtx ){
46977 0 0 if( SXRET_OK != jx9VmEmitInstr(pVm, JX9_OP_DONE, 0, 0, 0, 0) ){
46979 0 0 if( pCtx ){
46984 0 0 if( bTrueReturn ){
46993 0 0 if( pCtx ){
47014 0 0 for( n = 0 ; n < SySetUsed(&pVm->aIncluded) ; ++n ){
47015 0 0 if( SyStringCmp(pFile, &aEntries[n], SyMemcmp) == 0 ){
0 0 if( SyStringCmp(pFile, &aEntries[n], SyMemcmp) == 0 ){
47033 0 0 if( nLen < 0 ){
47038 0 0 if( zDup == 0 ){
47061 0 0 if( !bMain ){
47062 0 0 if( VmIsIncludedFile(&(*pVm), &sPath) ){
47068 0 0 if( rc != SXRET_OK ){
47114 0 0 if( pHandle == 0 ){
47118 0 0 if( IncludeOnce && !isNew ){
0 0 if( IncludeOnce && !isNew ){
47124 0 0 if( rc == SXRET_OK ){
47168 0 0 if( nArg < 1 ){
47175 0 0 if( sFile.nByte < 1 ){
47182 0 0 if( rc != SXRET_OK ){
47202 0 0 if( nArg < 1 ){
47209 0 0 if( sFile.nByte < 1 ){
47216 0 0 if( rc == SXERR_EXISTS ){
47221 0 0 if( rc != SXRET_OK ){
47244 0 0 while( zIn < zEnd ){
47245 0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == c ){
0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == c ){
0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == c ){
47263 0 0 while( zIn < zEnd ){
47264 0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == '-' ){
0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == '-' ){
0 0 if( zIn[0] == '-' && &zIn[1] < zEnd && (int)zIn[1] == '-' ){
47267 0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
47268 0 0 if( zIn[0] == '=' /* --opt=val */){
47274 0 0 if( (int)(zIn-zOpt) == nByte && SyMemcmp(zOpt, zLong, nByte) == 0 ){
0 0 if( (int)(zIn-zOpt) == nByte && SyMemcmp(zOpt, zLong, nByte) == 0 ){
47311 0 0 if( !need_val ){
47321 0 0 if( zArg < zArgEnd && zArg[0] == '=' ){
0 0 if( zArg < zArgEnd && zArg[0] == '=' ){
47324 0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
47327 0 0 if( zArg >= zArgEnd || zArg[0] == '-' ){
0 0 if( zArg >= zArgEnd || zArg[0] == '-' ){
47337 0 0 if( zArg[0] == '\'' || zArg[0] == '"' ){
47342 0 0 while( zArg < zArgEnd ){
47343 0 0 if( zArg[0] == d && zArg[-1] != '\\' ){
0 0 if( zArg[0] == d && zArg[-1] != '\\' ){
47351 0 0 if( zArg < zArgEnd ){ zArg++; }
47353 0 0 while( zArg < zArgEnd && !SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && !SyisSpace(zArg[0]) ){
47363 0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
47366 0 0 if( zArg < zArgEnd && zArg[0] != '-' ){
0 0 if( zArg < zArgEnd && zArg[0] != '-' ){
47369 0 0 if( pOptArg == 0 ){
47375 0 0 if( zArg >= zArgEnd || zArg[0] == '-' ){
0 0 if( zArg >= zArgEnd || zArg[0] == '-' ){
47381 0 0 if( zArg < zArgEnd && zArg[0] == '\\' ){
47385 0 0 while( zArg < zArgEnd && !SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && !SyisSpace(zArg[0]) ){
47395 0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
0 0 while( zArg < zArgEnd && (unsigned char)zArg[0] < 0xc0 && SyisSpace(zArg[0]) ){
47435 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
47449 0 0 if( pArray == 0 || pWorker == 0 ){
47454 0 0 if( SyBlobLength(pArg) < 1 ){
47471 0 0 while( zIn < zEnd ){
47477 0 0 if( !SyisAlphaNum(c) ){
47480 0 0 if( zIn < zEnd && zIn[0] == ':' ){
0 0 if( zIn < zEnd && zIn[0] == ':' ){
47483 0 0 if( zIn < zEnd && zIn[0] == ':' ){
0 0 if( zIn < zEnd && zIn[0] == ':' ){
47489 0 0 if( zArg == 0 ){
47496 0 0 if( nArg > 1 && jx9_value_is_json_array(apArg[1]) && jx9_array_count(apArg[1]) > 0 ){
0 0 if( nArg > 1 && jx9_value_is_json_array(apArg[1]) && jx9_array_count(apArg[1]) > 0 ){
0 0 if( nArg > 1 && jx9_value_is_json_array(apArg[1]) && jx9_array_count(apArg[1]) > 0 ){
47518 0 0 if( !jx9_value_is_string(pValue) ){
47523 0 0 if( nByte < 1 ){
47528 0 0 if( zEnd[0] == ':' ){
47532 0 0 while( zEnd >= zOpt && zEnd[0] == ':' ){
0 0 while( zEnd >= zOpt && zEnd[0] == ':' ){
47535 0 0 if( zOpt >= zEnd ){
47548 0 0 if( zArg == 0 ){
47580 0 0 if( nArg < 1 ){
47587 0 0 if( nByte < 1 ){
47595 0 0 if( zIn >= zEnd ){
47603 0 0 if( c<0x00080 ){
47695 0 0 READ_UTF8(z, zTerm, c);
0 0 READ_UTF8(z, zTerm, c);
0 0 READ_UTF8(z, zTerm, c);
0 0 READ_UTF8(z, zTerm, c);
0 0 READ_UTF8(z, zTerm, c);
0 0 READ_UTF8(z, zTerm, c);
47712 0 0 if( nArg < 1 ){
47719 0 0 if( nByte < 1 ){
47726 0 0 while( zIn < zEnd ){
47728 0 0 if( c == 0x0 ){
47747 0 0 if( nArg < 1 ){
47778 0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
0 0 if( nArg < 1 || !jx9_value_is_string(apArg[0]) ){
47785 0 0 if( nByte < 1 ){
47847 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aVmFunc) ; ++n ){
47853 0 0 if( rc != SXRET_OK ){
47882 0 0 while( zIn < zEnd ){
47883 0 0 if( zIn < &zEnd[-3]/*://*/ && zIn[0] == ':' && zIn[1] == '/' && zIn[2] == '/' ){
0 0 if( zIn < &zEnd[-3]/*://*/ && zIn[0] == ':' && zIn[1] == '/' && zIn[2] == '/' ){
0 0 if( zIn < &zEnd[-3]/*://*/ && zIn[0] == ':' && zIn[1] == '/' && zIn[2] == '/' ){
0 0 if( zIn < &zEnd[-3]/*://*/ && zIn[0] == ':' && zIn[1] == '/' && zIn[2] == '/' ){
47891 0 0 if( zIn >= zEnd ){
47897 0 0 SyStringFullTrim(&sDev);
0 0 SyStringFullTrim(&sDev);
0 0 SyStringFullTrim(&sDev);
0 0 SyStringFullTrim(&sDev);
0 0 SyStringFullTrim(&sDev);
0 0 SyStringFullTrim(&sDev);
47901 0 0 for( n = 0 ; n < nEntry ; n++ ){
47905 0 0 rc = SyStringCmp(&sDev, &sCur, SyStrnicmp);
47906 0 0 if( rc == 0 ){
47950 0 0 SyStringFullTrim(&pOut->sRaw);
0 0 SyStringFullTrim(&pOut->sRaw);
0 0 SyStringFullTrim(&pOut->sRaw);
0 0 SyStringFullTrim(&pOut->sRaw);
0 0 SyStringFullTrim(&pOut->sRaw);
0 0 SyStringFullTrim(&pOut->sRaw);
47953 0 0 if( rc != SXRET_OK ){
47960 0 0 if( zUri != zCur && zCur[-1] == ':' ){
0 0 if( zUri != zCur && zCur[-1] == ':' ){
47969 0 0 SyStringLeftTrim(pComp);
0 0 SyStringLeftTrim(pComp);
0 0 SyStringLeftTrim(pComp);
47971 0 0 if( zCur[1] != '/' ){
47972 0 0 if( zCur == zUri || zCur[-1] == ':' ){
0 0 if( zCur == zUri || zCur[-1] == ':' ){
47987 0 0 if( rc == SXRET_OK ){
47993 0 0 if( rc == SXRET_OK ){
47994 0 0 if( nPos > 0 ){
48000 0 0 if( rc == SXRET_OK && nPassOfft < nPos){
0 0 if( rc == SXRET_OK && nPassOfft < nPos){
48013 0 0 while( zUri < zCur && SyisSpace(zUri[0])){
0 0 while( zUri < zCur && SyisSpace(zUri[0])){
48017 0 0 if( pComp->zString[0] == '[' ){
48021 0 0 while( ((unsigned char)zUri[0] < 0xc0 && SyisHex(zUri[0])) || zUri[0] == ':' ){
0 0 while( ((unsigned char)zUri[0] < 0xc0 && SyisHex(zUri[0])) || zUri[0] == ':' ){
0 0 while( ((unsigned char)zUri[0] < 0xc0 && SyisHex(zUri[0])) || zUri[0] == ':' ){
48024 0 0 if( zUri[0] != ']' ){
48032 0 0 if( rc == SXRET_OK ){
48033 0 0 if( bIPv6 == FALSE ){
48039 0 0 if( bHostOnly == TRUE ){
48046 0 0 if( pComp->nByte == 0 ){
48049 0 0 if( SXRET_OK == SyByteFind(zUri, (sxu32)(zEnd-zUri), '?', &nPos) ){
48054 0 0 if( SXRET_OK == SyByteFind(zUri, (sxu32)(zEnd-zUri), '#', &nPos) ){
48056 0 0 if( pComp == &pOut->sPath ){
48059 0 0 if( &zUri[nPos] < (char *)SyStringData(pComp) ){
48080 0 0 SyStringLeftTrim(pCursor);
0 0 SyStringLeftTrim(pCursor);
0 0 SyStringLeftTrim(pCursor);
48081 0 0 if( pCursor->nByte < 1 ){
48086 0 0 if( SXRET_OK != SyByteListFind(pCursor->zString, pCursor->nByte, "\r\n", &nPos) ){
48110 0 0 if( nLen < 1 ){
48114 0 0 if( pLast && (zLine[-1] == ' ' || zLine[-1] == '\t') ){
0 0 if( pLast && (zLine[-1] == ' ' || zLine[-1] == '\t') ){
48116 0 0 SyStringFullTrim(pTmp);
0 0 SyStringFullTrim(pTmp);
0 0 SyStringFullTrim(pTmp);
0 0 SyStringFullTrim(pTmp);
0 0 SyStringFullTrim(pTmp);
0 0 SyStringFullTrim(pTmp);
48117 0 0 if( pTmp->nByte == 0 ){
48129 0 0 if(rc != SXRET_OK ){
48133 0 0 SyStringFullTrim(pName);
0 0 SyStringFullTrim(pName);
0 0 SyStringFullTrim(pName);
0 0 SyStringFullTrim(pName);
0 0 SyStringFullTrim(pName);
0 0 SyStringFullTrim(pName);
48137 0 0 SyStringFullTrim(&pHdr->sValue);
0 0 SyStringFullTrim(&pHdr->sValue);
0 0 SyStringFullTrim(&pHdr->sValue);
0 0 SyStringFullTrim(&pHdr->sValue);
0 0 SyStringFullTrim(&pHdr->sValue);
0 0 SyStringFullTrim(&pHdr->sValue);
48155 0 0 if( SySetUsed(pOut) > 0 ){
48163 0 0 if(rc != SXRET_OK ){
48164 0 0 if( sCurrent.nByte < 1 ){
48170 0 0 if( SXRET_OK == VmHttpProcessOneHeader(&sHdr, pLast, sCurrent.zString, sCurrent.nByte)){
48171 0 0 if( SXRET_OK != SySetPut(pOut, (const void *)&sHdr) ){
48179 0 0 if( bEol ){
48207 0 0 if( rc != SXRET_OK ){
48210 0 0 if ( sLine.nByte < 1 ){
48217 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
48222 0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
48226 0 0 if( zIn > zPtr ){
48229 0 0 for( i = 0 ; i < SX_ARRAYSIZE(azMethods) ; ++i ){
48230 0 0 if( SyStrnicmp(azMethods[i], zPtr, nLen) == 0 ){
48237 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
48242 0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
48245 0 0 if( zIn > zPtr ){
48251 0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && (unsigned char)zIn[0] < 0xc0 && SyisSpace(zIn[0]) ){
48256 0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && !SyisSpace(zIn[0]) ){
48261 0 0 if( zIn > zPtr ){
48264 0 0 if( !rc ){
48290 0 0 if( is_post ){
48301 0 0 while(zIn < zEnd && SyisSpace(zIn[0]) ){
0 0 while(zIn < zEnd && SyisSpace(zIn[0]) ){
48304 0 0 if( zIn >= zEnd ){
48308 0 0 while( zPtr < zEnd && zPtr[0] != '=' && zPtr[0] != '&' && zPtr[0] != ';' ){
0 0 while( zPtr < zEnd && zPtr[0] != '=' && zPtr[0] != '&' && zPtr[0] != ';' ){
48319 0 0 if( zPtr < zEnd && zPtr[0] == '=' ){
0 0 if( zPtr < zEnd && zPtr[0] == '=' ){
48323 0 0 while( zPtr < zEnd && zPtr[0] != '&' && zPtr[0] != ';' ){
0 0 while( zPtr < zEnd && zPtr[0] != '&' && zPtr[0] != ';' ){
0 0 while( zPtr < zEnd && zPtr[0] != '&' && zPtr[0] != ';' ){
48326 0 0 if( zPtr > zIn ){
48339 0 0 if( pGet && (pGet->iFlags & MEMOBJ_HASHMAP) ){
0 0 if( pGet && (pGet->iFlags & MEMOBJ_HASHMAP) ){
48345 0 0 if( pRequest && (pRequest->iFlags & MEMOBJ_HASHMAP) ){
0 0 if( pRequest && (pRequest->iFlags & MEMOBJ_HASHMAP) ){
48370 0 0 for( n = 0 ; n < SySetUsed(pSet) ; ++n ){
48372 0 0 if( SyStringCmp(&sMime, &pMime->sName, SyStrnicmp) == 0 ){
0 0 if( SyStringCmp(&sMime, &pMime->sName, SyStrnicmp) == 0 ){
48392 0 0 if( pCookie == 0 || (pCookie->iFlags & MEMOBJ_HASHMAP) == 0 ){
0 0 if( pCookie == 0 || (pCookie->iFlags & MEMOBJ_HASHMAP) == 0 ){
48398 0 0 while( zIn < zEnd && SyisSpace(zIn[0]) ){
0 0 while( zIn < zEnd && SyisSpace(zIn[0]) ){
48401 0 0 if( zIn >= zEnd ){
48408 0 0 while( zDelimiter < zEnd && zDelimiter[0] != ';' ){
0 0 while( zDelimiter < zEnd && zDelimiter[0] != ';' ){
48412 0 0 while( zPtr < zDelimiter && zPtr[0] != '=' ){
0 0 while( zPtr < zDelimiter && zPtr[0] != '=' ){
48421 0 0 if( zPtr < zDelimiter ){
48462 0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
48465 0 0 if( rc != SXRET_OK ){
48477 0 0 iVer == HTTP_PROTO_10 ? "HTTP/1.0" : "HTTP/1.1",
48490 0 0 if( SyStringLength(&sUri.sQuery) > 0 && iMethod == HTTP_METHOD_GET ){
0 0 if( SyStringLength(&sUri.sQuery) > 0 && iMethod == HTTP_METHOD_GET ){
48533 0 0 if( pValue ){
48543 0 0 if( pValue ){
48553 0 0 if( pValue ){
48563 0 0 if( pValue ){
48573 0 0 if( pValue ){
48583 0 0 if( pValue ){
48593 0 0 if( pValue ){
48603 0 0 if( pValue ){
48615 0 0 if( pValue ){
48637 0 0 if( pHeaderArray && (pHeaderArray->iFlags & MEMOBJ_HASHMAP)){
0 0 if( pHeaderArray && (pHeaderArray->iFlags & MEMOBJ_HASHMAP)){
48644 0 0 if( pName->nByte == sizeof("Cookie")-1 && SyStrnicmp(pName->zString, "Cookie", sizeof("Cookie")-1) == 0
0 0 if( pName->nByte == sizeof("Cookie")-1 && SyStrnicmp(pName->zString, "Cookie", sizeof("Cookie")-1) == 0
48645 0 0 && pValue->nByte > 0){
48650 0 0 if( iMethod == HTTP_METHOD_POST ){
48653 0 0 if( pValue && pValue->nByte >= sizeof("application/x-www-form-urlencoded") - 1 &&
48657 0 0 if( pValue ){
48660 0 0 if( iLen > 0 ){
48662 0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
0 0 SyStringFullTrim(&sRequest);
48663 0 0 if( (int)sRequest.nByte > iLen ){
48840 36 3 if( pEngine->nBuckRec < 1 ){
48846 36 0 if( pRec == 0 ){
48849 36 0 if( pRec->iLogic == iLogic ){
48867 4 0 if( pRec == 0 ){
48877 0 4 if( pEngine->apMap[iBucket] ){
48882 4 0 if( pEngine->pFirst == 0 ){
48885 0 0 MACRO_LD_PUSH(pEngine->pList,pRec);
48888 0 4 if( (pEngine->nBuckRec >= pEngine->nBuckSize * 3) && pEngine->nBuckRec < 100000 ){
0 0 if( (pEngine->nBuckRec >= pEngine->nBuckSize * 3) && pEngine->nBuckRec < 100000 ){
48896 0 0 if( apNew ){
48904 0 0 if( n >= pEngine->nBuckRec ){
48911 0 0 if( apNew[iBucket] ){
48937 0 1 if( pMap->iPtr == 0 ){
48948 1 1 for( n = 0; n < pMap->nRec ; ++n ){
48949 1 0 if( zRaw >= zEnd ){
48959 0 1 if( rc != UNQLITE_OK ){
48974 9 0 if( pCell == 0 ){
48991 0 6 if( pCell->pPrevCol ){
48996 1 5 if( pCell->pNextCol ){
48999 5 1 MACRO_LD_REMOVE(pPage->pList,pCell);
1 5 MACRO_LD_REMOVE(pPage->pList,pCell);
2 4 MACRO_LD_REMOVE(pPage->pList,pCell);
49000 4 2 if( pCell == pPage->pFirst ){
49015 6 3 if( pPage->nCell < 1 ){
49020 6 0 if( apTable == 0 ){
49031 1 8 if( pPage->apCell[iBucket] ){
49035 6 3 if( pPage->pFirst == 0 ){
49038 0 3 MACRO_LD_PUSH(pPage->pList,pCell);
49041 0 9 if( (pPage->nCell >= pPage->nCellSize * 3) && pPage->nCell < 100000 ){
0 0 if( (pPage->nCell >= pPage->nCellSize * 3) && pPage->nCell < 100000 ){
49049 0 0 if( apNew ){
49057 0 0 if( n >= pPage->nCell ){
49064 0 0 if( apNew[iBucket] ){
49096 0 0 if( pCmp->zIn >= pCmp->zEnd ){
49097 0 0 if( nLen > 0 ){
49104 0 0 if( rc != 0 ){
49125 32 4 if( pPage->nCell < 1 ){
49132 29 6 if( pEntry == 0 ){
49135 26 3 if( pEntry->nHash == nHash && pEntry->nKey == nByte ){
26 0 if( pEntry->nHash == nHash && pEntry->nKey == nByte ){
49136 0 26 if( SyBlobLength(&pEntry->sKey) < 1 ){
49146 0 0 if( rc == UNQLITE_OK ){
49150 26 0 }else if ( pPage->pHash->xCmp(pKey,SyBlobData(&pEntry->sKey),nByte) == 0 ){
49185 0 1 if( iNext > 0 && &pPage->pRaw->zData[iNext] >= zEnd ){
0 0 if( iNext > 0 && &pPage->pRaw->zData[iNext] >= zEnd ){
49190 1 0 if( pCell == 0 ){
49205 0 1 if( rc != UNQLITE_OK ){
49211 1 0 if( rc != UNQLITE_OK ){
49214 1 0 if( ppOut ){
49228 0 1 if( pHdr->iFree < 1 ){
49243 1 1 if( iNext < 1 ){
49249 1 0 if( zRaw >= zEnd ){
49269 1 0 if( rc != UNQLITE_OK ){
49272 0 1 if( pHdr->iOfft < 1 ){
49282 0 1 if( rc != UNQLITE_OK ){
49285 1 0 if( pCell->iNext < 1 ){
49291 0 0 if( zRaw >= zEnd ){
49329 4 0 if( pPage == 0 ){
49337 4 0 pPage->pMaster = pMaster ? pMaster /* Slave page */ : pPage /* Master page */ ;
49338 0 4 if( pPage->pMaster != pPage ){
49359 46 0 if( rc != UNQLITE_OK ){
49362 1 45 if( pRaw->pUserData ){
49368 1 0 if( pPage == 0 ){
49373 1 0 if( rc == UNQLITE_OK ){
49377 0 1 if( rc != UNQLITE_OK ){
49381 1 0 if( pPage->sHdr.iSlave > 0 && iNest < 128 ){
0 0 if( pPage->sHdr.iSlave > 0 && iNest < 128 ){
49382 0 0 if( pMaster == 0 ){
49389 46 0 if( ppOut ){
49410 1 0 if( pCell->iOvfl == 0 ){
49414 1 0 if( rc != UNQLITE_OK ){
49428 0 0 if( iOvfl == 0 || nData < 1 ){
49434 0 0 if( rc != UNQLITE_OK ){
49439 0 0 if( !data_offset ){
49445 0 0 if( offt_only ){
49453 0 0 if( nData <= nByte ){
49455 0 0 if( rc != UNQLITE_OK ){
49462 0 0 if( rc != UNQLITE_OK ){
49492 16 0 if( pCell->iOvfl == 0 ){
49496 16 0 if( rc != UNQLITE_OK ){
49509 0 0 if( iOvfl == 0 || nData < 1 ){
49515 0 0 if( rc != UNQLITE_OK ){
49520 0 0 if( !fix_offset ){
49531 0 0 if( nData <= (sxu64)nByte ){
49533 0 0 if( rc != UNQLITE_OK ){
49539 0 0 if( nByte > 0 ){
49541 0 0 if( rc != UNQLITE_OK ){
49570 1 0 if( pEngine->nMagic != L_HASH_MAGIC ){
49578 0 1 if( pEngine->xHash(L_HASH_WORD,sizeof(L_HASH_WORD)-1) != nHash ){
49607 1 0 if( rc != UNQLITE_OK ){
49614 0 1 if( iNext == 0 ){
49620 0 0 if( rc != UNQLITE_OK ){
49628 0 0 if( rc != UNQLITE_OK ){
49653 29 1 if( rc != UNQLITE_OK ){
49660 15 14 if( iBucket >= (pEngine->split_bucket + pEngine->max_split_bucket) ){
49666 0 29 if( pRec == 0 ){
49672 29 0 if( rc != UNQLITE_OK ){
49678 5 24 if( pCell == 0 ){
49682 24 0 if( ppCell ){
49695 0 3 if( pEngine->nFreeList != 0 ){
49698 0 0 if( rc == UNQLITE_OK ){
49703 0 0 if( rc != UNQLITE_OK ){
49717 3 0 if( rc != UNQLITE_OK ){
49732 0 3 if( pMap->iPtr > (pEngine->iPageSize - 16) /* 8 byte logical bucket number + 8 byte real bucket number */ ){
49736 0 0 if( rc != UNQLITE_OK ){
49741 0 0 if( rc != UNQLITE_OK ){
49751 0 0 if( rc != UNQLITE_OK ){
49754 0 0 if( pOld->pgno == pEngine->pHeader->pgno ){
49765 0 0 if( rc != UNQLITE_OK ){
49770 3 0 if( pPage == 0){
49773 3 0 if( rc != UNQLITE_OK ){
49779 3 0 if( rc != UNQLITE_OK ){
49789 3 0 if( rc == UNQLITE_OK ){
49792 3 0 if( pPage->pgno == pEngine->pHeader->pgno ){
49800 0 0 if( rc != UNQLITE_OK ){
49826 0 0 if( pCell == 0 ){
49830 0 0 if( pCell->pPage->pRaw->pgno == pPage->pRaw->pgno ){
49833 0 0 if( pCell->iOvfl == 0 ){
49856 0 0 if( zPayload ){
49861 0 0 if( zPtr >= zEnd ){
49871 0 0 if( pPage->nFree > 3 ){
49906 0 10 if( (sxu64)pPage->nFree < nAmount ){
49910 10 0 if( pPage->nCell < 10 && ((int)nAmount >= (pPage->pHash->iPageSize / 2)) ){
0 10 if( pPage->nCell < 10 && ((int)nAmount >= (pPage->pHash->iPageSize / 2)) ){
49921 0 10 if( zPtr >= zEnd ){
49928 0 10 if( iBlksz >= nByte ){
49933 0 0 if( iNext == 0 ){
49936 0 0 if( rc == UNQLITE_OK && pPage->nFree >= nByte) {
0 0 if( rc == UNQLITE_OK && pPage->nFree >= nByte) {
49952 10 0 if( rc != UNQLITE_OK ){
49958 10 0 if( iBlksz >= nByte && (iBlksz - nByte) > 3 ){
7 3 if( iBlksz >= nByte && (iBlksz - nByte) > 3 ){
49969 0 10 if( zPrev ){
50028 10 0 if( nDatalen > 0 ){
50049 0 0 if( rc != UNQLITE_OK ){
50054 0 0 if( rc != UNQLITE_OK ){
50071 0 0 if( zPtr >= zEnd ){
50074 0 0 if( zRaw >= zRawEnd ){
50077 0 0 if( rc != UNQLITE_OK ){
50081 0 0 if( rc != UNQLITE_OK ){
50116 0 0 if( pData == 0 ){
50124 0 0 if( zPtr >= zEnd ){
50127 0 0 if( zRaw >= zRawEnd ){
50130 0 0 if( rc != UNQLITE_OK ){
50135 0 0 if( rc != UNQLITE_OK ){
50170 0 0 if( rc != UNQLITE_OK ){
50174 0 0 if( rc != UNQLITE_OK ){
50190 8 0 if( nByte < 4 ){
50219 6 0 if( rc != UNQLITE_OK ){
50224 1 5 if( pPrev ){
50235 6 0 if( pCell->iOvfl == 0 ){
50250 0 6 if( pCell->iOvfl > 0){
50257 0 0 if( rc != UNQLITE_OK ){
50264 0 0 if( rc != UNQLITE_OK ){
50269 0 0 if( iNext == 0 ){
50286 12 7 while( pEntry ){
50287 12 0 if( pEntry->pPage == pCell->pPage && pEntry->iNext == pCell->iStart ){
1 11 if( pEntry->pPage == pCell->pPage && pEntry->iNext == pCell->iStart ){
50311 0 2 if( pSibeling ){
50348 0 0 if( rc != UNQLITE_OK ){
50351 0 0 if( pCell->iOvfl == 0 ){
50354 0 0 if( pCell->nData == (sxu64)nByte ){
50357 0 0 }else if( (sxu64)nByte < pCell->nData ){
50370 0 0 if( rc != UNQLITE_OK ){
50373 0 0 if( rc != UNQLITE_OK ){
50395 0 0 if( rc != UNQLITE_OK ){
50402 0 0 if( iOvfl == 0 ){
50407 0 0 if( UNQLITE_OK != pEngine->pIo->xGet(pEngine->pIo->pHandle,iOvfl,&pOld) ){
50413 0 0 if( pOld != pOvfl ){ /* xx: chm is maniac */
50429 0 0 if( rc != UNQLITE_OK ){
50435 0 0 if( zPtr >= zEnd ){
50438 0 0 if( zRaw >= zRawEnd ){
50441 0 0 if( rc != UNQLITE_OK ){
50445 0 0 if( rc != UNQLITE_OK ){
50491 0 2 if( pCell->nData + nByte < pCell->nData ){
50498 2 0 if( rc != UNQLITE_OK ){
50501 2 0 if( pCell->iOvfl == 0 ){
50505 0 2 if( rc != UNQLITE_OK ){
50512 0 0 if( rc != UNQLITE_OK ){
50528 2 0 if( rc == SXRET_OK ){
50532 0 2 if( rc != UNQLITE_OK ){
50547 0 0 if( rc != UNQLITE_OK ){
50558 0 0 if( zRaw >= zRawEnd ){
50559 0 0 if( iOvfl == 0 ){
50565 0 0 if( rc != UNQLITE_OK ){
50578 0 0 if( (sxu64)nAvail > nDatalen ){
50591 0 0 if( rc != UNQLITE_OK ){
50596 0 0 if( zPtr >= zEnd ){
50599 0 0 if( zRaw >= zRawEnd ){
50602 0 0 if( rc != UNQLITE_OK ){
50606 0 0 if( rc != UNQLITE_OK ){
50647 3 0 if( rc != UNQLITE_OK ){
50695 8 0 if( rc != UNQLITE_OK ){
50700 0 8 if( rc != UNQLITE_OK ){
50703 0 0 if( rc != UNQLITE_OK ){
50704 0 0 if( !auto_append ){
50717 0 8 if( pCell == 0 ){
50726 8 0 if( nKeyLen < 262144 /* 256 KB */ ){
50732 8 0 if( rc != UNQLITE_OK ){
50736 0 8 if( iNeedOvfl ){
50738 0 0 if( rc != UNQLITE_OK ){
50764 0 0 for( i = 0 ; i < pMaster->iSlave ; ++i ){
50768 0 0 if( rc != UNQLITE_OK ){
50773 0 0 if( rc == UNQLITE_OK ){
50775 0 0 if( pOfft ){
50788 0 0 if( rc != UNQLITE_OK ){
50793 0 0 if( pSlave == 0 ){
50799 0 0 if( pNew == 0 ){
50804 0 0 if( rc != UNQLITE_OK ){
50807 0 0 if( pOfft ){
50809 0 0 if( UNQLITE_OK != lhAllocateSpace(pNew,L_HASH_CELL_SZ+nAmount,&iOfft) ){
50817 0 0 if( rc != UNQLITE_OK ){
50845 0 0 if( rc != UNQLITE_OK ){
50862 0 0 if( rc != UNQLITE_OK ){
50865 0 0 if( rc != UNQLITE_OK ){
50871 0 0 if( pCell == 0 ){
50885 0 0 if( rc != UNQLITE_OK ){
50911 0 0 if( pCell == 0 ){
50918 0 0 if( iBucket != split_bucket){
50920 0 0 if( pCell->iOvfl ){
50926 0 0 if( SyBlobLength(&pCell->sKey) < 1 ){
50929 0 0 if( rc != UNQLITE_OK ){
50935 0 0 if( rc != UNQLITE_OK ){
50947 0 0 if( rc != UNQLITE_OK ){
50974 0 0 if( pRec == 0 ){
50980 0 0 if( rc != UNQLITE_OK ){
50985 0 0 if( rc != UNQLITE_OK ){
50990 0 0 if( pNew == 0 ){
50995 0 0 if( rc != UNQLITE_OK ){
51003 0 0 if( rc != UNQLITE_OK ){
51006 0 0 if( pTarget->pRaw->pgno == pOld->pRaw->pgno ){
51011 0 0 if( rc != UNQLITE_OK ){
51018 0 0 if( rc != UNQLITE_OK ){
51021 0 0 if( pEngine->split_bucket >= pEngine->max_split_bucket ){
51026 0 0 if( !pEngine->nmax_split_nucket ){
51056 0 5 if( rc == UNQLITE_FULL ){
51060 0 0 if( rc == UNQLITE_OK ){
51061 0 0 if( do_retry ){
51093 10 0 if( rc != UNQLITE_OK ){
51102 4 6 if( iBucket >= pEngine->split_bucket + pEngine->max_split_bucket ){
51108 3 7 if( pRec == 0 ){
51111 3 0 if( rc != UNQLITE_OK ){
51116 3 0 if( pPage == 0 ){
51121 0 3 if( rc != UNQLITE_OK ){
51127 3 0 if( rc == UNQLITE_OK ){
51136 0 7 if( rc != UNQLITE_OK ){
51144 5 2 if( pCell == 0 ){
51147 0 5 if( rc == SXERR_RETRY && iCnt++ < 2 ){
0 0 if( rc == SXERR_RETRY && iCnt++ < 2 ){
51152 2 0 if( is_append ){
51236 3 1 if( dbSize < 1 ){
51239 3 0 if( rc != UNQLITE_OK ){
51244 3 0 if( rc != UNQLITE_OK ){
51249 3 0 if( rc != UNQLITE_OK ){
51255 1 0 if( rc != UNQLITE_OK ){
51260 1 0 if( rc != UNQLITE_OK ){
51277 3 4 for( n = 0 ; n < pPage->nCell ; ++n ){
51285 4 0 if( pPage->apCell ){
51306 59 2 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
51307 59 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
51308 49 10 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
51309 18 31 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
51332 0 5 if( pHash->apMap == 0 ){
51372 0 0 if( pHash->nBuckRec > 0 ){
51377 0 0 if( xHash ){
51386 0 0 if( xCmp ){
51443 8 9 if( pRec == 0 ){
51447 1 8 if( pPtr->iState == L_HASH_CURSOR_STATE_CELL && pPtr->pRaw ){
1 0 if( pPtr->iState == L_HASH_CURSOR_STATE_CELL && pPtr->pRaw ){
51456 0 9 if( rc != UNQLITE_OK ){
51459 6 3 if( pPage->pList ){
51482 1 1 if( pRec == 0 ){
51486 0 1 if( pPtr->iState == L_HASH_CURSOR_STATE_CELL && pPtr->pRaw ){
0 0 if( pPtr->iState == L_HASH_CURSOR_STATE_CELL && pPtr->pRaw ){
51495 0 1 if( rc != UNQLITE_OK ){
51498 1 0 if( pPage->pFirst ){
51516 11 3 return (pCur->iState == L_HASH_CURSOR_STATE_CELL) && pCur->pCell;
1 10 return (pCur->iState == L_HASH_CURSOR_STATE_CELL) && pCur->pCell;
51526 3 6 if( pCur->is_first ){
51529 3 0 if( rc != UNQLITE_OK ){
51548 1 0 if( pCur->is_first ){
51551 1 0 if( rc != UNQLITE_OK ){
51577 10 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
0 10 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51584 5 5 if( pCur->pCell == 0 ){
51599 2 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
0 2 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51606 1 1 if( pCur->pCell == 0 ){
51621 10 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
10 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51639 16 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
16 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51657 10 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
10 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51663 10 0 if( SyBlobLength(&pCell->sKey) > 0 ){
51680 16 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
16 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51699 6 24 if( rc != UNQLITE_OK ){
51716 6 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
6 0 if( pCur->iState != L_HASH_CURSOR_STATE_CELL || pCur->pCell == 0 ){
51848 0 0 if( pRecord == 0 ){
51852 0 0 if( pDupData == 0 ){
51879 0 0 if( pEngine->apBucket[nBucket] ){
51883 0 0 if( pEngine->pFirst == 0 ){
51886 0 0 MACRO_LD_PUSH(pEngine->pLast,pRecord);
51897 0 0 if( pEntry->pPrevHash == 0 ){
51902 0 0 if( pEntry->pNextHash ){
51905 0 0 MACRO_LD_REMOVE(pEngine->pLast,pEntry);
0 0 MACRO_LD_REMOVE(pEngine->pLast,pEntry);
0 0 MACRO_LD_REMOVE(pEngine->pLast,pEntry);
51906 0 0 if( pEntry == pEngine->pFirst ){
51929 0 0 if( pEntry == 0 ){
51932 0 0 if( pEntry->nHash == nHash && pEntry->nKeyLen == (sxu32)nKeyLen &&
51952 0 0 if( apNew == 0 ){
51964 0 0 if( n >= pEngine->nRecord ){
51971 0 0 if( apNew[iBucket] ){
51980 0 0 if( n >= pEngine->nRecord ){
51987 0 0 if( apNew[iBucket] ){
51996 0 0 if( n >= pEngine->nRecord ){
52003 0 0 if( apNew[iBucket] ){
52012 0 0 if( n >= pEngine->nRecord ){
52019 0 0 if( apNew[iBucket] ){
52090 0 0 if( pMem->pCur == 0){
52102 0 0 if( pMem->pCur == 0){
52114 0 0 if( pMem->pCur == 0){
52126 0 0 if( pMem->pCur == 0 ){
52139 0 0 if( pMem->pCur == 0){
52154 0 0 if( pMem->pCur == 0){
52177 0 0 if( pMem->pCur == 0 ){
52197 0 0 if( pMem->pCur == 0 ){
52216 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
52217 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
52218 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
52219 0 0 if( zIn >= zEnd ){ break; } nH = nH * 33 + zIn[0] ; zIn++;
52245 0 0 if( pEngine->apBucket == 0 ){
52274 0 0 if( pEngine->nRecord > 0 ){
52278 0 0 if( xHash ){
52287 0 0 if( xCmp ){
52309 0 0 if( nDataLen > SXU32_HIGH ){
52316 0 0 if( pRecord == 0 ){
52323 0 0 if( pRecord == 0 ){
52328 0 0 if( (pEngine->nRecord >= pEngine->nBucket * MEM_HASH_FILL_FACTOR) && pEngine->nRecord < 100000 ){
0 0 if( (pEngine->nRecord >= pEngine->nBucket * MEM_HASH_FILL_FACTOR) && pEngine->nRecord < 100000 ){
52336 0 0 if( nData == pRecord->nDataLen ){
52341 0 0 if( pNew == 0 ){
52365 0 0 if( nDataLen > SXU32_HIGH ){
52372 0 0 if( pRecord == 0 ){
52379 0 0 if( pRecord == 0 ){
52384 0 0 if( pEngine->nRecord * MEM_HASH_FILL_FACTOR >= pEngine->nBucket && pEngine->nRecord < 100000 ){
0 0 if( pEngine->nRecord * MEM_HASH_FILL_FACTOR >= pEngine->nBucket && pEngine->nRecord < 100000 ){
52394 0 0 if( nNew > SXU32_HIGH ){
52402 0 0 if( zNew == 0 ){
52508 3 0 if( id->pMethods->xSectorSize ){
52528 9 0 if( zPath == 0 ){
52534 9 0 if( pFile == 0 ){
52541 1 8 if( rc != UNQLITE_OK ){
52551 8 1 if( pId ){
52933 0 12 for(p=pInode->pUnused; p; p=pNext){
52935 0 0 if( close(p->fd) ){
52955 8 0 if( pInode ){
52957 8 0 if( pInode->nRef==0 ){
52959 0 8 if( pInode->pPrev ){
52964 4 4 if( pInode->pNext ){
52996 0 8 if( rc!=0 ){
52999 0 0 if( pFile->lastErrno==EOVERFLOW ) return UNQLITE_NOTIMPLEMENTED;
53032 4 8 while( pInode && SyMemcmp((const void *)&fileId,(const void *)&pInode->fileId, sizeof(fileId)) ){
4 0 while( pInode && SyMemcmp((const void *)&fileId,(const void *)&pInode->fileId, sizeof(fileId)) ){
53035 8 0 if( pInode==0 ){
53037 8 0 if( pInode==0 ){
53045 4 4 if( inodeList ) inodeList->pPrev = pInode;
53068 0 0 if( pFile->pInode->eFileLock>SHARED_LOCK ){
53080 0 0 if (-1 == fcntl(pFile->h, F_GETLK, &lock)) {
53084 0 0 } else if( lock.l_type!=F_UNLCK ){
53168 0 12 if( pFile->eFileLock>=eFileLock ){
53179 0 12 if( (pFile->eFileLock!=pInode->eFileLock &&
0 0 if( (pFile->eFileLock!=pInode->eFileLock &&
53180 0 0 (pInode->eFileLock>=PENDING_LOCK || eFileLock>SHARED_LOCK))
53190 4 8 if( eFileLock==SHARED_LOCK &&
53191 0 4 (pInode->eFileLock==SHARED_LOCK || pInode->eFileLock==RESERVED_LOCK) ){
53203 8 4 if( eFileLock==SHARED_LOCK
53204 4 4 || (eFileLock==EXCLUSIVE_LOCK && pFile->eFileLock
4 0 || (eFileLock==EXCLUSIVE_LOCK && pFile->eFileLock
53209 0 8 if( s==(-1) ){
53212 0 0 if( IS_LOCK_ERROR(rc) ){
53221 4 8 if( eFileLock==SHARED_LOCK ){
53225 0 4 if( (s = fcntl(pFile->h, F_SETLK, &lock))==(-1) ){
53232 0 4 if( fcntl(pFile->h, F_SETLK, &lock)!=0 ){
53233 0 0 if( s != -1 ){
53237 0 0 if( IS_LOCK_ERROR(rc) ){
53243 0 4 if( s==(-1) ){
53245 0 0 if( IS_LOCK_ERROR(rc) ){
53253 4 4 }else if( eFileLock==EXCLUSIVE_LOCK && pInode->nShared>1 ){
4 0 }else if( eFileLock==EXCLUSIVE_LOCK && pInode->nShared>1 ){
53276 0 8 if( s==(-1) ){
53279 0 0 if( IS_LOCK_ERROR(rc) ){
53284 0 0 if( rc==UNQLITE_OK ){
53287 0 0 }else if( eFileLock==EXCLUSIVE_LOCK ){
53328 8 8 if( pFile->eFileLock<=eFileLock ){
53336 4 4 if( pFile->eFileLock>SHARED_LOCK ){
53346 4 0 if( eFileLock==SHARED_LOCK ){
53347 0 4 if( handleNFSUnlock ){
53354 0 0 if( fcntl(h, F_SETLK, &lock)==(-1) ){
53357 0 0 if( IS_LOCK_ERROR(rc) ){
53366 0 0 if( fcntl(h, F_SETLK, &lock)==(-1) ){
53369 0 0 if( IS_LOCK_ERROR(rc) ){
53378 0 0 if( fcntl(h, F_SETLK, &lock)==(-1) ){
53381 0 0 if( IS_LOCK_ERROR(rc) ){
53391 0 4 if( fcntl(h, F_SETLK, &lock)==(-1) ){
53394 0 0 if( IS_LOCK_ERROR(rc) ){
53405 4 0 if( fcntl(h, F_SETLK, &lock)!=(-1) ){
53410 0 0 if( IS_LOCK_ERROR(rc) ){
53416 4 4 if( eFileLock==NO_LOCK ){
53422 0 4 if( pInode->nShared==0 ){
53427 4 0 if( fcntl(h, F_SETLK, &lock)!=(-1) ){
53432 0 0 if( IS_LOCK_ERROR(rc) ){
53446 0 4 if( pInode->nLock==0 ){
53448 4 0 if( rc==UNQLITE_OK ){
53458 4 0 if( rc==UNQLITE_OK ) pFile->eFileLock = eFileLock;
53480 8 0 if( pFile ){
53481 0 8 if( pFile->dirfd>=0 ){
53483 0 0 if( err ){
53490 8 0 if( pFile->h>=0 ){
53492 0 8 if( err ){
53507 8 0 if( id ){
53511 8 0 if( pFile->pInode && pFile->pInode->nLock ){
0 8 if( pFile->pInode && pFile->pInode->nLock ){
53561 0 3 if( newOffset!=offset ){
53562 0 0 if( newOffset == -1 ){
53569 3 0 got = read(id->h, pBuf, cnt);
53571 0 3 if( got<0 ){
53591 0 3 if( got==(int)amt ){
53593 0 0 }else if( got<0 ){
53622 0 21 if( newOffset!=offset ){
53623 0 0 if( newOffset == -1 ){
53632 0 21 if( got<0 ){
53650 21 21 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
21 0 while( amt>0 && (wrote = seekAndWrite(pFile, offset, pBuf, amt))>0 ){
53656 0 21 if( amt>0 ){
53657 0 0 if( wrote<0 ){
53742 0 8 if( rc!= -1 ){
53775 8 0 if( pFile->dirfd>=0 ){
53794 8 0 if( err==0 ){ /* directory when we are done */
53811 0 3 if( rc ){
53827 0 4 if( rc!=0 ){
53839 0 4 if( *pSize==1 ) *pSize = 0;
53910 0 8 if( rc!=UNQLITE_OK ){
53935 0 8 if( rc!=UNQLITE_OK ){
53936 0 0 if( dirfd>=0 ) close(dirfd); /* silent leak if fail, already in error */
53937 0 0 if( h>=0 ) close(h);
53959 320 0 for(ii=n; ii>1 && zDirname[ii]!='/'; ii--);
304 16 for(ii=n; ii>1 && zDirname[ii]!='/'; ii--);
53960 0 16 if( ii>0 ){
53963 0 16 if( fd>=0 ){
53999 1 8 if( 0==stat(zPath, &sStat) ){
54004 0 1 while( pInode && (pInode->fileId.dev!=sStat.st_dev
0 0 while( pInode && (pInode->fileId.dev!=sStat.st_dev
54005 0 0 || pInode->fileId.ino!=sStat.st_ino) ){
54008 0 1 if( pInode ){
54010 0 0 for(pp=&pInode->pUnused; *pp && (*pp)->flags!=flags; pp=&((*pp)->pNext));
0 0 for(pp=&pInode->pUnused; *pp && (*pp)->flags!=flags; pp=&((*pp)->pNext));
54012 0 0 if( pUnused ){
54044 9 0 if( flags & UNQLITE_OPEN_TEMP_DB ){
54102 0 9 if( pUnused ){
54106 9 0 if( !pUnused ){
54117 9 0 if( isReadWrite ) openFlags |= O_RDWR;
54118 9 0 if( isCreate ) openFlags |= O_CREAT;
54119 0 9 if( isExclusive ) openFlags |= (O_EXCL|O_NOFOLLOW);
54122 9 0 if( fd<0 ){
54129 1 8 if( fd<0 ){
54135 8 0 if( p->pUnused ){
54140 0 8 if( isDelete ){
54144 8 0 if( isOpenDirectory ){
54146 0 8 if( rc!=UNQLITE_OK ){
54177 0 8 if( rc!=UNQLITE_OK ){
54194 4 4 if( unlink(zPath)==(-1) && errno!=ENOENT ){
4 0 if( unlink(zPath)==(-1) && errno!=ENOENT ){
54198 8 0 if( dirSync ){
54201 8 0 if( rc==UNQLITE_OK ){
54202 0 8 if( fsync(fd) )
54206 0 8 if( close(fd) && !rc ){
54245 3 0 if( pTm ){ /* Yes, it can fail */
54283 4 0 if( flags==UNQLITE_ACCESS_EXISTS && *pResOut ){
0 4 if( flags==UNQLITE_ACCESS_EXISTS && *pResOut ){
54285 0 0 if( 0==stat(zPath, &buf) && buf.st_size==0 ){
0 0 if( 0==stat(zPath, &buf) && buf.st_size==0 ){
54306 5 0 if( zPath[0]=='/' ){
54311 0 0 zOut[nOut-1] = '\0';
54312 0 0 if( getcwd(zOut, nOut-1)==0 ){
55545 0 0 if( rc != UNQLITE_OK ){
55560 0 0 if( rc != UNQLITE_OK ){
55605 0 3 if( pFd ){
55607 0 3 if( iSectorSize < 32 ){
55624 95 4 if( pPager->nPage < 1 ){
55631 91 4 if( pEntry == 0 ){
55634 91 0 if( pEntry->pgno == page_num ){
55651 11 0 if( pNew == 0 ){
55669 0 48 if( pPage->pPager->pAllocator->pMutexMethods ){
55670 0 0 SyMutexEnter(pPage->pPager->pAllocator->pMutexMethods, pPage->pPager->pAllocator->pMutex);
55673 0 48 if( pPage->pPager->pAllocator->pMutexMethods ){
55674 0 0 SyMutexLeave(pPage->pPager->pAllocator->pMutexMethods, pPage->pPager->pAllocator->pMutex);
55683 11 0 if( !(pPage->flags & PAGE_DIRTY)){
55685 11 0 if( pPager->xPageUnpin && pPage->pUserData ){
4 7 if( pPager->xPageUnpin && pPage->pUserData ){
55706 0 14 if( pPage->pPager->pAllocator->pMutexMethods ){
55707 0 0 SyMutexEnter(pPage->pPager->pAllocator->pMutexMethods, pPage->pPager->pAllocator->pMutex);
55710 0 14 if( pPage->pPager->pAllocator->pMutexMethods ){
55711 0 0 SyMutexLeave(pPage->pPager->pAllocator->pMutexMethods, pPage->pPager->pAllocator->pMutex);
55713 0 14 if( nRef == 0){
55715 0 0 if( !(pPage->flags & PAGE_DIRTY) ){
55720 0 0 if( pPage->flags & PAGE_DONT_MAKE_HOT ){
55724 0 0 if( !(pPage->flags & PAGE_HOT_DIRTY) ){
55727 0 0 if( pPager->pFirstHot == 0 ){
55731 0 0 if( pPager->pHotDirty ){
55751 0 11 if( pPager->apHash[nBucket] ){
55756 4 7 MACRO_LD_PUSH(pPager->pAll,pPage);
55758 0 11 if( (pPager->nPage >= pPager->nSize * 4) && pPager->nPage < 100000 ){
0 0 if( (pPager->nPage >= pPager->nSize * 4) && pPager->nPage < 100000 ){
55764 0 0 if( apNew ){
55773 0 0 if( n >= pPager->nPage ){
55780 0 0 if( apNew[iBucket] ){
55801 0 11 if( pPage->pNextCollide ){
55804 0 11 if( pPage->pPrevCollide ){
55810 11 0 MACRO_LD_REMOVE(pPager->pAll,pPage);
0 11 MACRO_LD_REMOVE(pPager->pAll,pPage);
7 4 MACRO_LD_REMOVE(pPager->pAll,pPage);
55822 0 0 if( pPage == 0 ){
55836 8 0 if( pPager->is_mem || noContent || pPage->pgno >= pPager->dbSize ){
6 2 if( pPager->is_mem || noContent || pPage->pgno >= pPager->dbSize ){
55841 0 2 if( (pPager->iOpenFlags & UNQLITE_OPEN_MMAP) && (pPager->pMmap /* Paranoid edition */) ){
0 0 if( (pPager->iOpenFlags & UNQLITE_OPEN_MMAP) && (pPager->pMmap /* Paranoid edition */) ){
55855 10 28 if( pPage->flags & PAGE_DIRTY ){
55864 6 4 if( pPager->pDirty ){
55868 4 6 if( pPager->pFirstDirty == 0 ){
55897 9 127 while( pA && pB ){
55898 3 6 if( pA->pgno < pB->pgno ){
55910 124 3 if( pA ){
55913 3 0 }else if( pB ){
55937 4 0 if( pPager->pFirstDirty == 0 ){
55944 10 4 while( pIn ){
55948 13 0 for(i=0; i
55949 10 3 if( a[i]==0 ){
55957 0 10 if( i==N_SORT_BUCKET-1 ){
55965 124 4 for(i=1; i
55980 0 0 while( pA && pB ){
55981 0 0 if( pA->pgno < pB->pgno ){
55993 0 0 if( pA ){
55996 0 0 }else if( pB ){
56020 0 0 if( pPager->pFirstHot == 0 ){
56027 0 0 while( pIn ){
56031 0 0 for(i=0; i
56032 0 0 if( a[i]==0 ){
56040 0 0 if( i==N_SORT_BUCKET-1 ){
56048 0 0 for(i=1; i
56093 0 0 if( rc != UNQLITE_OK ){
56097 0 0 if( 32 /* Minimum sector size */> iSize ){
56102 0 0 if( rc != UNQLITE_OK ){
56105 0 0 if( SyMemcmp(zMagic,aJournalMagic,sizeof(zMagic)) != 0 ){
56114 0 0 if( rc != UNQLITE_OK ){
56119 0 0 if( rc != UNQLITE_OK ){
56124 0 0 if( rc != UNQLITE_OK ){
56130 0 0 if( rc != UNQLITE_OK ){
56135 0 0 if( rc != UNQLITE_OK ){
56143 0 0 if( iPageSize < UNQLITE_MIN_PAGE_SIZE || iSectorSize<32
0 0 if( iPageSize < UNQLITE_MIN_PAGE_SIZE || iSectorSize<32
56144 0 0 || iPageSize > UNQLITE_MAX_PAGE_SIZE || iSectorSize>MAX_SECTOR_SIZE
0 0 || iPageSize > UNQLITE_MAX_PAGE_SIZE || iSectorSize>MAX_SECTOR_SIZE
56145 0 0 || ((iPageSize-1)&iPageSize)!=0 || ((iSectorSize-1)&iSectorSize)!=0
0 0 || ((iPageSize-1)&iPageSize)!=0 || ((iSectorSize-1)&iSectorSize)!=0
56216 20 1 while( i>0 ){
0 0 while( i>0 ){
56237 0 0 if( rc != UNQLITE_OK ){ return rc; }
56241 0 0 if( rc != UNQLITE_OK ){ return rc; }
56245 0 0 if( rc != UNQLITE_OK ){ return rc; }
56250 0 0 if( ckSum != pager_cksum(pPager,zData) ){
56254 0 0 if( iNum >= pPager->dbSize ){
56260 0 0 if( rc == UNQLITE_OK ){
56318 0 0 if( rc != UNQLITE_OK ){
56319 0 0 if( rc == UNQLITE_DONE ){
56327 0 0 if( rc != UNQLITE_OK ){
56333 0 0 if( zTmp == 0 ){
56342 0 0 for( n = 0 ; n < nRec ; ++n ){
56344 0 0 if( rc != UNQLITE_OK ){
56345 0 0 if( rc != SXERR_IGNORE ){
56354 0 0 if( rc == UNQLITE_OK ){
56358 0 0 if( rc == UNQLITE_DONE ){
56376 8 1 if( pPager->iLock != NO_LOCK ){
56394 0 12 if( pPager->iLock < eLock || pPager->iLock == NO_LOCK ){
0 0 if( pPager->iLock < eLock || pPager->iLock == NO_LOCK ){
56396 12 0 if( rc==UNQLITE_OK ){
56399 0 0 unqliteGenError(pPager->pDb,
56424 0 8 }while( rc==UNQLITE_BUSY && pPager->xBusyHandler && pPager->xBusyHandler(pPager->pBusyHandlerArg) );
0 0 }while( rc==UNQLITE_BUSY && pPager->xBusyHandler && pPager->xBusyHandler(pPager->pBusyHandlerArg) );
0 0 }while( rc==UNQLITE_BUSY && pPager->xBusyHandler && pPager->xBusyHandler(pPager->pBusyHandlerArg) );
56459 4 0 if( rc==UNQLITE_OK && exists ){
0 4 if( rc==UNQLITE_OK && exists ){
56471 0 0 if( rc==UNQLITE_OK && !locked ){
0 0 if( rc==UNQLITE_OK && !locked ){
56480 0 0 if( rc==UNQLITE_OK ){
56481 0 0 if( n < 1 ){
56482 0 0 if( pager_lock_db(pPager, RESERVED_LOCK)==UNQLITE_OK ){
56502 4 0 if( check_hot ){
56506 4 0 if( rc != UNQLITE_OK ){
56510 0 4 if( !iExists ){
56515 0 0 if( pPager->is_rdonly ){
56537 0 0 if( rc != UNQLITE_OK ){
56542 0 0 if( rc != UNQLITE_OK ){
56556 0 0 if( rc == UNQLITE_OK ){
56579 3 0 if( pPager->pVfs->xCurrentTime ){
56611 0 1 if( SyMemcmp(UNQLITE_DB_SIG,zRaw,sizeof(UNQLITE_DB_SIG)-1) != 0 ){
56619 0 1 if( iMagic != UNQLITE_DB_MAGIC ){
56638 0 1 if( pPager->iPageSizeiSectorSize<32
0 1 if( pPager->iPageSizeiSectorSize<32
56639 0 1 || pPager->iPageSize>UNQLITE_MAX_PAGE_SIZE || pPager->iSectorSize>MAX_SECTOR_SIZE
0 1 || pPager->iPageSize>UNQLITE_MAX_PAGE_SIZE || pPager->iSectorSize>MAX_SECTOR_SIZE
56640 0 1 || ((pPager->iPageSize<-1)&pPager->iPageSize)!=0 || ((pPager->iSectorSize-1)&pPager->iSectorSize)!=0
56651 1 0 if( zKv == 0 ){
56667 4 0 if( rc != UNQLITE_OK ){
56671 1 3 if( n > 0 ){
56675 0 1 if( n < UNQLITE_MIN_PAGE_SIZE ){
56682 0 1 if( rc != UNQLITE_OK ){
56688 0 1 if( rc != UNQLITE_OK ){
56689 0 0 unqliteGenError(pPager->pDb,rc == UNQLITE_NOMEM ? "Unqlite is running out of memory" : "Malformed database image");
56694 0 1 if( nPage==0 && n>0 ){
0 0 if( nPage==0 && n>0 ){
56701 0 1 if( pMethods == 0 ){
56707 1 0 if( rc != UNQLITE_OK ){
56712 0 3 pPager->iSectorSize = GetSectorSize(pPager->pfd);
56719 0 4 if( pPager->zTmpPage == 0 ){
56735 3 0 if( pHeader == 0 ){
56768 5 136 if( pPager->iState == PAGER_OPEN ){
56772 1 4 if( rc != UNQLITE_OK ){
56780 4 0 if( rc == UNQLITE_OK ){
56781 4 0 if( pPager->iLock <= SHARED_LOCK ){
56784 4 0 if( rc != UNQLITE_OK ){
56790 4 0 if( rc != UNQLITE_OK ){
56793 1 3 if(pPager->dbSize > 0 ){
56794 0 1 if( pPager->iOpenFlags & UNQLITE_OPEN_MMAP ){
56800 0 0 if( vr != JX9_OK ){
56816 4 0 if( pMethods->xOpen ){
56818 4 0 if( rc != UNQLITE_OK ){
56828 0 0 }else if( rc == UNQLITE_BUSY ){
56843 35 0 if( rc != UNQLITE_OK ){
56846 31 4 if( pPager->iState >= PAGER_WRITER_LOCKED ){
56849 0 4 if( pPager->is_rdonly ){
56856 4 0 if( rc == UNQLITE_OK ){
56859 0 4 if( pPager->pVec == 0 ){
56869 1 3 if( pPager->dbSize < 1 ){
56872 0 3 if( rc != UNQLITE_OK ){
56877 0 0 }else if( rc == UNQLITE_BUSY ){
56896 4 0 if( pPager->is_mem || pPager->no_jrnl ){
0 4 if( pPager->is_mem || pPager->no_jrnl ){
56900 0 4 if( pPager->iState >= PAGER_WRITER_CACHEMOD ){
56909 0 4 if( rc != UNQLITE_OK ){
56915 0 4 if( zHeader == 0 ){
56927 4 0 if( rc == UNQLITE_OK ){
56951 0 4 if( rc != UNQLITE_OK ){
56956 0 4 if( pPager->no_jrnl ){
56962 0 4 if( rc != UNQLITE_OK ){
56963 0 0 if( pPager->nRec > 0 ){
56972 4 0 if( close_jrnl ){
56974 0 4 if( UNQLITE_OK != unqliteOsCloseFree(pPager->pAllocator,pPager->pjfd) ){
56975 0 0 if( rc != UNQLITE_OK /* unqliteOsSync */ ){
56981 4 0 if( (*pRetry) == 1 ){
56982 0 0 if( pager_lock_db(pPager,EXCLUSIVE_LOCK) == UNQLITE_OK ){
56996 35 0 if( !pPager->is_mem && !pPager->no_jrnl ){
35 0 if( !pPager->is_mem && !pPager->no_jrnl ){
56998 7 28 if( pPage->pgno < pPager->dbOrigSize && !unqliteBitvecTest(pPager->pVec,pPage->pgno) ){
1 6 if( pPage->pgno < pPager->dbOrigSize && !unqliteBitvecTest(pPager->pVec,pPage->pgno) ){
57000 0 1 if( pPager->nRec == SXU32_HIGH ){
57007 1 0 if( rc != UNQLITE_OK ){ return rc; }
57011 1 0 if( rc != UNQLITE_OK ){ return rc; }
57015 1 0 if( rc != UNQLITE_OK ){ return rc; }
57026 6 29 if( (1 + pPage->pgno) > pPager->dbSize ){
57028 6 0 if( pPager->dbSize == SXU64_HIGH ){
57052 10 4 if( pDirty == 0 ){
57057 10 0 if( (pDirty->flags & PAGE_DONT_WRITE) == 0 ){
57059 10 0 if( rc != UNQLITE_OK ){
57066 10 0 if( pDirty->nRef < 1 ){
57097 0 0 if( pDirty == 0 ){
57102 0 0 if( (pDirty->flags & PAGE_DONT_WRITE) == 0 ){
57104 0 0 if( rc != UNQLITE_OK ){
57111 0 0 if( pDirty->pDirtyPrev ){
57116 0 0 if( pDirty->pDirtyNext ){
57139 1 4 if( pPager->iState < PAGER_WRITER_CACHEMOD ){
57142 0 4 if( pPager->is_mem ){
57146 0 4 if( pPager->is_rdonly ){
57153 4 0 if( rc != UNQLITE_OK ){
57158 0 4 if( get_excl ){
57161 0 0 if( rc != UNQLITE_OK ){
57166 0 4 if( pPager->iFlags & PAGER_CTRL_DIRTY_COMMIT ){
57172 0 4 if( rc != UNQLITE_OK ){
57185 11 4 if (p == 0) {
57195 3 1 if( pPager->dbSize != pPager->dbOrigSize ){
57210 5 0 if( !pPager->is_mem ){
57211 4 1 if( pPager->iState == PAGER_OPEN ){
57214 4 0 if( pPager->iState != PAGER_READER ){
57215 4 0 if( !pPager->no_jrnl ){
57222 4 0 if( pPager->pVec ){
57240 0 0 if( rc != UNQLITE_OK ){
57248 0 0 if( pHot == 0 ){
57251 0 0 if( get_excl ){
57254 0 0 if( rc != UNQLITE_OK ){
57263 0 0 if( rc != UNQLITE_OK ){
57291 0 5 if( rc != UNQLITE_OK ){
57296 0 5 if( rc != UNQLITE_OK ){
57326 0 0 if( pPtr == 0 ){
57342 0 0 if( pPager->apHash ){
57346 0 0 if( pPager->pVec ){
57353 0 0 if( bResetKvEngine ){
57356 0 0 if( pIo->pMethods->xRelease ){
57364 0 0 if( pIo->pMethods->xInit ){
57367 0 0 if( rc != UNQLITE_OK ){
57371 0 0 if( pIo->pMethods->xOpen ){
57374 0 0 if( rc != UNQLITE_OK ){
57403 0 0 if( pPager->iState < PAGER_WRITER_LOCKED ){
57407 0 0 if( pPager->is_mem ){
57411 0 0 if( pPager->is_rdonly ){
57416 0 0 if( pPager->iState >= PAGER_WRITER_CACHEMOD ){
57417 0 0 if( !pPager->no_jrnl ){
57419 0 0 if( pPager->pjfd ){
57425 0 0 if( pPager->iFlags & (PAGER_CTRL_COMMIT_ERR|PAGER_CTRL_DIRTY_COMMIT) ){
57428 0 0 if( rc != UNQLITE_OK ){
57439 0 0 if( rc != UNQLITE_OK ){
57458 0 0 if( pPage->pgno > 0 /* Page 0 is always writeable */ ){
57476 35 0 if( rc != UNQLITE_OK ){
57479 4 31 if( pPager->iState == PAGER_WRITER_LOCKED ){
57485 4 0 if( rc != UNQLITE_OK ){
57489 0 35 if( pPager->nHot > 127 ){
57492 0 0 if( rc != UNQLITE_OK ){
57523 99 1 if( rc != UNQLITE_OK ){
57528 0 99 if( fetchOnly ){
57529 0 0 if( ppPage ){
57532 0 0 return pPage ? UNQLITE_OK : UNQLITE_NOTFOUND;
57534 8 91 if( pPage == 0 ){
57537 0 8 if( pPage == 0 ){
57543 0 8 if( rc != UNQLITE_OK ){
57550 48 43 if( ppPage ){
57555 56 0 if( ppPage ){
57566 5 0 if( SX_EMPTY_STR(zFilename) ){
5 0 if( SX_EMPTY_STR(zFilename) ){
57591 0 10 if( pMethods->szCursor < 1 ){
57597 0 10 if( nByte < sizeof(unqlite_kv_cursor) ){
57601 0 10 if( pCur == 0 ){
57610 10 0 if( pMethods->xCursorInit ){
57626 0 10 if( pMethods->xCursorRelease ){
57641 5 0 if( pStorage->pCursor ){
57646 5 0 if( pEngine->pIo->pMethods->xRelease ){
57668 1 5 if( pPager->pEngine ){
57669 1 0 if( pMethods == pPager->pEngine->pIo->pMethods ){
57679 0 5 if( pEngine == 0 ){
57684 0 5 if( pIo == 0 ){
57698 0 5 if( rc != UNQLITE_OK ){
57708 5 0 if( rc != UNQLITE_OK ){
57722 0 0 return pDb->sDB.pPager->pEngine;
0 3 return pDb->sDB.pPager->pEngine;
0 0 return pDb->sDB.pPager->pEngine;
0 25 return pDb->sDB.pPager->pEngine;
0 0 return pDb->sDB.pPager->pEngine;
0 2 return pDb->sDB.pPager->pEngine;
0 0 return pDb->sDB.pPager->pEngine;
0 8 return pDb->sDB.pPager->pEngine;
57748 5 0 if( (iFlags & UNQLITE_OPEN_IN_MEMORY) || unqliteInMemory(zFilename) ){
0 5 if( (iFlags & UNQLITE_OPEN_IN_MEMORY) || unqliteInMemory(zFilename) ){
57755 0 5 if( pMethods == 0 ){
57760 0 0 if( pMethods == 0 ){
57769 5 0 if( is_mem ){
57782 5 0 if( pPager == 0 ){
57795 0 5 if( pPager->apHash == 0 ){
57810 5 0 if( !is_mem ){
57813 5 0 if( pVfs->xFullPathname ){
57816 0 5 if( rc != UNQLITE_OK ){
57825 0 5 if( pPager->zJournal == 0 ){
57838 0 5 if( rc != UNQLITE_OK ){
57842 0 5 if( pPager->is_mem ){
57861 0 0 if( mxPage < 256 ){
57874 0 5 if( pPager->iOpenFlags & UNQLITE_OPEN_MMAP ){
57876 0 0 if( pVfs && pVfs->xUnmap && pPager->pMmap ){
57880 5 0 if( !pPager->is_mem && pPager->iState >= PAGER_OPEN ){
5 0 if( !pPager->is_mem && pPager->iState >= PAGER_OPEN ){
57888 0 5 if( pPager->pVec ){
57904 0 0 for( i = 0 ; i < nLen ; ++i ){
57947 6 0 if( rc == UNQLITE_OK ){
57958 35 0 if( pPage == 0 ){
57971 0 0 if( pPage == 0 ){
57985 0 0 if( pPage == 0 ){
57990 0 0 if( pPager->iState >= PAGER_WRITER_LOCKED ){
57991 0 0 if( !pPager->no_jrnl && pPager->pVec && !unqliteBitvecTest(pPager->pVec,pPage->pgno) ){
0 0 if( !pPager->no_jrnl && pPager->pVec && !unqliteBitvecTest(pPager->pVec,pPage->pgno) ){
0 0 if( !pPager->no_jrnl && pPager->pVec && !unqliteBitvecTest(pPager->pVec,pPage->pgno) ){
58004 10 0 if( pPage == 0 ){
58011 0 10 if( pPage->flags & PAGE_HOT_DIRTY ){
58013 0 0 if( pPage->pNextHot ){
58016 0 0 if( pPage->pPrevHot ){
58019 0 0 if( pPager->pFirstHot == pPage ){
58022 0 0 if( pPager->pHotDirty == pPage ){
58036 0 0 if( pPage ){
58046 14 0 if( pPage ){
58127 5 0 pIo->xErr = unqliteKvIoErr;
58166 0 0 if( pCol->nRec < 1 ){
58172 0 0 if( pEntry == 0 ){
58175 0 0 if( pEntry->nId == nId ){
58199 0 0 if( pRecord ){
58206 0 0 if( pRecord == 0 ){
58219 0 0 if( pCol->apRecord[iBucket] ){
58224 0 0 MACRO_LD_PUSH(pCol->pList,pRecord);
58226 0 0 if( (pCol->nRec >= pCol->nRecSize * 3) && pCol->nRec < 100000 ){
0 0 if( (pCol->nRec >= pCol->nRecSize * 3) && pCol->nRec < 100000 ){
58234 0 0 if( apNew ){
58242 0 0 if( n >= pCol->nRec ){
58249 0 0 if( apNew[iBucket] ){
58277 0 0 if( pRecord == 0 ){
58281 0 0 if( pRecord->pPrevCol ){
58287 0 0 if( pRecord->pNextCol ){
58291 0 0 MACRO_LD_REMOVE(pCol->pList,pRecord);
0 0 MACRO_LD_REMOVE(pCol->pList,pRecord);
0 0 MACRO_LD_REMOVE(pCol->pList,pRecord);
58304 0 0 for( n = 0 ; n < pCol->nRec ; ++n ){
58331 0 0 if( pVm->apCol[iBucket] ){
58336 0 0 MACRO_LD_PUSH(pVm->pCol,pCol);
58338 0 0 if( (pVm->iCol >= pVm->iColSize * 4) && pVm->iCol < 10000 ){
0 0 if( (pVm->iCol >= pVm->iColSize * 4) && pVm->iCol < 10000 ){
58346 0 0 if( apNew ){
58354 0 0 if( n >= pVm->iCol ){
58361 0 0 if( apNew[iBucket] ){
58387 0 0 if( pVm->iCol < 1 ){
58395 0 0 if( pCol == 0 ){
58398 0 0 if( nHash == pCol->nHash && SyStringCmp(pName,&pCol->sName,SyMemcmp) == 0 ){
0 0 if( nHash == pCol->nHash && SyStringCmp(pName,&pCol->sName,SyMemcmp) == 0 ){
0 0 if( nHash == pCol->nHash && SyStringCmp(pName,&pCol->sName,SyMemcmp) == 0 ){
58423 0 0 if( pEngine == 0 ){
58428 0 0 if( SyBlobLength(pHeader) < 1 ){
58434 0 0 if( rc != UNQLITE_OK ){
58439 0 0 if( rc != UNQLITE_OK ){
58444 0 0 if( rc != UNQLITE_OK ){
58459 0 0 if( rc != UNQLITE_OK ){
58468 0 0 if( iRec >= 0 ){
58473 0 0 if( iTotal >= 0 ){
58478 0 0 if( pSchema ){
58480 0 0 SyBlobTruncate(pHeader,pCol->nSchemaOfft);
58483 0 0 if( rc != UNQLITE_OK ){
58491 0 0 if( iWrite ){
58498 0 0 if( rc != UNQLITE_OK ){
58513 0 0 SyBlob *pHeader = &pCol->sHeader;
58521 0 0 if( rc != UNQLITE_OK ){
58525 0 0 if( SyBlobLength(pHeader) < (2 /* magic */ + 8 /* record_id */ + 8 /* total_records */+ 4 /* DOS creation time*/) ){
58532 0 0 if( nMagic != UNQLITE_COLLECTION_MAGIC ){
58548 0 0 if( zRaw < zEnd ){
58577 0 0 if( rc != UNQLITE_OK ){
58580 0 0 if( (iFlag & UNQLITE_VM_COLLECTION_CREATE) == 0 ){
58583 0 0 if( rc != UNQLITE_OK && (iFlag & UNQLITE_VM_COLLECTION_EXISTS) == 0){
0 0 if( rc != UNQLITE_OK && (iFlag & UNQLITE_VM_COLLECTION_EXISTS) == 0){
58589 0 0 else if((iFlag & UNQLITE_VM_COLLECTION_EXISTS)){
58596 0 0 if( pCol == 0 ){
58609 0 0 if( zDup == 0 ){
58616 0 0 if( pCol->apRecord == 0 ){
58625 0 0 if( iFlag & UNQLITE_VM_COLLECTION_CREATE ){
58627 0 0 if( pMethods->xReplace == 0 ){
58638 0 0 if( rc != UNQLITE_OK ){
58645 0 0 if( rc != UNQLITE_OK ){
58653 0 0 if( ppOut ){
58659 0 0 if( zDup ){
58662 0 0 if( pCol ){
58663 0 0 if( pCol->apRecord ){
58686 0 0 if( pCol ){
58690 0 0 if( (iFlag & UNQLITE_VM_AUTO_LOAD) == 0 ){
58696 0 0 return rc == UNQLITE_OK ? pCol : 0;
58703 0 0 return pCol->nLastid == 0 ? 0 : (pCol->nLastid - 1);
58741 0 0 if( pRec ){
58757 0 0 if( rc != UNQLITE_OK ){
58763 0 0 if( SyBlobLength(pWorker) < 1 ){
58771 0 0 if( rc == UNQLITE_OK ){
58785 0 0 if( pCol->nCurid >= pCol->nLastid ){
58795 0 0 if( rc == UNQLITE_OK || rc != UNQLITE_NOTFOUND ){
58813 0 0 if( pCol ){
58832 0 0 if( pCol ){
58842 0 0 UNQLITE_PRIVATE int unqliteCollectionSetSchema(unqlite_col *pCol,jx9_value *pValue)
58868 0 0 if( pCol->nTotRec >= SXI64_HIGH ){
58876 0 0 if( pMethods->xReplace == 0 ){
58895 0 0 if( nKeyLen < 1 ){
58901 0 0 if( rc != UNQLITE_OK ){
58910 0 0 if( rc == UNQLITE_OK ){
58919 0 0 if( rc != UNQLITE_OK ){
58945 0 0 if( pCol->nTotRec >= SXI64_HIGH ){
58953 0 0 if( pMethods->xReplace == 0 ){
58973 0 0 if( rc != UNQLITE_OK ){
58990 0 0 if( nKeyLen < 1 ){
58996 0 0 if( rc != UNQLITE_OK ){
59005 0 0 if( rc == UNQLITE_OK ){
59035 0 0 UNQLITE_PRIVATE int unqliteCollectionPut(unqlite_col *pCol,jx9_value *pValue,int iFlag)
59038 0 0 if( !jx9_value_is_json_object(pValue) && jx9_value_is_json_array(pValue) ){
59057 0 0 SyBlob *pWorker = &pCol->sWorker;
59070 0 0 if( rc != UNQLITE_OK ){
59077 0 0 if( rc == UNQLITE_OK ){
59079 0 0 if( wr_header ){
59083 0 0 }else if( rc == UNQLITE_NOTIMPLEMENTED ){
59084 0 0 if( log_err ){
59096 0 0 UNQLITE_PRIVATE int unqliteCollectionUpdateRecord(unqlite_col *pCol,jx9_int64 nId, jx9_value *pValue,int iFlag)
59099 0 0 if( !jx9_value_is_json_object(pValue) && jx9_value_is_json_array(pValue) ){
59124 0 0 if( rc == UNQLITE_OK ){
59128 0 0 if( rc != UNQLITE_OK ){
59136 0 0 for( nId = 0 ; nId < pCol->nLastid ; ++nId ){
59146 0 0 if( pCol->pPrevCol ){
59152 0 0 if( pCol->pNextCol ){
59155 0 0 MACRO_LD_REMOVE(pVm->pCol,pCol);
0 0 MACRO_LD_REMOVE(pVm->pCol,pCol);
0 0 MACRO_LD_REMOVE(pVm->pCol,pCol);
59272 0 0 if( argc < 1 ){
59280 0 0 if( nByte < 1){
59311 0 0 if( argc < 1 ){
59319 0 0 if( nByte < 1){
59352 0 0 if( argc < 1 ){
59360 0 0 if( nByte < 1){
59370 0 0 if( pCol ){
59374 0 0 if( pValue == 0 ){
59380 0 0 if( rc == UNQLITE_OK ){
59414 0 0 if( argc < 2 ){
59422 0 0 if( nByte < 1){
59434 0 0 if( pCol ){
59438 0 0 if( pValue == 0 ){
59444 0 0 if( rc == UNQLITE_OK ){
59477 0 0 if( argc < 1 ){
59485 0 0 if( nByte < 1){
59495 0 0 if( pCol ){
59502 0 0 if( pValue == 0 || pArray == 0 ){
59507 0 0 if( argc > 1 && jx9_value_is_callable(argv[1]) ){
0 0 if( argc > 1 && jx9_value_is_callable(argv[1]) ){
59512 0 0 while( UNQLITE_OK == unqliteCollectionFetchNextRecord(pCol,pValue) ){
59513 0 0 if( pCallback ){
59518 0 0 if( rc == JX9_OK ){
59522 0 0 if( !iResult ){
59562 0 0 if( argc < 1 ){
59570 0 0 if( nByte < 1){
59580 0 0 if( pCol ){
59604 0 0 if( argc < 1 ){
59612 0 0 if( nByte < 1){
59622 0 0 if( pCol ){
59646 0 0 if( argc < 1 ){
59654 0 0 if( nByte < 1){
59664 0 0 if( pCol ){
59689 0 0 if( argc < 1 ){
59697 0 0 if( nByte < 1){
59707 0 0 if( pCol ){
59733 0 0 if( argc < 1 ){
59741 0 0 if( nByte < 1){
59751 0 0 if( pCol ){
59782 0 0 if( argc < 2 ){
59790 0 0 if( nByte < 1){
59800 0 0 if( pCol == 0 ){
59807 0 0 for( i = 1 ; i < argc ; ++i ){
59809 0 0 if( rc != UNQLITE_OK){
59843 0 0 if( argc < 2 ){
59851 0 0 if( nByte < 1){
59861 0 0 if( pCol == 0 ){
59893 0 0 if( argc < 1 ){
59901 0 0 if( nByte < 1){
59911 0 0 if( pCol == 0 ){
59942 0 0 if( argc < 2 ){
59950 0 0 if( nByte < 1){
59960 0 0 if( pCol == 0 ){
59992 0 0 if( argc < 2 ){
59999 0 0 if( !jx9_value_is_json_object(argv[1]) ){
60006 0 0 if( nByte < 1){
60017 0 0 if( pCol ){
60046 0 0 if( argc < 1 ){
60054 0 0 if( nByte < 1){
60064 0 0 if( pCol ){
60192 0 0 for( n = 0 ; n < SX_ARRAYSIZE(aBuiltin) ; ++n ){