Lines Matching defs:objs
168 struct test_object objs[NUM_OBJS];
182 sv = shadow_get(&objs[0], SV_ID1);
186 /* pass 1: init & alloc a char+int pair of svars for each objs */
192 sv1[i] = shadow_alloc(&objs[i], SV_ID1,
196 sv1[i] = shadow_get_or_alloc(&objs[i], SV_ID1,
207 sv2[i] = shadow_alloc(&objs[i], SV_ID2, sizeof(pnfields2[i]),
218 sv = shadow_get(&objs[i], SV_ID1);
228 sv = shadow_get(&objs[i], SV_ID2);
243 sv = shadow_get_or_alloc(&objs[i], SV_ID1, sizeof(pndup[i]),
254 /* pass 4: free <objs[*], SV_ID1> pairs of svars, verify removal */
256 shadow_free(&objs[i], SV_ID1, shadow_dtor); /* 'char' pairs */
257 sv = shadow_get(&objs[i], SV_ID1);
262 /* pass 5: check we still find <objs[*], SV_ID2> svar pairs */
264 sv = shadow_get(&objs[i], SV_ID2); /* 'int' pairs */
274 /* pass 6: free all the <objs[*], SV_ID2> svar pairs too. */
277 sv = shadow_get(&objs[i], SV_ID2);