Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!rex!uflorida!gatech!csun1!weyrich From: weyrich@csun1.UUCP (Orville Weyrich) Newsgroups: comp.lang.pascal Subject: Re: Editor source in Turbo Pascal Message-ID: <162@csun1.UUCP> Date: 30 Apr 89 18:27:28 GMT References: <3632@nunki.usc.edu> Distribution: na Organization: Univ. of GA, CS Dept., Athens Lines: 34 From article <3632@nunki.usc.edu>, by sawant@nunki.usc.edu (Abhay Sawant): > In article <4445@arcturus> mitch@arcturus.UUCP (Mitchell S. Gorman) writes: >>In article <9357@watcgl.waterloo.edu>, shlee@watmum.waterloo.edu (Simon Lee) writes: >>> Does anyone know where I could obtain the source code for some simple >>> editor written in Turbo Pascal? Thanks in advance. >> >>Have you considered the Editor Toolbox from Borland??? > > It's a wonderful toolbox, but it's not really very simple and perhaps > too bulky to be 'tucked away' inside something you're writing. Are you thinking of the version 3.0 toolbox or the version 4.0 toolbox? The 4.0 toolbox has added the Borlan "Binary Editor" which is essentially the editor used by TP itself, and which occupies 14K of RAM. It is intended to be used with a short sequence of command functions: InitBinaryEditor ( various parameters, including EdCB ) ReadFileBinaryEditor ( file name, EdCB ) UseBinaryEditor ( EdCB ) WriteFileBinaryEditor ( file name, EdCB ) ReleaseBinaryEditorHeap ( EdCB ) It should not be too hard to hack versions of ReadFileBinaryEditor and WriteFileBinaryEditor to use a linked list rather than a file, since the EdCB (editor control block) contains a pointer to the internal data structure. Let me know if this works out! -- Orville R. Weyrich, Jr. | UUCP : ...gatech!csun1!weyrich Department of Computer Science | INTERNET: weyrich@csun1.cs.uga.edu University of Georgia | Athens, GA 30602 USA | MA BELL : (404) 542-1082