static cssListItem* createAndInitCssListItem(){ cssListItem * i = cssAlloc(cssListItem); i->next = NULL; i->pre = NULL; i->value = NULL; return i; }
cssSystem * cssSystemGetInstance(){ static cssSystem * __ins = NULL; if (__ins==NULL) { __ins = cssSystemInit(cssAlloc(cssSystem)); } return __ins; }
static cssSystem * cssSystemInit(cssSystem * _this){ cssObjectInit(cssAs(cssObject*, _this)); _this->_isLogOn = false; _this->_pendingReleaseList = cssListInit(cssAlloc(cssList)); _this->gc = &cssSystemGc; _this->_onObjectDelloc = _this->onDelloc; _this->onDelloc = &cssSystemOnDelloc; _this->logOff = &cssSystemLogOff; _this->logOn = &cssSystemLogOn; _this->isLogOn = &cssSystemIsLogOn; return _this; }
cssList * cssListCreate(){ return cssListInit(cssAlloc(cssList)); }