🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1962

gcc 1.31 fixincludes script bug w/suggested fix

#1962
From: Mark D. Baushke
Date: Tue, 22 Nov 1988 17:11
49 lines
2055 bytes
Index: gcc 1.31, SunOS 3.4, Sun 3/50
	/usr/include/sundev/vuid_event.h

The fixincludes script modifies /usr/include/sundev/vuid_event.h
incorrectly.

The lines

#define	SHIFT_LEFTCTRL		(VKEY_FIRSTSHIFT+4)		/* 32532 */
#define	SHIFT_RIGHTCTRL		(VKEY_FIRSTSHIFT+5)		/* 32533 */

get changed to

#define	SHIFT_LEFTCTRL		(VKEY_FIRSTSHIFT+'4')		/* 32532 */
#define	SHIFT_RIGHTCTRL		(VKEY_FIRSTSHIFT+'5')		/* 32533 */

which gives incorrect values to SHIFT_LEFTCTRL and SHIFT_RIGHTCTRL.

The rest of the changes to the _IOW and _IOR values in that file are
correct.

Fix:

*** gcc-1.31/fixincludes-dist	Mon Nov 21 23:58:22 1988
--- gcc-1.31/fixincludes	Tue Nov 22 09:07:16 1988
***************
*** 49,55 ****
  
  if [ -r ${LIB}/sundev/vuid_event.h ]; then
!   echo Fixing sundev/vuid_event.h comment
    ex ${LIB}/sundev/vuid_event.h <<EOF
    g/doesn't/s/doesn't/doesn''t/
    wq
  EOF
--- 49,56 ----
  
  if [ -r ${LIB}/sundev/vuid_event.h ]; then
!   echo Fixing sundev/vuid_event.h comment, SHIFT_LEFTCTRL, and SHIFT_RIGHTCTRL
    ex ${LIB}/sundev/vuid_event.h <<EOF
    g/doesn't/s/doesn't/doesn''t/
+   g/VKEY_FIRSTSHIFT+'/s/'\(.\)'/\1/
    wq
  EOF

------------------------------------------------------------------------------
Mark D. Baushke                 Internet:    mdb%silvlis.com@sun.com
Silvar-Lisco, Inc.              Nameservers: mdb@silvlis.com
1080 Marsh Road                 Usenet:      {pyramid,sun}!silvlis!mdb
Menlo Park, CA 94025-1053       Telephone:   +1 415 853-6411 / +1 415 969-8328
Technical Details
Message-ID: <8811221711.AA11231@amadeus.silvlis.com>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!mailrus!cwjcc!tut.cis.ohio-state.edu!silvlis.com!mdb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!mailrus!cwjcc!tut.cis.ohio-state.edu!silvlis.com!mdb
From: mdb@silvlis.com (Mark D. Baushke)
Newsgroups: gnu.gcc.bug
Subject: gcc 1.31 fixincludes script bug w/suggested fix
Message-ID: <8811221711.AA11231@amadeus.silvlis.com>
Date: 22 Nov 88 17:11:31 GMT
Article-I.D.: amadeus.8811221711.AA11231
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Silvar-Lisco, 1080 Marsh Road, Menlo Park, CA 94025-1053
Lines: 49