/* Free off a style sheet pointer */ HTStyleSheet * HTStyleSheetFree ARGS1 (HTStyleSheet *,self) { HTStyle * style; while((style=self->styles)!=0) { self->styles = style->next; HTStyleFree(style); } free(self); return 0; }
/* Free off a style sheet pointer */ HTStyleSheet *HTStyleSheetFree(HTStyleSheet *self) { HTStyle *style; while ((style = self->styles) != 0) { self->styles = style->next; HTStyleFree(style); } FREE(self); return NULL; }
HTStyleSheet *HTStyleSheetFree( HTStyleSheet *self ) { HTStyle *style; while ( style = &self->styles, style ) { self->styles = style->next; HTStyleFree( style ); } if ( self ) { free( self ); self = 0; } return 0; }