Lines Matching refs:valptr
43 static int schema_restriction_var_int(xmlNodePtr val, sdlRestrictionIntPtr *valptr);
45 static int schema_restriction_var_char(xmlNodePtr val, sdlRestrictionCharPtr *valptr);
803 static int schema_restriction_var_int(xmlNodePtr val, sdlRestrictionIntPtr *valptr) in schema_restriction_var_int() argument
807 if ((*valptr) == NULL) { in schema_restriction_var_int()
808 (*valptr) = emalloc(sizeof(sdlRestrictionInt)); in schema_restriction_var_int()
810 memset((*valptr), 0, sizeof(sdlRestrictionInt)); in schema_restriction_var_int()
813 (*valptr)->fixed = FALSE; in schema_restriction_var_int()
817 (*valptr)->fixed = TRUE; in schema_restriction_var_int()
825 (*valptr)->value = atoi((char*)value->children->content); in schema_restriction_var_int()
830 static int schema_restriction_var_char(xmlNodePtr val, sdlRestrictionCharPtr *valptr) in schema_restriction_var_char() argument
834 if ((*valptr) == NULL) { in schema_restriction_var_char()
835 (*valptr) = emalloc(sizeof(sdlRestrictionChar)); in schema_restriction_var_char()
837 memset((*valptr), 0, sizeof(sdlRestrictionChar)); in schema_restriction_var_char()
840 (*valptr)->fixed = FALSE; in schema_restriction_var_char()
844 (*valptr)->fixed = TRUE; in schema_restriction_var_char()
853 (*valptr)->value = estrdup((char*)value->children->content); in schema_restriction_var_char()