delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/20/07:55:16

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: <djgpp-workers AT delorie DOT com>
Subject: [patch] L_ctermid in stdio.h
Date: Sat, 20 Jan 2001 13:56:35 +0100
Message-ID: <NEBBIOJNGMKPNOBKHCGHKENKCAAA.tim.van.holder@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id HAA06337
Reply-To: djgpp-workers AT delorie DOT com

currently, this is #define'd away; however, the posix module
for Python uses:

char buffer[L_ctermid];

which is rejected by the compiler.

So I amended stdio.h to define it to 4 (ctermid always returns
"con", so 4 seems a good value).

Index: stdio.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/stdio.h,v
retrieving revision 1.3
diff -u -r1.3 stdio.h
--- stdio.h     2000/12/05 14:05:53     1.3
+++ stdio.h     2001/01/20 12:50:43
@@ -108,7 +108,7 @@

 #ifndef __STRICT_ANSI__

-#define L_ctermid
+#define L_ctermid 4
 #define L_cusrid
 /* #define STREAM_MAX  20 - DOS can change this */

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019