Skip to content
  • Morten Welinder's avatar
    Fix handling of strings for 'b' argument types. We only want TRUE/FALSE, · 29e6a051
    Morten Welinder authored
    2005-11-30  Morten Welinder  <terra@gnome.org>
    
    	* src/func.c (function_call_with_list): Fix handling of strings
    	for 'b' argument types.  We only want TRUE/FALSE, not dates and
    	numbers in strings.
    
    	* src/commands.c (cmd_set_text): Plug leak.
    
    	* src/value.c (value_new_from_string): Factor out boolean parsing
    	into value_parse_boolean.
    	(value_get_as_bool): Use value_parse_boolean.  This changes
    	semantics in only "TRUE" and "FALSE" (ignoring case) are value
    	values.
    29e6a051