]> granicus.if.org Git - graphviz/commitdiff
Turn off call to isatty() in flex output. The cgraph readers never use
authorEmden Gansner <erg@research.att.com>
Thu, 3 Jan 2013 20:42:42 +0000 (15:42 -0500)
committerEmden Gansner <erg@research.att.com>
Thu, 3 Jan 2013 20:42:42 +0000 (15:42 -0500)
this result, and the Windows version of isatty() crashes if the file descriptor
is not a valid open file.

lib/cgraph/scan.l

index 75d377d8b9d3969a407e9ace4b8daf082e35ad69..e2215d1f41369ebdec8b5a7feaf1ca69acc963bb 100644 (file)
@@ -39,6 +39,7 @@ void agsetfile(char* f) { InputFile = f; line_num = 1; }
  */
 void aglexinit(Agdisc_t *disc, void *ifile) { Disc = disc; Ifile = ifile; graphType = 0;}
 
+#define isatty(x) 0
 #ifndef YY_INPUT
 #define YY_INPUT(buf,result,max_size) \
        if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \