/PHP-8.1/ext/dba/ |
H A D | dba_ndbm.c | 31 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 118 datum gkey; in DBA_FIRSTKEY_FUNC() local 121 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC() 122 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC() 123 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 124 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 131 datum gkey; in DBA_NEXTKEY_FUNC() local 134 gkey = dbm_nextkey(info->dbf); in DBA_NEXTKEY_FUNC() 135 if(gkey.dptr) { in DBA_NEXTKEY_FUNC() 136 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC() [all …]
|
H A D | dba_dbm.c | 39 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 98 gval = fetch(gkey); in DBA_FETCH_FUNC() 113 gval = fetch(gkey); in DBA_UPDATE_FUNC() 130 gval = fetch(gkey); in DBA_EXISTS_FUNC() 146 datum gkey; in DBA_FIRSTKEY_FUNC() local 149 gkey = firstkey(); in DBA_FIRSTKEY_FUNC() 150 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC() 152 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 162 datum gkey; in DBA_NEXTKEY_FUNC() local 168 if(gkey.dptr) { in DBA_NEXTKEY_FUNC() [all …]
|
H A D | dba_db1.c | 35 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen 99 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC() 137 DBT gkey; in DBA_FIRSTKEY_FUNC() local 141 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC() 145 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC() 146 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC() 153 DBT gkey; in DBA_NEXTKEY_FUNC() local 157 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC() 160 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC() 161 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC() [all …]
|
H A D | dba_gdbm.c | 31 #define GDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 135 datum gkey; in DBA_FIRSTKEY_FUNC() local 142 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC() 143 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC() 144 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC() 145 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC() 146 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC() 157 datum gkey; in DBA_NEXTKEY_FUNC() local 163 if(gkey.dptr) { in DBA_NEXTKEY_FUNC() 164 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC() [all …]
|
H A D | dba_db3.c | 46 DBT gkey; \ 47 memset(&gkey, 0, sizeof(gkey)); \ 48 gkey.data = (char *) key; gkey.size = keylen 134 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { 151 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval, 165 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { 199 DBT gkey, gval; local 202 memset(&gkey, 0, sizeof(gkey)); 206 if (gkey.data) { 207 nkey = estrndup(gkey.data, gkey.size); [all …]
|
H A D | dba_db4.c | 60 DBT gkey; \ 61 memset(&gkey, 0, sizeof(gkey)); \ 62 gkey.data = (char *) key; gkey.size = keylen 242 DBT gkey, gval; local 245 memset(&gkey, 0, sizeof(gkey)); 249 gkey.flags |= DB_DBT_MALLOC; 253 if (gkey.data) { 254 nkey = estrndup(gkey.data, gkey.size); 255 if (newlen) *newlen = gkey.size; 258 if (gkey.data) { [all …]
|
H A D | dba_db2.c | 34 DBT gkey = {0}; \ 35 gkey.data = (char *) key; \ 36 gkey.size = keylen 100 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC() 117 if (dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC() 130 if (dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC() 168 DBT gkey = {0}, gval = {0}; local 170 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) 171 || !gkey.data) 174 if (newlen) *newlen = gkey.size; [all …]
|
H A D | dba_flatfile.c | 36 #define FLATFILE_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen 66 gval = flatfile_fetch(dba, gkey); in DBA_FETCH_FUNC() 86 switch(flatfile_store(dba, gkey, gval, mode==1 ? FLATFILE_INSERT : FLATFILE_REPLACE)) { in DBA_UPDATE_FUNC() 106 gval = flatfile_fetch(dba, gkey); in DBA_EXISTS_FUNC() 118 return(flatfile_delete(dba, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
|
/PHP-8.1/ext/opcache/jit/dynasm/ |
H A D | minilua.c | 765 #define gkey(n)(&(n)->i_key.nk) 1390 (ttype(gkey(n))==(8+3)&&iscollectable(key)&& 1391 gcvalue(gkey(n))==gcvalue(key))){ 1506 setnilvalue(gkey(n)); 1576 if(ttisnil(gkey(t->lastfree))) 1604 gkey(mp)->value=key->value;gkey(mp)->tt=key->tt; 1615 if(ttisnumber(gkey(n))&&luai_numeq(nvalue(gkey(n)),nk)) 1625 if(ttisstring(gkey(n))&&rawtsvalue(gkey(n))==key) 1729 if(iscollectable(gkey(n))) 1730 setttype(gkey(n),(8+3)); [all …]
|