Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!cmcl2!lanl!u800552 From: u800552@lanl.gov (James R. White) Newsgroups: comp.sys.amiga.tech Subject: Re: Editors for C programming Summary: My favorite editor - Aedit Message-ID: <52983@lanl.gov> Date: 3 Jun 90 14:35:16 GMT References: <8701D66B5B9F2003C6@UALR.BITNET> Organization: Los Alamos Natl Lab, Los Alamos, N.M. Lines: 105 The best amiga editor I have used is Aedit, available from Joe Bostic DRM Software 1329 Arthur Ave. Las Vegas, NV 89101 As I recall, it cost between 30-40 dollars. In my opinion, it is the best software value I have purchased for my Amiga. I have used Aedit to write FORTRAN and C source code, prepare 100+ pages of technical reports, as well as edit printer drivers! (You can edit binary files with the thing!) The editor will run either from workbench (it will make project icons if you want it to), and I use it constantly. The editor allows you to easily edit files that contain non-printing characters - these appear in the highlight color. For example, a line feed will appear as a red uppercase L. The editor has a multiple undo feature that is essential. One of the best features of the editor is that it will allow you to prepare a file containing commands that the editor will execute. I use the editor in batch files as described below: I am working on a program called AmigaPlot, the c source code is stored in a file called AmigaPlot.c, and must be liked with the source code stored in the file ScreenDump.c. The front-end to AmigaPlot.c looks like the following: echo ; /* ; ; to compile this program, just execute this file! ; FAILAT 50 ; ; delete old object and executable files ; IF EXISTS AmigaPlot Delete AmigaPlot ENDIF IF EXISTS AmigaPlot.o Delete AmigaPlot.o ENDIF ; ; compile ScreenDump if necessary ; IF NOT EXISTS ScreenDump.o echo "ScreenDump.o does not exist - compiling ScreenDump" LC > listfile -cwus -b -f -l -v -r ScreenDump IF NOT EXISTS ScreenDump.o echo "You Screwed Up! - Invoking Aedit" aedit ScreenDump.c -w -e Debug.exe echo "I hope That Fixed It - Try Again!" quit ELSE echo "Screendump compiled successfully" echo "The list file is as follows" type Listfile ENDIF ENDIF echo "Compiling AmigaPlot with compiler output directed to listfile" LC > listfile -cwus -b -f -l -v -r -Lcdf+ScreenDump.o AmigaPlot IF NOT EXISTS AmigaPlot.o echo "You Screwed Up! - Invoking Aedit" aedit AmigaPlot.c -w -e Debug.exe echo "I hope That Fixed It - Try Again!" quit ELSE echo "AmigaPlot compiled successfully - the list file follows" type Listfile endif echo "All Done" quit */ The debug.exe file looks like the following: Buffer 2 Open Listfile /rror/ Thus if the compiler fails to create an object file, this batch file automatically runs the Aedit editor on the source file (in Buffer 1) and the compiler output listing (in Buffer 2), then searches for a string in the compiler output listing that would point to an error message. Thus when I say 1> execute AmigaPlot.c I either get the editor invoked (in the case of no successful compilation) or a compiled and linked program. Note also that the AmigaPlot.c file is BOTH the batch file that makes the code as well as the c-source code for AmigaPlot. -- James R. (Bob) White || U800552@beta.lanl.gov Los Alamos National Laboratory || Phone (505)-667-3853 (Work) N-6 / MS K559 || Phone (505)-662-7554 (Home) Los Alamos, NM 87544 USA || FTS 843-3853