Path: utzoo!utgpu!watmath!att!ucbvax!hplabs!hpfcdc!jimb From: jimb@hpfcdc.HP.COM (Jim Bigelow) Newsgroups: comp.sys.hp Subject: Re: HP Pascal + curses blues / X11 interface / HP-UX 6.5 Message-ID: <5570260@hpfcdc.HP.COM> Date: 8 Aug 89 17:55:01 GMT References: <29@mva.cs.liv.ac.uk> Organization: HP Ft. Collins, Co. Lines: 27 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