Lines Matching refs:object
1939 lua_ivm_object *object = NULL;
1945 apr_pool_userdata_get((void **)&object, raw_key, pool);
1946 if (object) {
1947 if (object->type == LUA_TBOOLEAN) lua_pushboolean(L, (int) object->number);
1948 else if (object->type == LUA_TNUMBER) lua_pushnumber(L, object->number);
1949 else if (object->type == LUA_TSTRING) lua_pushlstring(L, object->vb.buf, object->size);
1966 lua_ivm_object *object = NULL;
1974 apr_pool_userdata_get((void **)&object, raw_key, pool);
1975 if (!object) {
1976 object = apr_pcalloc(pool, sizeof(lua_ivm_object));
1977 ap_varbuf_init(pool, &object->vb, 2);
1978 object->size = 1;
1979 object->vb_size = 1;
1981 object->type = lua_type(L, 3);
1982 if (object->type == LUA_TNUMBER) object->number = lua_tonumber(L, 3);
1983 else if (object->type == LUA_TBOOLEAN) object->number = lua_tonumber(L, 3);
1984 else if (object->type == LUA_TSTRING) {
1987 if ( str_len > object->vb_size) {
1988 ap_varbuf_grow(&object->vb, str_len);
1989 object->vb_size = str_len;
1991 object->size = str_len-1;
1992 memset(object->vb.buf, 0, str_len);
1993 memcpy(object->vb.buf, value, str_len-1);
1995 apr_pool_userdata_set(object, raw_key, NULL, pool);