[comp.os.vms] Problem in VAX C CURSES module

nagy%warner.hepnet@LBL.ARPA (06/11/87)

>Ton Akveld --- E R C --- <AKVELD%HROEUR51.BITNET@WISCVM.WISC.EDU>
>I recently came across the next problem;
     
> 1070    1       mvgetstr(10, 20, pword);
>%CC-W-TOOMANYMACARGS, Argument list for macro "mvgetstr" contains
>                too many arguments;  excess arguments ignored.
 etc...     

>VAX C bug ??
Certainly looks that way.
     
The problems is the definition in the CURSES module in the VAXCDEF.TLB
text library in SYS$LIBRARY (and, if your system manager extracted the
modules at installation, in the CURSES.H file in SYS$LIBRARY:).

The offending line is:

	# define mvgetstr(y,x)		mvwgetstr (stdscr, y, x)

which should be editted and replaced by:

	# define mvgetstr(y,x,str)	mvwgetstr (stdscr, y, x, str)

This must be done by the system manager to the CURSES.H file in SYS$LIBRARY
(if any) and the CURSES module must be fixed in the library.  The CURSES
module can be replaced by the fixed version of CURSES.H as:

	$ LIBRARY /TEXT /REPLACE  SYS$LIBRARY:VAXCDEF  SYS$LIBRARY:CURSES.H

or, the module must be extracted, editted and replaced:

	$ LIBRARY /TEXT /EXTRACT=CURSES /OUTPUT=CURSES.H  SYS$LIBRARY:VAXCDEF
	edit CURSES.H to make fix
	$ LIBRARY /TEXT /REPLACE  SYS$LIBRARY:VAXCDEF  CURSES.H
	can now delete CURSES.H from local work directory

NOTE: This problem is present through V2.2 of VAX C.  We have not installed
V2.3 of VAX C and so I cannot tell if the problem is present there.

= Frank J. Nagy
= Fermilab Research Division EED/Controls
= HEPNET: WARNER::NAGY (43198::NAGY) or FNAL::NAGY (43009::NAGY)
= BitNet: NAGY@FNAL
= USnail: Fermilab POB 500 MS/220 Batavia, IL 60510