Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!jfjr@mitre-bedford.arpa From: jfjr@mitre-bedford.arpa Newsgroups: comp.lang.pascal Subject: Re: Outside compile? Message-ID: <9666@brl-adm.ARPA> Date: Wed, 7-Oct-87 10:47:50 EDT Article-I.D.: brl-adm.9666 Posted: Wed Oct 7 10:47:50 1987 Date-Received: Sat, 10-Oct-87 08:02:09 EDT Sender: news@brl-adm.ARPA Lines: 32 I think I just answered this. I used a patch I got from compuserv last year to modify Turbo Pascal so that it would read commands from standard input. The improvements I made were to make the compiler exit on error rather than go to the editor. I don't have the patches anymore. I lost my copies. If you are REALLY desparate I can get them or point you where to get them (the ones I did which include the original) - the original is on compuserv). Turbo Pascal uses int 16 to read the keyboard. What you want is to replace the int 16 calls with int 21 calls. The patch I used allowed me to call Turbo Pascal from a batch file. There was no modification of command parsing in the patchso since Turbo does not wait for a carriage return to read the character the commands to compile the program in the batch file area concatenation of the commands you would normally enter from the keyboard. I haven't used turbo in a while so this is not exact but meant to give the flavor of what the command file would contain .REM YNNsomeprog.pasQ .REM The YNN and Q at the end are answers the questions the compiler asks If this is what you want and all that you want then The source of this patch is Compuserve and I got it in the spring of '86 Jerry Freedman, Jr