Home | History | Annotate | Download | only in lib

Lines Matching defs:this

5  * you may not use this file except in compliance with the License.
81 static pico_status_t waInitialize(register picodata_ProcessingUnit this, picoos_int32 resetMode) {
90 if (NULL == this || NULL == this->subObj) {
91 return (picodata_step_result_t) picoos_emRaiseException(this->common->em,
94 wa = (wa_subobj_t *) this->subObj;
106 wa->lex = picoklex_getLex(this->voice->kbArray[PICOKNOW_KBID_LEX_MAIN]);
108 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
116 ulex = picoklex_getLex(this->voice->kbArray[ulexKbIds[i]]);
125 picoktab_getPos(this->voice->kbArray[PICOKNOW_KBID_TAB_POS]);
127 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
133 wa->dtposp = picokdt_getDtPosP(this->voice->kbArray[PICOKNOW_KBID_DT_POSP]);
135 return picoos_emRaiseException(this->common->em, PICO_EXC_KB_MISSING,
142 static picodata_step_result_t waStep(register picodata_ProcessingUnit this,
146 static pico_status_t waTerminate(register picodata_ProcessingUnit this) {
150 static pico_status_t waSubObjDeallocate(register picodata_ProcessingUnit this,
152 if (NULL != this) {
153 picoos_deallocate(this->common->mm, (void *) &this->subObj);
155 mm = mm; /* avoid warning "var not used in this function"*/
165 picodata_ProcessingUnit this;
167 this = picodata_newProcessingUnit(mm, common, cbIn, cbOut, voice);
168 if (this == NULL) {
172 this->initialize = waInitialize;
173 PICODBG_DEBUG(("set this->step to waStep"));
174 this->step = waStep;
175 this->terminate = waTerminate;
176 this->subDeallocate = waSubObjDeallocate;
177 this->subObj = picoos_allocate(mm, sizeof(wa_subobj_t));
178 if (this->subObj == NULL) {
179 picoos_deallocate(mm, (void *)&this);
184 waInitialize(this, PICO_RESET_FULL);
185 return this;
192 static picoos_uint8 waClassifyPos(register picodata_ProcessingUnit this,
219 picoos_emRaiseWarning(this->common->em, PICO_WARN_INVECTOR, NULL, NULL);
227 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
236 picoos_emRaiseWarning(this->common->em, PICO_WARN_OUTVECTOR,
246 picoos_emRaiseWarning(this->common->em, PICO_WARN_CLASSIFICATION,
253 static pico_status_t waProcessWordgraph(register picodata_ProcessingUnit this,
298 waClassifyPos(this, wa, content, head->len))) {
299 return picoos_emRaiseException(this->common->em,
310 picoos_emRaiseWarning(this->common->em, PICO_WARN_FALLBACK,NULL,
335 return picoos_emRaiseException(this->common->em, status,
347 return picoos_emRaiseException(this->common->em,
377 static picodata_step_result_t waStep(register picodata_ProcessingUnit this,
383 if (NULL == this || NULL == this->subObj) {
386 wa = (wa_subobj_t *) this->subObj;
387 mode = mode; /* avoid warning "var not used in this function"*/
401 rv = picodata_cbGetItem(this->cbIn, wa->inBuf,
416 picoos_emRaiseException(this->common->em, rv,
421 picoos_emRaiseException(this->common->em, rv,
427 picoos_emRaiseWarning(this->common->em,
456 rvP = waProcessWordgraph(this, wa, &ihead,
485 /* picoos_emRaiseWarning(this->common->em,
497 picoos_emRaiseException(this->common->em, rvP,
510 picoos_emRaiseException(this->common->em, rv,
524 picoos_emRaiseWarning(this->common->em,
526 picoos_emRaiseWarning(this->common->em,
539 rv = picodata_cbPutItem(this->cbOut, wa->outBuf,
542 PICODATA_INFO_ITEM(this->voice->kbArray[PICOKNOW_KBID_DBG],
559 picoos_emRaiseWarning(this->common->em, rv, NULL,NULL);
573 picoos_emRaiseException(this->common->em, PICO_ERR_OTHER, NULL, NULL);