Skip to content

Increase maximum characters in read-line #2

@snozawa

Description

@snozawa

I'd like to read lines which has more than 8192 characters .
Currently, we can read lines until 8192 characters because of immediate in lisp/c/lispio.c.

Is there any reason to use 8192?
Any problems with the following increasing?

Index: lispio.c
===================================================================
--- lispio.c    (リビジョン 669)
+++ lispio.c    (作業コピー)
@@ -212,13 +212,13 @@
 pointer argv[];
 { register pointer strm;
   pointer eoferrorp=T,eofvalue=NIL;
-  byte cb[8192];
+  byte cb[16384];
   register int i=0,ch;
   ckarg2(0,3);
   strm=getinstream(ctx,n,argv[0]);
   if (n>=2) eoferrorp=argv[1];
   if (n==3) eofvalue=argv[2];
-  while (i<8192) {
+  while (i<16384) {
     ch=readch(strm);
     if (ch=='\n') break;
     else if (ch==EOF) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions