示例#1
0
文件: HTStyle.c 项目: kotohvost/yui
/*	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;
}
示例#2
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;
}
示例#3
0
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;
}