Date:2012-03-11 03:37:38 (8 years 3 months ago)
Author:Xiangfu
Commit:d52629c80367d47ad4195dca585264f61a39967c
Message:gtypist: ignore line too long

Files: gtypist/Makefile (1 diff)
gtypist/patches/0001-ignore-line-too-long.patch (1 diff)

Change Details

gtypist/Makefile
77
88PKG_NAME:=gtypist
99PKG_VERSION:=2.8.5
10PKG_RELEASE:=1
10PKG_RELEASE:=2
1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1212PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/gtypist/
1313PKG_BUILD_DIR:=$(BUILD_DIR)/gtypist-$(PKG_VERSION)
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@@ -564,8 +564,6 @@ do_tutorial( FILE *script, char *line ) {
5   /* output this line, and each continuation line read */
6   do
7     {
8- if ( linenum >= LINES - 1 )
9- fatal_error( _("data exceeds screen length"), line );
10       move( linenum, 0 );
11       ADDSTR( SCR_DATA( line ));
12       get_script_line( script, line );
13@@ -663,8 +661,6 @@ do_drill( FILE *script, char *line ) {
14      against the screen length */
15   for ( p = data, lines_count = 0; *p != ASCII_NULL; p++ )
16     if ( *p == ASCII_NL) lines_count++;
17- if ( DP_TOP_LINE + lines_count * 2 > LINES )
18- fatal_error( _("data exceeds screen length"), line );
19
20   /* if the last command was a tutorial, ensure we have
21      the complete screen */
22@@ -931,8 +927,6 @@ do_speedtest( FILE *script, char *line ) {
23      against the screen length */
24   for ( p = data, lines_count = 0; *p != ASCII_NULL; p++ )
25     if ( *p == ASCII_NL) lines_count++;
26- if ( DP_TOP_LINE + lines_count > LINES )
27- fatal_error( _("data exceeds screen length"), line );
28
29   /* if the last command was a tutorial, ensure we have
30      the complete screen */
31diff --git a/src/script.c b/src/script.c
32index 7974a9d..7ca1b3a 100644
33--- a/src/script.c
34@@ -109,12 +109,6 @@ void get_script_line( FILE *script, char *line )
35     fatal_error( _("data shortage"), line );
36       if ( SCR_SEP( line ) != C_SEP )
37     fatal_error( _("missing ':'"), line );
38- if ( SCR_COMMAND( line ) != C_LABEL
39- && SCR_COMMAND( line ) != C_GOTO
40- && SCR_COMMAND( line ) != C_YGOTO
41- && SCR_COMMAND( line ) != C_NGOTO
42- && strlen( SCR_DATA( line )) > COLS )
43- fatal_error( _("line too long for screen"), line );
44     }
45 }
46

Archive Download the corresponding diff file



interactive