@@ -112,6 +112,7 @@ Error ERROR_unlabelled_param_type = ERROR_none;
112112Error ERROR_file_unreadable ;
113113Error ERROR_file_unwriteable ;
114114Error ERROR_warn_unsupported_lang_feat ;
115+ Error ERROR_warn_small_real ;
115116
116117struct Scope_ * FUNC_NVL ;
117118struct Scope_ * FUNC_USEDIN ;
@@ -522,11 +523,14 @@ void EXPRESSinitialize( void ) {
522523 ERROR_file_unreadable = ERRORcreate ( "Could not read file %s: %s" , SEVERITY_ERROR );
523524 ERROR_file_unwriteable = ERRORcreate ( "Could not write file %s: %s" , SEVERITY_ERROR );
524525 ERROR_warn_unsupported_lang_feat = ERRORcreate ( "Unsupported language feature (%s) at %s:%d" , SEVERITY_WARNING );
526+ ERROR_warn_small_real = ERRORcreate ( "REAL with extremely small magnitude may be interpreted as zero on some "
527+ "platforms or by other parsers - abs(%f) <= FLT_EPSILON" , SEVERITY_WARNING );
525528
526529 OBJcreate ( OBJ_EXPRESS , EXPRESS_get_symbol , "express file" , OBJ_UNUSED_BITS );
527530
528531 ERRORcreate_warning ( "unknown_subtype" , ERROR_unknown_subtype );
529532 ERRORcreate_warning ( "unsupported" , ERROR_warn_unsupported_lang_feat );
533+ ERRORcreate_warning ( "limits" , ERROR_warn_small_real );
530534
531535 EXPRESS_PATHinit (); /* note, must follow defn of errors it needs! */
532536}
@@ -544,6 +548,7 @@ void EXPRESScleanup( void ) {
544548 ERRORdestroy ( ERROR_file_unreadable );
545549 ERRORdestroy ( ERROR_file_unwriteable );
546550 ERRORdestroy ( ERROR_warn_unsupported_lang_feat );
551+ ERRORdestroy ( ERROR_warn_small_real );
547552
548553 DICTcleanup ();
549554 OBJcleanup ();
0 commit comments