rkl@mva.cs.liv.ac.uk (08/03/89)
We have HP 9000 Series 300 workstations (318s/319s) here running HP-UX 6.2. I want to be able to use curses (and/or mini-curses) from HP Pascal. HP Pascal can access external functions and procedures, but doesn't seem to be able to get at external ints inside C libraries (e.g. LINES and COLS defined in procedure initscr() inside the library libcurses.a). At the moment, I'm using a C 'glue' routine to get at these integers and pass them back to Pascal, but can some kind soul please tell me an easier way that I've missed in the manuals ? Is there any equivalent of the X11 include files for HP Pascal ? I don't fancy transating megabytes of .h files into Pascal... P.S. Is HP-UX 6.5 now *officially* available in the UK ? We've been waiting for quite some for it now - our HP rep says "it's being shipped" but that was at the beginning of the year. Richard K. Lloyd, **** This is a MicroVAX II running VAX/VMS V5.1 **** Computer Science Dept., * JANET : RKL@UK.AC.LIV.CS.MVA or * Liverpool University, * RKL@000010500211.FTP.MAIL * Merseyside, England, * Internet : RKL%mva.cs.liv.ac.uk@cunyvm.cuny.edu * Great Britain. ****************************************************
stroyan@hpfcdc.HP.COM (Mike Stroyan) (08/09/89)
> Is there any equivalent of the X11 include files for HP Pascal ? I don't > fancy transating megabytes of .h files into Pascal... > > Richard K. Lloyd Sorry, no. No one here has found the time to translate them either. Actually they are only about 600K bytes, counting the bitmap files. Mike Stroyan, stroyan@hpfcla.hp.com
jimb@hpfcdc.HP.COM (Jim Bigelow) (08/09/89)
rkl@mva.cs.liv.ac.uk asks: > I want to be able to use curses (and/or mini-curses) from HP Pascal. > HP Pascal can access external functions and procedures, but doesn't seem > to be able to get at external ints inside C libraries (e.g. LINES and COLS > defined in procedure initscr() inside the library libcurses.a). At the > moment, I'm using a C 'glue' routine to get at these integers and pass them > back to Pascal, but can some kind soul please tell me an easier way that > I've missed in the manuals ? > > Is there any equivalent of the X11 include files for HP Pascal ? I don't > fancy transating megabytes of .h files into Pascal... One possiblity would be to alias these variables to the unix/c equivalent, remembering that the linker, etc., may have prepended a "_" leading underscore. THe "HP-UX Portability Guide" 98794-90046 has information on how to interface pascal and C. If your writing 'glue' routines in C that are accessed by your pascal routines, why not have the C routines include the X11 headers? Regrads, Jim Bigelow HP9000/S300 Pascal 303-229-6251 jimb@hpfcrt.hp.com