WObject* WEXPORT WVList::add( WObject* obj ) { growBlock(); if( _set != NULL ) { _set[_free] = obj; _free += 1; return( obj ); } return( NULL ); }
WObject* WEXPORT WVList::insertAt( int i, WObject* obj ) /* * NOTE: this doesn't insert anything after the end of the string. */ { if( i < 0 ) return add( obj ); growBlock(); if( _set != NULL && i <= _free ) { if( i < _free ) { memmove( _set + i + 1, _set + i, ( _free - i ) * sizeof( WObject * ) ); } _set[ i ] = obj; _free += 1; return obj; } return NULL; }