2006-05-26 07:49:24 +00:00
/* Automatically generated from pixma_sane.c */
2017-05-27 05:27:22 +00:00
static const SANE_Range constraint_gamma_table =
2012-10-31 11:40:07 +00:00
{ 0 , 255 , 0 } ;
2017-05-27 05:27:22 +00:00
static const SANE_Range constraint_gamma =
2012-10-31 11:40:07 +00:00
{ SANE_FIX ( 0.3 ) , SANE_FIX ( 5 ) , SANE_FIX ( 0 ) } ;
2017-05-27 05:27:22 +00:00
static const SANE_Range constraint_threshold =
2012-10-31 11:40:07 +00:00
{ 0 , 100 , 1 } ;
2017-05-27 05:27:22 +00:00
static const SANE_Range constraint_threshold_curve =
2012-10-31 11:40:07 +00:00
{ 0 , 127 , 1 } ;
2017-05-27 05:27:22 +00:00
static const SANE_Range constraint_adf_wait =
2017-04-04 09:23:03 +00:00
{ 0 , 3600 , 1 } ;
2006-05-26 07:49:24 +00:00
2012-10-31 11:40:07 +00:00
static
int find_string_in_list ( SANE_String_Const str , const SANE_String_Const * list )
2006-05-26 07:49:24 +00:00
{
int i ;
2012-10-31 11:40:07 +00:00
for ( i = 0 ; list [ i ] & & strcmp ( str , list [ i ] ) ! = 0 ; i + + ) { }
2006-05-26 07:49:24 +00:00
return i ;
}
2012-10-31 11:40:07 +00:00
static
int build_option_descriptors ( struct pixma_sane_t * ss )
2006-05-26 07:49:24 +00:00
{
SANE_Option_Descriptor * sod ;
option_descriptor_t * opt ;
2012-10-31 11:40:07 +00:00
memset ( OPT_IN_CTX , 0 , sizeof ( OPT_IN_CTX ) ) ;
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt_opt_num_opts ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_TITLE_NUM_OPTIONS ;
sod - > desc = SANE_DESC_NUM_OPTIONS ;
sod - > name = " " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_opt_num_opts ] . info = 0 ;
opt - > def . w = opt_last ;
opt - > val . w = opt_last ;
opt = & ( OPT_IN_CTX [ opt__group_1 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_GROUP ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Scan mode " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
opt = & ( OPT_IN_CTX [ opt_resolution ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_TITLE_SCAN_RESOLUTION ;
sod - > desc = SANE_DESC_SCAN_RESOLUTION ;
sod - > name = " resolution " ;
sod - > unit = SANE_UNIT_DPI ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_WORD_LIST ;
sod - > constraint . word_list = ss - > dpi_list ;
OPT_IN_CTX [ opt_resolution ] . info = SANE_INFO_RELOAD_PARAMS ;
opt - > def . w = 75 ;
opt - > val . w = 75 ;
opt = & ( OPT_IN_CTX [ opt_mode ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_STRING ;
sod - > title = SANE_TITLE_SCAN_MODE ;
sod - > desc = SANE_DESC_SCAN_MODE ;
sod - > name = " mode " ;
sod - > unit = SANE_UNIT_NONE ;
2012-06-27 08:49:09 +00:00
sod - > size = 31 ;
2012-10-31 11:40:07 +00:00
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_STRING_LIST ;
sod - > constraint . string_list = ss - > mode_list ;
OPT_IN_CTX [ opt_mode ] . info = SANE_INFO_RELOAD_PARAMS ;
2013-02-09 11:43:38 +00:00
opt - > def . s = SANE_VALUE_SCAN_MODE_COLOR ;
2012-10-31 11:40:07 +00:00
opt - > val . w = find_string_in_list ( opt - > def . s , sod - > constraint . string_list ) ;
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt_source ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_STRING ;
sod - > title = SANE_TITLE_SCAN_SOURCE ;
2012-10-31 11:40:07 +00:00
sod - > desc = SANE_I18N ( " Selects the scan source (such as a document-feeder). Set source before mode and resolution. Resets mode and resolution to auto values. " ) ;
2006-05-26 07:49:24 +00:00
sod - > name = " source " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 31 ;
2012-10-31 11:40:07 +00:00
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_STRING_LIST ;
sod - > constraint . string_list = ss - > source_list ;
OPT_IN_CTX [ opt_source ] . info = 0 ;
2012-10-31 11:40:07 +00:00
opt - > def . s = SANE_I18N ( " Flatbed " ) ;
opt - > val . w = find_string_in_list ( opt - > def . s , sod - > constraint . string_list ) ;
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt_button_controlled ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_BOOL ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Button-controlled scan " ) ;
sod - > desc = SANE_I18N ( " When enabled, scan process will not start immediately. To proceed, press \" SCAN \" button (for MP150) or \" COLOR \" button (for other models). To cancel, press \" GRAY \" button. " ) ;
2006-05-26 07:49:24 +00:00
sod - > name = " button-controlled " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_INACTIVE ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_button_controlled ] . info = 0 ;
opt - > def . w = SANE_FALSE ;
opt - > val . w = SANE_FALSE ;
opt = & ( OPT_IN_CTX [ opt__group_2 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_GROUP ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Gamma " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
opt = & ( OPT_IN_CTX [ opt_custom_gamma ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_BOOL ;
sod - > title = SANE_TITLE_CUSTOM_GAMMA ;
sod - > desc = SANE_DESC_CUSTOM_GAMMA ;
sod - > name = " custom-gamma " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_custom_gamma ] . info = 0 ;
opt - > def . w = SANE_TRUE ;
opt - > val . w = SANE_TRUE ;
opt = & ( OPT_IN_CTX [ opt_gamma_table ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_TITLE_GAMMA_VECTOR ;
sod - > desc = SANE_DESC_GAMMA_VECTOR ;
sod - > name = " gamma-table " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 4096 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & constraint_gamma_table ;
OPT_IN_CTX [ opt_gamma_table ] . info = 0 ;
2012-02-16 18:58:23 +00:00
opt = & ( OPT_IN_CTX [ opt_gamma ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_FIXED ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Gamma function exponent " ) ;
sod - > desc = SANE_I18N ( " Changes intensity of midtones " ) ;
2012-02-16 18:58:23 +00:00
sod - > name = " gamma " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
2012-02-16 18:58:23 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & constraint_gamma ;
OPT_IN_CTX [ opt_gamma ] . info = 0 ;
2012-10-31 11:40:07 +00:00
opt - > def . w = SANE_FIX ( AUTO_GAMMA ) ;
opt - > val . w = SANE_FIX ( AUTO_GAMMA ) ;
2012-02-16 18:58:23 +00:00
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt__group_3 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_GROUP ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Geometry " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
opt = & ( OPT_IN_CTX [ opt_tl_x ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_FIXED ;
sod - > title = SANE_TITLE_SCAN_TL_X ;
sod - > desc = SANE_DESC_SCAN_TL_X ;
sod - > name = " tl-x " ;
sod - > unit = SANE_UNIT_MM ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & ss - > xrange ;
OPT_IN_CTX [ opt_tl_x ] . info = SANE_INFO_RELOAD_PARAMS ;
2012-10-31 11:40:07 +00:00
opt - > def . w = SANE_FIX ( 0 ) ;
opt - > val . w = SANE_FIX ( 0 ) ;
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt_tl_y ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_FIXED ;
sod - > title = SANE_TITLE_SCAN_TL_Y ;
sod - > desc = SANE_DESC_SCAN_TL_Y ;
sod - > name = " tl-y " ;
sod - > unit = SANE_UNIT_MM ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & ss - > yrange ;
OPT_IN_CTX [ opt_tl_y ] . info = SANE_INFO_RELOAD_PARAMS ;
2012-10-31 11:40:07 +00:00
opt - > def . w = SANE_FIX ( 0 ) ;
opt - > val . w = SANE_FIX ( 0 ) ;
2006-05-26 07:49:24 +00:00
opt = & ( OPT_IN_CTX [ opt_br_x ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_FIXED ;
sod - > title = SANE_TITLE_SCAN_BR_X ;
sod - > desc = SANE_DESC_SCAN_BR_X ;
sod - > name = " br-x " ;
sod - > unit = SANE_UNIT_MM ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & ss - > xrange ;
OPT_IN_CTX [ opt_br_x ] . info = SANE_INFO_RELOAD_PARAMS ;
opt - > def . w = sod - > constraint . range - > max ;
opt - > val . w = sod - > constraint . range - > max ;
opt = & ( OPT_IN_CTX [ opt_br_y ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_FIXED ;
sod - > title = SANE_TITLE_SCAN_BR_Y ;
sod - > desc = SANE_DESC_SCAN_BR_Y ;
sod - > name = " br-y " ;
sod - > unit = SANE_UNIT_MM ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & ss - > yrange ;
OPT_IN_CTX [ opt_br_y ] . info = SANE_INFO_RELOAD_PARAMS ;
opt - > def . w = sod - > constraint . range - > max ;
opt - > val . w = sod - > constraint . range - > max ;
opt = & ( OPT_IN_CTX [ opt__group_4 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_GROUP ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Buttons " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
opt = & ( OPT_IN_CTX [ opt_button_update ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_BUTTON ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Update button state " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
sod - > name = " button-update " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 0 ;
2012-10-31 11:40:07 +00:00
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_button_update ] . info = 0 ;
opt = & ( OPT_IN_CTX [ opt_button_1 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Button 1 " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
sod - > name = " button-1 " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_button_1 ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
opt = & ( OPT_IN_CTX [ opt_button_2 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Button 2 " ) ;
2006-05-26 07:49:24 +00:00
sod - > desc = sod - > title ;
sod - > name = " button-2 " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
2006-05-26 07:49:24 +00:00
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_button_2 ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
2012-10-31 11:40:07 +00:00
opt = & ( OPT_IN_CTX [ opt_original ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_I18N ( " Type of original to scan " ) ;
sod - > desc = sod - > title ;
sod - > name = " original " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_original ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
opt = & ( OPT_IN_CTX [ opt_target ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_I18N ( " Target operation type " ) ;
sod - > desc = sod - > title ;
sod - > name = " target " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_target ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
2013-07-18 20:45:45 +00:00
opt = & ( OPT_IN_CTX [ opt_scan_resolution ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_I18N ( " Scan resolution " ) ;
sod - > desc = sod - > title ;
sod - > name = " scan-resolution " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_DETECT | SANE_CAP_ADVANCED ;
sod - > constraint_type = SANE_CONSTRAINT_NONE ;
OPT_IN_CTX [ opt_scan_resolution ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
2012-02-03 21:05:32 +00:00
opt = & ( OPT_IN_CTX [ opt__group_5 ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_GROUP ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Extras " ) ;
2012-02-03 21:05:32 +00:00
sod - > desc = sod - > title ;
opt = & ( OPT_IN_CTX [ opt_threshold ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_TITLE_THRESHOLD ;
sod - > desc = SANE_DESC_THRESHOLD ;
sod - > name = " threshold " ;
sod - > unit = SANE_UNIT_PERCENT ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
2012-02-27 14:31:37 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & constraint_threshold ;
2012-02-03 21:05:32 +00:00
OPT_IN_CTX [ opt_threshold ] . info = 0 ;
opt - > def . w = 50 ;
opt - > val . w = 50 ;
2012-02-29 10:40:18 +00:00
opt = & ( OPT_IN_CTX [ opt_threshold_curve ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
2012-10-31 11:40:07 +00:00
sod - > title = SANE_I18N ( " Threshold curve " ) ;
sod - > desc = SANE_I18N ( " Dynamic threshold curve, from light to dark, normally 50-65 " ) ;
2012-02-29 10:40:18 +00:00
sod - > name = " threshold-curve " ;
sod - > unit = SANE_UNIT_NONE ;
2012-10-31 11:40:07 +00:00
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
2012-02-29 10:40:18 +00:00
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & constraint_threshold_curve ;
OPT_IN_CTX [ opt_threshold_curve ] . info = 0 ;
2017-04-04 09:23:03 +00:00
opt = & ( OPT_IN_CTX [ opt_adf_wait ] ) ;
sod = & opt - > sod ;
sod - > type = SANE_TYPE_INT ;
sod - > title = SANE_I18N ( " ADF Waiting Time " ) ;
2019-08-06 03:54:18 +00:00
sod - > desc = SANE_I18N ( " When set, the scanner waits upto the specified time in seconds for a new document inserted into the automatic document feeder. " ) ;
2017-04-04 09:23:03 +00:00
sod - > name = " adf-wait " ;
sod - > unit = SANE_UNIT_NONE ;
sod - > size = 1 * sizeof ( SANE_Word ) ;
sod - > cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT | SANE_CAP_AUTOMATIC | SANE_CAP_INACTIVE ;
sod - > constraint_type = SANE_CONSTRAINT_RANGE ;
sod - > constraint . range = & constraint_adf_wait ;
OPT_IN_CTX [ opt_adf_wait ] . info = 0 ;
opt - > def . w = 0 ;
opt - > val . w = 0 ;
2006-05-26 07:49:24 +00:00
return 0 ;
}