Root/gtypist/patches/0001-ignore-line-too-long.patch

1diff --git a/src/gtypist.c b/src/gtypist.c
2index 03e949c..cfa50a8 100644
3--- a/src/gtypist.c
4+++ b/src/gtypist.c
5@@ -564,8 +564,6 @@ do_tutorial( FILE *script, char *line ) {
6   /* output this line, and each continuation line read */
7   do
8     {
9- if ( linenum >= LINES - 1 )
10- fatal_error( _("data exceeds screen length"), line );
11       move( linenum, 0 );
12       ADDSTR( SCR_DATA( line ));
13       get_script_line( script, line );
14@@ -663,8 +661,6 @@ do_drill( FILE *script, char *line ) {
15      against the screen length */
16   for ( p = data, lines_count = 0; *p != ASCII_NULL; p++ )
17     if ( *p == ASCII_NL) lines_count++;
18- if ( DP_TOP_LINE + lines_count * 2 > LINES )
19- fatal_error( _("data exceeds screen length"), line );
20 
21   /* if the last command was a tutorial, ensure we have
22      the complete screen */
23@@ -931,8 +927,6 @@ do_speedtest( FILE *script, char *line ) {
24      against the screen length */
25   for ( p = data, lines_count = 0; *p != ASCII_NULL; p++ )
26     if ( *p == ASCII_NL) lines_count++;
27- if ( DP_TOP_LINE + lines_count > LINES )
28- fatal_error( _("data exceeds screen length"), line );
29 
30   /* if the last command was a tutorial, ensure we have
31      the complete screen */
32diff --git a/src/script.c b/src/script.c
33index 7974a9d..7ca1b3a 100644
34--- a/src/script.c
35+++ b/src/script.c
36@@ -109,12 +109,6 @@ void get_script_line( FILE *script, char *line )
37     fatal_error( _("data shortage"), line );
38       if ( SCR_SEP( line ) != C_SEP )
39     fatal_error( _("missing ':'"), line );
40- if ( SCR_COMMAND( line ) != C_LABEL
41- && SCR_COMMAND( line ) != C_GOTO
42- && SCR_COMMAND( line ) != C_YGOTO
43- && SCR_COMMAND( line ) != C_NGOTO
44- && strlen( SCR_DATA( line )) > COLS )
45- fatal_error( _("line too long for screen"), line );
46     }
47 }
48 
49

Archive Download this file



interactive