예제 #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;
}