paulh@tekcae.UUCP (Paul Hammer) (11/19/86)
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