Article View: comp.mail.uucp
Article #5255Re: Problems with compiling rn
From: Chip Rosenthal
Date: Wed, 07 Mar 1990 00:53
Date: Wed, 07 Mar 1990 00:53
77 lines
2933 bytes
2933 bytes
<5108@emory.mathcs.emory.edu> dt@emory.UUCP (Dave Taylor {guest}) writes:
>I am running on SCO Xenix 2.3.2 and it is croaking on the term.c routine.
> cc -c -O term.c
>term.c
>term.c(600) : warning 3: not enough actual parameters for macro 'howmany'
My patches for rn-pl44 under XENIX are currently in test. If all goes
well, hopefully I can twist Stan's arm enough to get them in a future
official release. Below is the "term.c" portion of the patch set. It
will fix this problem.
Index: term.c
*** Distrib-pl44/term.c Fri Feb 9 17:41:44 1990
--- term.c Thu Feb 8 13:09:41 1990
***************
*** 1,5 ****
--- 1,9 ----
/* $Header: term.c,v 4.3.2.3 89/11/28 01:51:58 sob Locked $
*
+ * Thu Feb 8 13:08:31 1990 - Chip Rosenthal <chip@chinacat.Lonestar.ORG>
+ * Correct two calls to puts() which should have been fputs().
+ * Removed conflict with XENIX howmany() macro.
+ *
* $Log: term.c,v $
* Revision 4.3.2.3 89/11/28 01:51:58 sob
* Now handles SIGWINCH correctly.
***************
*** 295,301 ****
garbage = 0;
if (s[1]) {
if ((curmap->km_type[ch] & KM_TMASK) == KM_STRING) {
! puts(override,stdout) FLUSH;
free(curmap->km_ptr[ch].km_str);
curmap->km_ptr[ch].km_str = Nullch;
}
--- 299,305 ----
garbage = 0;
if (s[1]) {
if ((curmap->km_type[ch] & KM_TMASK) == KM_STRING) {
! fputs(override,stdout) FLUSH;
free(curmap->km_ptr[ch].km_str);
curmap->km_ptr[ch].km_str = Nullch;
}
***************
*** 306,312 ****
}
else {
if ((curmap->km_type[ch] & KM_TMASK) == KM_KEYMAP)
! puts(override,stdout) FLUSH;
else {
curmap->km_type[ch] = KM_STRING + garbage;
curmap->km_ptr[ch].km_str = savestr(m);
--- 310,316 ----
}
else {
if ((curmap->km_type[ch] & KM_TMASK) == KM_KEYMAP)
! fputs(override,stdout) FLUSH;
else {
curmap->km_type[ch] = KM_STRING + garbage;
curmap->km_ptr[ch].km_str = savestr(m);
***************
*** 597,602 ****
--- 601,609 ----
int
circfill()
{
+ #ifdef howmany
+ # undef howmany /* defined as a macro in XENIX's <sys/types.h> */
+ #endif
register int howmany = read(devtty,circlebuf+nextin,1);
if (howmany) {
<<< end of patch >>>
--
Chip Rosenthal | Yes, you're a happy man and you're
chip@chinacat.Lonestar.ORG | a lucky man, but are you a smart
Unicom Systems Development, 512-482-8260 | man? -David Bromberg
Technical Details
Message-ID:
<1034@chinacat.Lonestar.ORG>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!chinacat!chipReferences:
<5108@emory.mathcs.emory.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!chinacat!chip From: chip@chinacat.Lonestar.ORG (Chip Rosenthal) Newsgroups: comp.mail.uucp Subject: Re: Problems with compiling rn Message-ID: <1034@chinacat.Lonestar.ORG> Date: 7 Mar 90 00:53:01 GMT References: <5108@emory.mathcs.emory.edu> Distribution: usa Organization: Unicom Systems Development, Austin (yay!) Lines: 77