Next: , Previous: , Up: Bocage methods   [Contents][Index]


21.4 Reference counting

Mutator function: Marpa_Bocage marpa_b_ref (Marpa_Bocage b)

On success, increases the reference count by 1. This method is not needed by most applications.

Return value: On success, b. On hard failure, NULL.

Destructor function: void marpa_b_unref (Marpa_Bocage b)

Decreases the reference count by 1, destroying b once the reference count reaches zero. When b is destroyed, the reference count of its parent recognizer is decreased by 1.