[Python-checkins] CVS: python/dist/src/Modules termios.c,2.18,2.19

Fred L. Drake fdrake@users.sourceforge.net
Sat, 03 Mar 2001 10:08:54 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv17494

Modified Files:
	termios.c 
Log Message:

Wrap several more of the constants in #ifdef/#endif for FreeBSD; at least
some fairly recent versions have an anaemic selection of terminal-control
symbols.

This closes SF bug #405567.


Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -r2.18 -r2.19
*** termios.c	2001/03/02 06:50:58	2.18
--- termios.c	2001/03/03 18:08:52	2.19
***************
*** 359,363 ****
--- 359,365 ----
  	{"IGNCR", IGNCR},
  	{"ICRNL", ICRNL},
+ #ifdef IUCLC
  	{"IUCLC", IUCLC},
+ #endif
  	{"IXON", IXON},
  	{"IXANY", IXANY},
***************
*** 367,404 ****
--- 369,462 ----
  	/* struct termios.c_oflag constants */
  	{"OPOST", OPOST},
+ #ifdef OLCUC
  	{"OLCUC", OLCUC},
+ #endif
  	{"ONLCR", ONLCR},
+ #ifdef OCRNL
  	{"OCRNL", OCRNL},
+ #endif
+ #ifdef ONOCR
  	{"ONOCR", ONOCR},
+ #endif
+ #ifdef ONLRET
  	{"ONLRET", ONLRET},
+ #endif
+ #ifdef OFILL
  	{"OFILL", OFILL},
+ #endif
+ #ifdef OFDEL
  	{"OFDEL", OFDEL},
+ #endif
+ #ifdef NLDLY
  	{"NLDLY", NLDLY},
+ #endif
+ #ifdef CRDLY
  	{"CRDLY", CRDLY},
+ #endif
+ #ifdef TABDLY
  	{"TABDLY", TABDLY},
+ #endif
+ #ifdef BSDLY
  	{"BSDLY", BSDLY},
+ #endif
+ #ifdef VTDLY
  	{"VTDLY", VTDLY},
+ #endif
+ #ifdef FFDLY
  	{"FFDLY", FFDLY},
+ #endif
  
  	/* struct termios.c_oflag-related values (delay mask) */
+ #ifdef NL0
  	{"NL0", NL0},
+ #endif
+ #ifdef NL1
  	{"NL1", NL1},
+ #endif
+ #ifdef CR0
  	{"CR0", CR0},
+ #endif
+ #ifdef CR1
  	{"CR1", CR1},
+ #endif
+ #ifdef CR2
  	{"CR2", CR2},
+ #endif
+ #ifdef CR3
  	{"CR3", CR3},
+ #endif
+ #ifdef TAB0
  	{"TAB0", TAB0},
+ #endif
+ #ifdef TAB1
  	{"TAB1", TAB1},
+ #endif
+ #ifdef TAB2
  	{"TAB2", TAB2},
+ #endif
+ #ifdef TAB3
  	{"TAB3", TAB3},
+ #endif
  #ifdef XTABS
  	{"XTABS", XTABS},
  #endif
+ #ifdef BS0
  	{"BS0", BS0},
+ #endif
+ #ifdef BS1
  	{"BS1", BS1},
+ #endif
+ #ifdef VT0
  	{"VT0", VT0},
+ #endif
+ #ifdef VT1
  	{"VT1", VT1},
+ #endif
+ #ifdef FF0
  	{"FF0", FF0},
+ #endif
+ #ifdef FF1
  	{"FF1", FF1},
+ #endif
  
  	/* struct termios.c_cflag constants */