]> granicus.if.org Git - nethack/commitdiff
prep for sean's emailed patch
authornhmall <mjnh@persona.ca>
Sun, 24 May 2015 14:09:44 +0000 (10:09 -0400)
committernhmall <mjnh@persona.ca>
Sun, 24 May 2015 14:09:44 +0000 (10:09 -0400)
include/qtext.h
util/makedefs.c

index b08abd7f35cebf858c805e9bfdc03c011476b0d8..182e2678097d3bc5cd533575dd439d15fa97dc81 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 qtext.h $NHDT-Date: 1432447889 2015/05/24 06:11:29 $  $NHDT-Branch: master $:$NHDT-Revision: 1.10 $ */
+/* NetHack 3.6 qtext.h $NHDT-Date: 1432476581 2015/05/24 14:09:41 $  $NHDT-Branch: sean_on_the_road $:$NHDT-Revision: 1.11 $ */
 /* NetHack 3.6 qtext.h $Date: 2009/05/06 10:45:02 $  $Revision: 1.7 $ */
 /*     SCCS Id: @(#)qtext.h    3.5     1997/02/02      */
 /* Copyright (c) Mike Stephenson 1991.                           */
@@ -12,9 +12,8 @@
 #define LEN_HDR 3              /* Maximum length of a category name */
 
 /* quest text message buffer sizes; used to be hardcoded as 80 and 128, but
-   have been expanded to allow some slop for block message summary lines
-   and for source repository header lines */
-#define QTEXT_IN_SIZ   150     /* used by both nethack and makedefs */
+   have been expanded to allow some slop for block message summary lines */
+#define QTEXT_IN_SIZ   100     /* used by both nethack and makedefs */
 #define QTEXT_OUTSIZ   200     /* used only by nethack */
 
 struct qtmsg {
@@ -51,7 +50,7 @@ struct        qthdr {
 #define TEXT_TRUNC     "Text record truncated at line %d\n"
 #define OUT_OF_HEADERS "Too many message types (line %d)\nAdjust N_HDR in qtext.h and recompile.\n"
 #define OUT_OF_MESSAGES "Too many messages in class (line %d)\nAdjust N_MSG in qtext.h and recompile.\n"
-#define QLINE_TOO_LONG "Line %d too long; truncated\n"
+
 
 #else  /***** !MAKEDEFS *****/
 
index 4e41c3227502717537577130ad49670ce663cbf4..dc28b1d4eabb373d1a00a410f658f3576fed99b5 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6  makedefs.c  $NHDT-Date: 1432447897 2015/05/24 06:11:37 $  $NHDT-Branch: master $:$NHDT-Revision: 1.94 $ */
+/* NetHack 3.6  makedefs.c  $NHDT-Date: 1432476576 2015/05/24 14:09:36 $  $NHDT-Branch: sean_on_the_road $:$NHDT-Revision: 1.95 $ */
 /* NetHack 3.6  makedefs.c  $Date: 2012/01/15 09:27:03 $  $Revision: 1.50 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* Copyright (c) M. Stephenson, 1990, 1991.                      */
@@ -2393,14 +2393,6 @@ do_questtxt()
         SpinCursor(3);
 
         qt_line++;
-        if (!index(in_line, '\n')) {
-            /* no newline; line is longer than QTEXT_IN_SIZ-1 */
-            int c;
-
-            Fprintf(stderr, QLINE_TOO_LONG, qt_line);
-            /* discard the rest of the current input line */
-            do { c = fgetc(ifp); } while (c != '\n' && c != EOF);
-        }
         if (qt_control(in_line))
             do_qt_control(in_line);
         else if (qt_comment(in_line))