patch-2.2.2 linux/scripts/tkparse.c
Next file: linux/scripts/tkparse.h
Previous file: linux/scripts/tkgen.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Mon Feb 1 12:03:19 1999
- Orig file:
v2.2.1/linux/scripts/tkparse.c
- Orig date:
Wed Jan 20 23:14:07 1999
diff -u --recursive --new-file v2.2.1/linux/scripts/tkparse.c linux/scripts/tkparse.c
@@ -26,6 +26,9 @@
* every architecture and comparing it character-for-character against
* the output of the old tkparse.
*
+ * 23 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
+ * - Remove bug-compatible code.
+ *
* TO DO:
* - xconfig is at the end of its life cycle. Contact <mec@shout.net> if
* you are interested in working on the replacement.
@@ -434,25 +437,14 @@
case token_define_bool:
pnt = get_string( pnt, &cfg->optionname );
-#if ! defined(BUG_COMPATIBLE)
while ( *pnt == ' ' || *pnt == '\t' )
pnt++;
-#endif
if ( *pnt == 'n' || *pnt == 'N' ) cfg->value = "0";
else if ( *pnt == 'y' || *pnt == 'Y' ) cfg->value = "1";
else if ( *pnt == 'm' || *pnt == 'M' ) cfg->value = "2";
else
{
-#if ! defined(BUG_COMPATIBLE)
syntax_error( "unknown define_bool value" );
-#else
- /*
- * This ought to give the same output as printf'ing
- * through the null pointer ... I don't want to be
- * SIGSEGV compatible!
- */
- cfg->value = "(null)";
-#endif
}
break;
@@ -558,12 +550,7 @@
if ( infile == NULL )
{
sprintf( buffer, "unable to open %s", filename );
-#if defined(BUG_COMPATIBLE)
- fprintf( stderr, "%s\n", buffer );
- return;
-#else
syntax_error( buffer );
-#endif
}
/* push the new file name and line number */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)