Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!rutgers!sri-unix!hplabs!cae780!tektronix!tekcrl!tekcae!paulh From: paulh@tekcae.UUCP (Paul Hammer) Newsgroups: comp.lang.pascal Subject: Pscal Implementation Details Message-ID: <539@tekcae.UUCP> Date: Tue, 18-Nov-86 19:55:32 EST Article-I.D.: tekcae.539 Posted: Tue Nov 18 19:55:32 1986 Date-Received: Wed, 19-Nov-86 09:22:27 EST Reply-To: paulh@tekcae.UUCP (Paul Hammer) Distribution: na Organization: Tektronix, Inc., Beaverton, OR. Lines: 48 I need the ability to access Pascal Libraries from C mainlines and functions. My goal currently is to produce a C/Pascal interface document. I am currently on a Vax 11/780 running 4:3 BSD UNIX. The first phase of my investigation is complete and its description follows. I have produced a number of test cases involving the simple ordinal types: boolean char integer real For each of these types, I have a test case of a C mainline: 1. calling a pascal procedure with the value 2. calling a pascal procedure with the addreses of the value 3. calling a pascal function with the value 4. calling a pascal function with the addreses of the value 5. calling a function which returns the value 6. calling a pascal procedure with a pointer to an array of the values 7. passing a pascal procedure a pointer to a structure which contains these values (unpacked) These tests all work as expected. The second phase of my investigation is to produce tests involving these remaining Pascal data types and features: 8. variant records 9. user defined ordinal types 10. sub-ranges 11. packed arrays 12. packed records 13. nested records 14. sets 15. non-zero based arrays 16. the use of malloc vrs new 17. proper building of makefiles for compiling 18. file opening, closing, and accessing 19. What haven't I thought of?? To test these it seems I would need to know the feature's implementation. Any help would be appriciated. Paul Hammer