texlive/source-asymptote.dif

26 lines
612 B
Plaintext

--- utils/asymptote/interact.cc
+++ utils/asymptote/interact.cc 2013-05-03 10:25:51.255472000 +0000
@@ -85,6 +85,7 @@ FILE *fin=NULL;
char *readpipeline(const char *prompt)
{
+#if 0
const int max_size=256;
static char buf[max_size];
ostringstream s;
@@ -94,11 +95,14 @@ char *readpipeline(const char *prompt)
} while(buf[strlen(buf)-1] != '\n');
return StrdupMalloc(s.str());
/* Simpler version (requires POSIX 2008; temporarily removed for TeXLive 2013):
+#endif
char *line=NULL;
size_t n;
n=getline(&line,&n,fin);
return line;
+#if 0
*/
+#endif
}
void pre_readline()