* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: configuration.c,v 1.56 2003/05/12 17:33:20 gbazin Exp $
+ * $Id: configuration.c,v 1.57 2003/06/14 16:29:22 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
fprintf( file, "# %s (%s)\n", p_item->psz_text,
(p_item->i_type == CONFIG_ITEM_BOOL) ?
_("boolean") : _("integer") );
+ if( p_item->i_value == p_item->i_value_orig )
+ fprintf( file, "#" );
fprintf( file, "%s=%i\n", p_item->psz_name, p_item->i_value );
break;
if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("float") );
+ if( p_item->f_value == p_item->f_value_orig )
+ fprintf( file, "#" );
fprintf( file, "%s=%f\n", p_item->psz_name,
(double)p_item->f_value );
break;
if( p_item->psz_text )
fprintf( file, "# %s (%s)\n", p_item->psz_text,
_("string") );
+ if( (!p_item->psz_value && !p_item->psz_value_orig) ||
+ (p_item->psz_value && p_item->psz_value_orig &&
+ !strcmp( p_item->psz_value, p_item->psz_value_orig )) )
+ fprintf( file, "#" );
fprintf( file, "%s=%s\n", p_item->psz_name,
p_item->psz_value ? p_item->psz_value : "" );
}