static rpmsx rpmsxI(void) /*@globals _rpmsxI @*/ /*@modifies _rpmsxI @*/ { if (_rpmsxI == NULL) _rpmsxI = rpmsxNew(_rpmsxI_fn, _rpmsxI_flags); return _rpmsxI; }
/* --- Object ctors/dtors */ static rpmsx rpmsx_init(JSContext *cx, JSObject *obj) { const char * _fn = NULL; int _flags = 0; rpmsx sx = rpmsxNew(_fn, _flags); if (_debug) fprintf(stderr, "==> %s(%p,%p) sx %p\n", __FUNCTION__, cx, obj, sx); if (!JS_SetPrivate(cx, obj, (void *)sx)) { /* XXX error msg */ return NULL; } return sx; }