Xref: utzoo comp.lang.pascal:3152 comp.lang.c:26313 comp.sys.ibm.pc.programmer:121 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!brutus.cs.uiuc.edu!jarthur!tcourtoi From: tcourtoi@jarthur.Claremont.EDU (Todd Courtois) Newsgroups: comp.lang.pascal,comp.lang.c,comp.sys.ibm.pc.programmer Subject: Need to call a large C procedure from Pascal..... Message-ID: <4673@jarthur.Claremont.EDU> Date: 26 Feb 90 09:43:09 GMT Followup-To: comp.lang.pascal Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 21 I need a bit of help. I have a main program written in Pascal, and I have a large (20,000 line) C procedure that I would like to call from the main program, instead of re-writing a similar procedure in Pascal. What do you all suggest? Is there a way to include C source code in a Pascal program and have it compile together? I have access to several different types of Pascal and C compilers, including TurboC/Pascal, QuickC, VAX_Pascal, etc...thus if you have a compiler-specific suggestion, that might still be useful to me. I have heard before that there are converters available which will convert C to Pascal and Pascal to C, but for purposes of debugging I would prefer not to convert the source code, since I already understand the C procedure as written. Thanks very much for any suggestions. E-mail desired but not required. :) --Todd Courtois tcourtoi@jarthur.claremont.edu