Home » Archimedes archive » Acorn User » AU 1998-02 B.adf » JFShared » !JFShared/Help/ExtEditLib

!JFShared/Help/ExtEditLib

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1998-02 B.adf » JFShared
Filename: !JFShared/Help/ExtEditLib
Read OK:
File size: 2FCC bytes
Load address: 0000
Exec address: 0000
File contents
HELP(�����,����$DIR$���G���C^,!Root G����W�lFNxG����X�PROCP&G������Finfo�)G����\�Tclient_�,G����]�Teditor_DATA,ExtEditLib routines
#Parent StrongHelp:!Root
Library routines :
#Indent 2
#Table Columns 2
<PROCee_init>
<FNee_begin>
<FNee_sendfile>
<FNee_sendfiledone>
<FNee_findjob>
<FNee_findflags>
<FNee_findtask>
<FNee_findcode>
<FNee_findnum>
<FNee_findnumfromcode>
<FNee_findnext>
<FNee_return>
<PROCee_abort>
<PROCee_abortall>
<FNee_setcursor>
<FNee_requestack>
#EndTable
#Indent

User supplied routines :
#Indent 2
#Table 9 20
/Client/
<Message/MessageRec=>client_msgreccode>
<MessageAck=>client_msgackcode>
<PROCedit_aborted>
<FNedit_saverq>
<FNedit_returned>



/Editor/
<Message/MessageRec=>editor_msgreccode>
<MessageAck=>editor_msgackcode>
<PROCedit_aborted>
<PROCedit_requested>
<FNedit_saverq>
<PROCedit_savedto>
<FNedit_returnrq>
<PROCedit_saveback>
#EndTable
#Indent

<Information=>info> on ExtEditLib
DIR$ll�F���WP��ee_sendfilehF���ȹL�Oee_sendfiledone�	F�����M�ee_findjob�
G�������ee_findflagshF�����M�ee_findtaskF���R��S7ee_findcodeD
F�����M�ee_findnum�
F���v
�M�ee_findnumfromcode�F�����Mee_findnext�G�����׬ee_return�G�����ee_setcursor�F�����M�ee_requestack�G���K�ׅee_beginF�����|edit_returned�G����תedit_saverqDG�����1edit_returnrqDATA�FNee_sendfile(num,type,file$)
#Parent !Root
=>	{/}num{/}	job number
	{/}type{/}	<filetype=>Filetypes:!Root> (not datatype)
\<=	-1 if not possible, 0 if ok
	{/}file${/}	file to save as
Use:	Client/Editor

This call is used to request a save to an EE job. If the other application does not wish to receive the data being passed, then a 'not possible' reply may occur.

If this call is successful, then the data should be saved to the file and <FNee_sendfiledone> called.DATAOFNee_sendfiledone(num)
#Parent !Root
=>	{/}num{/}	job number
\<=	-1 if could not transfer, 0 if ok
Use:	Client/Editor

This call notifies the other application that the data save to the EE job is continuing and that it add the file to the current job. This should be used immediately after saving the data from <FNee_sendfile>.DATA�FNee_findjob(num)
#Parent !Root
=>	{/}num{/}	Job number
\<=	ExternalEdit message handle
Use:	Client/Editor

This call is mostly used internally, but may be used to identify the real external edit handle as used in the messages.DATA�FNee_findflags(num)
#Parent !Root
=>	{/}num{/}	Job number
\<=	<flags=>Wimp:Wimp_UMExtEditFlags> for job
Use:	Client/Editor

This call returns the EE flag status when edit was initiated. DATA�FNee_findtask(num)
#Parent !Root
=>	{/}num{/}	Job number
\<=	task handle of other task
Use:	Client/Editor

This call returns the handle of the other task.DATA7FNee_findcode(num)
#Parent !Root
=>	{/}num{/}	Job number
\<=	users code number, or -1 if not found
Use:	Client

This call returns the user code number allocated to the job. This number is specified when <FNee_begin> is called and allows the user to reference the file by a seperate code number (24-bit).DATA�FNee_findnum(num)
#Parent !Root
=>	{/}eehandle{/}	ExternalEdit message handle
\<=	job number
Use:	Client/Editor

This call returns the job number, given the message handle.DATA�FNee_findnumfromcode(code)
#Parent !Root
=>	{/}code{/}	user code
\<=	job number, or -1 if not found
Use:	Client/Editor

This call returns the job number, given the user code. This will only return the first occurance of the code.DATAFNee_findnext(num)
#Parent !Root
=>	{/}num{/}	job number to start from (-1 initially)
\<=	next valid job number
Use:	Client/Editor

This call returns the job number of the next job after that given. This is useful for listing all the jobs currently being editted.DATA�FNee_return(num,flags,type)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}flags{/}	<flags=>Wimp:Wimp_UMExtEditFlags> for transfer
	{/}type{/}	<Datatype=>Wimp:Wimp_UMExtEditDatatypes> to return as
\<=	-1 if not possible, 0 if ok
Use:	Client

This call is used by the client to request return of it's EE data. When ok is returned, the data will be sent to the application and appear at the <FNedit_returned> routine.DATAFNee_setcursor(num,pos)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}pos{/}	<position for cursor=>Wimp:Wimp_UMExtEditCursorUnits>, -1 to read, -2 for end.
<=	cursor position

Use:	Client

This call is used to set the position of the cursor within the EE job. DATA�FNee_requestack(flags,code)
#Parent !Root
=>	{/}flags{/}	flags as passed, or modified
	{/}code{/}	code to allocate to the file
\<=	job number
Use:	Editor

This call is used to acknowledge an initial EE request.
DATA�FNee_begin(type,flags,name$,code)
#Parent !Root
=>	{/}type{/}	<Datatype=>Wimp:Msg_ExtEditDatatypes> for job
	{/}flags{/}	<Flags=>Wimp:Msg_ExtEditFlags> for transfer
	{/}name${/}	name of job (for title bar)
	{/}code{/}	code to allocate to the file
\<=	number of job, or -1 if not possible
Use:	Client

This call is used to initiate a EE job. It will usually be followed by <FNee_sendfile>. Use <FNee_findflags> to read the flags returned from the Editor.

The editor will begin searching for an editor with the full datatype in memory, then on disc, then the base type in memory, then base type on disc, and finally return 'not possible'.DATA|FNedit_returned(num,code,file$)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}code{/}	code for job
	{/}file${/}	file data returned in
\<=	-1 if not ok, 0 if ok
Use:	Client

When the library receives a file back from the editor this routine is called. On exiting the file will be deleted, and if the reply was 'ok', then the acknowledge is sent and the file deleted.
DATA�FNedit_saverq(num,code,type)
#Parent !Root
=>	{/}num{/}	job number
	{/}code{/}	code for job
	{/}type{/}	<datatype=>Wimp:Msg_ExtEditDatatypes> for job
\<=	-1 if don't want to load, 0 if ok to load
Use:	Client/Editor

When the library receives a request to load data, this routine will be called. The decision as to whether to accept the save should be made on the files type and possibly it's flags (<FNee_findflags>).
DATA1FNedit_returnrq(num,code,type,flags)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}code{/}	code for job
	{/}type{/}	<datatype=>Wimp:Msg_ExtEditDatatypes> to return as
	{/}flags{/}	<flags=>Wimp:Msg_ExtEditFlags> for return
\<=	filename, or null if not returning data
Use:	Editor

When the library receives a request to return data from the client, this routine is called. The filename returned should be either that of the job as initially passed, or some relevant name (the EE specification does not give a particular use of this for the client).
DIR$�F�����M�ee_initG���k"^�ee_abortF�����M�ee_abortall�F����&�Mledit_abortedX G����ׂedit_requested�"G���c��edit_saveback�$F�����MYedit_savedtoDATA�PROCee_init
#Parent !Root
Initialises library variables.

Call this routine at the start of any program that uses the ExtEditLib file.
DATA�PROCee_abort(num,abort)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}abort{/}	1 if <PROCedit_aborted> should be called
Use:	Client/Editor

This call is used when the job is no longer active. All communication about it should cease.DATA�PROCee_abortall(abort)
#Parent !Root
=>	{/}abort{/}	1 if <PROCedit_aborted> should be called.
Use:	Client/Editor

This call is used when the job is no longer active all communication about it should cease.DATAlPROCedit_aborted(num,code)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}code{/}	code for job
Use:	Client/Editor

When the library receives an abort message for a particular task this routine in the user program is called. This indicates an immediate abort, and no questions should be asked. All variables should be tidied up and any windows closed.
DATA�PROCedit_requested(type,flags,parent$,leaf$)
#Parent !Root
=>	{/}type{/}	<datatype=>Wimp:Msg_ExtEditDatatypes> for job
	{/}flags{/}	<flags=>Wimp:Msg_ExtEditFlags> for job
	{/}parent${/}	name of parent application (for title bar)
	{/}leaf${/}	leafname to use for job (for title bar)
\<=	-1 if don't want to load, 0 if ok to load
Use:	Editor

When the library receives a request to begin an ExtEdit session, this routine will be called. If it wishes to edit the file then it should call <FNee_requestack> with, possibly, modified flags and a 24-bit code for the file. The code is not used by the library and is purely for external use.
DATAPROCedit_saveback(num,code,file$,type,flags)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}code{/}	code for job
	{/}file${/}	file to save to
	{/}type{/}	<datatype=>Wimp:Msg_ExtEditDatatypes> to return as
	{/}flags{/}	<flags=>Wimp:Msg_ExtEditFlags> for return
\<=	filename, or null if not returning data
Use:	Editor

After the request to save data back to the client, and subsequent <FNedit_returnrq> success, this routine will be called to perform the actual save. The next response should be to call FNee_sendfiledone.
DATAYPROCedit_savedto(num,code,file$)
#Parent !Root
=>	{/}num{/}	job number to return
	{/}code{/}	code for job
	{/}file${/}	file data returned in
Use:	Editor

When the library receives a file from the client to be loaded into a job, this routine is called. It is the direct counterpart of <FNedit_returned> and performs exactly the same job.
DATAFExtEditLib help
#Align Centre
{fh3}JFShared ExtEditLib v1.04{f}
#Align Left

The External Edit Library is a Basic Library file which provides an interface to Jason Williams <External Edit Protocol=>Wimp:Msg_ExtEdit>. In conjunction with the WimpLib and JFShared skeleton application this provides a very simple way of creating applications which provide a large degree of editing capability. This help file details the routines provided in ExtEditLib.

The External Edit Library is referenced by \<JFExtEdit$File> and should be loaded with :
{fCode}LIBRARY "\<JFExtEdit$File>":PROCee_init{f}

The JFShared application is � Justin Fletcher, 1995 and is released into the Public Domain with the same restrictions as subsist in most PD software. This includes the fact that when distributed the entire application must remain intact.DIR$TT�)G����0^�msgreccode�+G���G-^.msgackcodeDATA�Message/MessageRec code
The following code must be included in the handler for reason 17,18 :

#Wrap Off
#fCode
WHEN 2:IF extstatus=3 THENextcode=0:extstatus=4
WHEN 3:IF extstatus=6 THENPROCextedit_saved
WHEN 4:IF extstatus=4 THENextcode=0:extstatus=5
WHEN &45D81:PROCextedit_ack
WHEN &45D83:PROCextedit_abort(b%!24)
WHEN &45D84:PROCextedit_save(b%!20)
WHEN &45D85:PROCextedit_cursor(b%!24,b%!44)
#f
DATA.MessageAck code
The following code must be included in the handler for reason 19 :

#Wrap off
#fCode
WHEN 2:REM Possible DataTransfer abort
WHEN 3:IF extstatus=4 THENextcode=-1:extstatus=5
WHEN &45D80:PROCextedit_noack
WHEN &45D84:PROCextedit_nosave
WHEN &45D85:PROCextedit_cursor(b%!24,-2)
#f
DIR$TT-G���}M^�msgreccode�.G����K^�msgackcodeDATA�Message/MessageRec code
The following code must be included in the handler for reason 17,18 :

#Wrap off
#fCode
WHEN 2:IF extstatus=3 THENextcode=0:extstatus=4
WHEN 3:IF extstatus=6 OR extstatus=10 THENPROCextedit_saved
WHEN 4:IF extstatus=4 THENextcode=0:extstatus=5
WHEN &45D80:PROCedit_requested(b%!20,b%!28,FNstring0(b%+32),FNstring0(b%+52))
WHEN &45D82:PROCextedit_return(b%!24)
WHEN &45D83:PROCextedit_abort(b%!24)
WHEN &45D84:PROCextedit_save(b%!20)
#f
DATA�MessageAcknowledge code
The following code must be included in the handler for reason 19 :

#Wrap off
#fCode
WHEN 2:REM Possible DataTransfer abort
WHEN 3:IF extstatus=4 THENextcode=-1:extstatus=5
WHEN &45D84:PROCextedit_nosave
#f
00000000  48 45 4c 50 28 00 00 00  fa 00 00 00 ff ff ff ff  |HELP(...........|
00000010  2c 00 00 00 00 fd ff ff  00 00 00 00 c0 00 00 00  |,...............|
00000020  00 01 00 00 00 00 00 00  24 00 00 00 44 49 52 24  |........$...DIR$|
00000030  c8 00 00 00 c8 00 00 00  f4 00 00 00 47 fd ff ff  |............G...|
00000040  0e 43 04 5e 2c 03 00 00  13 00 00 00 00 00 00 00  |.C.^,...........|
00000050  21 52 6f 6f 74 00 00 00  20 04 00 00 47 fd ff ff  |!Root... ...G...|
00000060  92 57 06 d7 6c 02 00 00  13 01 00 00 00 00 00 00  |.W..l...........|
00000070  46 4e 00 00 78 1b 00 00  47 fd ff ff eb 58 06 d7  |FN..x...G....X..|
00000080  14 01 00 00 13 01 00 00  00 00 00 00 50 52 4f 43  |............PROC|
00000090  00 00 00 00 50 26 00 00  47 fd ff ff f8 da 00 d7  |....P&..G.......|
000000a0  46 03 00 00 13 00 00 00  00 00 00 00 69 6e 66 6f  |F...........info|
000000b0  00 00 00 00 98 29 00 00  47 fd ff ff 98 5c 06 d7  |.....)..G....\..|
000000c0  54 00 00 00 13 01 00 00  00 00 00 00 63 6c 69 65  |T...........clie|
000000d0  6e 74 5f 00 b4 2c 00 00  47 fd ff ff 91 5d 06 d7  |nt_..,..G....]..|
000000e0  54 00 00 00 13 01 00 00  00 00 00 00 65 64 69 74  |T...........edit|
000000f0  6f 72 5f 00 44 41 54 41  2c 03 00 00 45 78 74 45  |or_.DATA,...ExtE|
00000100  64 69 74 4c 69 62 20 72  6f 75 74 69 6e 65 73 0a  |ditLib routines.|
00000110  23 50 61 72 65 6e 74 20  53 74 72 6f 6e 67 48 65  |#Parent StrongHe|
00000120  6c 70 3a 21 52 6f 6f 74  0a 4c 69 62 72 61 72 79  |lp:!Root.Library|
00000130  20 72 6f 75 74 69 6e 65  73 20 3a 0a 23 49 6e 64  | routines :.#Ind|
00000140  65 6e 74 20 32 0a 23 54  61 62 6c 65 20 43 6f 6c  |ent 2.#Table Col|
00000150  75 6d 6e 73 20 32 0a 3c  50 52 4f 43 65 65 5f 69  |umns 2.<PROCee_i|
00000160  6e 69 74 3e 0a 3c 46 4e  65 65 5f 62 65 67 69 6e  |nit>.<FNee_begin|
00000170  3e 0a 3c 46 4e 65 65 5f  73 65 6e 64 66 69 6c 65  |>.<FNee_sendfile|
*
00000190  64 6f 6e 65 3e 0a 3c 46  4e 65 65 5f 66 69 6e 64  |done>.<FNee_find|
000001a0  6a 6f 62 3e 0a 3c 46 4e  65 65 5f 66 69 6e 64 66  |job>.<FNee_findf|
000001b0  6c 61 67 73 3e 0a 3c 46  4e 65 65 5f 66 69 6e 64  |lags>.<FNee_find|
000001c0  74 61 73 6b 3e 0a 3c 46  4e 65 65 5f 66 69 6e 64  |task>.<FNee_find|
000001d0  63 6f 64 65 3e 0a 3c 46  4e 65 65 5f 66 69 6e 64  |code>.<FNee_find|
000001e0  6e 75 6d 3e 0a 3c 46 4e  65 65 5f 66 69 6e 64 6e  |num>.<FNee_findn|
000001f0  75 6d 66 72 6f 6d 63 6f  64 65 3e 0a 3c 46 4e 65  |umfromcode>.<FNe|
00000200  65 5f 66 69 6e 64 6e 65  78 74 3e 0a 3c 46 4e 65  |e_findnext>.<FNe|
00000210  65 5f 72 65 74 75 72 6e  3e 0a 3c 50 52 4f 43 65  |e_return>.<PROCe|
00000220  65 5f 61 62 6f 72 74 3e  0a 3c 50 52 4f 43 65 65  |e_abort>.<PROCee|
00000230  5f 61 62 6f 72 74 61 6c  6c 3e 0a 3c 46 4e 65 65  |_abortall>.<FNee|
00000240  5f 73 65 74 63 75 72 73  6f 72 3e 0a 3c 46 4e 65  |_setcursor>.<FNe|
00000250  65 5f 72 65 71 75 65 73  74 61 63 6b 3e 0a 23 45  |e_requestack>.#E|
00000260  6e 64 54 61 62 6c 65 0a  23 49 6e 64 65 6e 74 0a  |ndTable.#Indent.|
00000270  0a 55 73 65 72 20 73 75  70 70 6c 69 65 64 20 72  |.User supplied r|
00000280  6f 75 74 69 6e 65 73 20  3a 0a 23 49 6e 64 65 6e  |outines :.#Inden|
00000290  74 20 32 0a 23 54 61 62  6c 65 20 39 20 32 30 0a  |t 2.#Table 9 20.|
000002a0  2f 43 6c 69 65 6e 74 2f  0a 3c 4d 65 73 73 61 67  |/Client/.<Messag|
000002b0  65 2f 4d 65 73 73 61 67  65 52 65 63 3d 3e 63 6c  |e/MessageRec=>cl|
000002c0  69 65 6e 74 5f 6d 73 67  72 65 63 63 6f 64 65 3e  |ient_msgreccode>|
000002d0  0a 3c 4d 65 73 73 61 67  65 41 63 6b 3d 3e 63 6c  |.<MessageAck=>cl|
000002e0  69 65 6e 74 5f 6d 73 67  61 63 6b 63 6f 64 65 3e  |ient_msgackcode>|
000002f0  0a 3c 50 52 4f 43 65 64  69 74 5f 61 62 6f 72 74  |.<PROCedit_abort|
00000300  65 64 3e 0a 3c 46 4e 65  64 69 74 5f 73 61 76 65  |ed>.<FNedit_save|
00000310  72 71 3e 0a 3c 46 4e 65  64 69 74 5f 72 65 74 75  |rq>.<FNedit_retu|
00000320  72 6e 65 64 3e 0a 0a 0a  0a 2f 45 64 69 74 6f 72  |rned>..../Editor|
00000330  2f 0a 3c 4d 65 73 73 61  67 65 2f 4d 65 73 73 61  |/.<Message/Messa|
00000340  67 65 52 65 63 3d 3e 65  64 69 74 6f 72 5f 6d 73  |geRec=>editor_ms|
00000350  67 72 65 63 63 6f 64 65  3e 0a 3c 4d 65 73 73 61  |greccode>.<Messa|
00000360  67 65 41 63 6b 3d 3e 65  64 69 74 6f 72 5f 6d 73  |geAck=>editor_ms|
00000370  67 61 63 6b 63 6f 64 65  3e 0a 3c 50 52 4f 43 65  |gackcode>.<PROCe|
00000380  64 69 74 5f 61 62 6f 72  74 65 64 3e 0a 3c 50 52  |dit_aborted>.<PR|
00000390  4f 43 65 64 69 74 5f 72  65 71 75 65 73 74 65 64  |OCedit_requested|
000003a0  3e 0a 3c 46 4e 65 64 69  74 5f 73 61 76 65 72 71  |>.<FNedit_saverq|
000003b0  3e 0a 3c 50 52 4f 43 65  64 69 74 5f 73 61 76 65  |>.<PROCedit_save|
000003c0  64 74 6f 3e 0a 3c 46 4e  65 64 69 74 5f 72 65 74  |dto>.<FNedit_ret|
000003d0  75 72 6e 72 71 3e 0a 3c  50 52 4f 43 65 64 69 74  |urnrq>.<PROCedit|
000003e0  5f 73 61 76 65 62 61 63  6b 3e 0a 23 45 6e 64 54  |_saveback>.#EndT|
000003f0  61 62 6c 65 0a 23 49 6e  64 65 6e 74 0a 0a 3c 49  |able.#Indent..<I|
00000400  6e 66 6f 72 6d 61 74 69  6f 6e 3d 3e 69 6e 66 6f  |nformation=>info|
00000410  3e 20 6f 6e 20 45 78 74  45 64 69 74 4c 69 62 0a  |> on ExtEditLib.|
00000420  44 49 52 24 6c 02 00 00  6c 02 00 00 8c 06 00 00  |DIR$l...l.......|
00000430  46 ff ff ff 57 11 50 b7  dc 01 00 00 13 00 00 00  |F...W.P.........|
00000440  00 00 00 00 65 65 5f 73  65 6e 64 66 69 6c 65 00  |....ee_sendfile.|
00000450  68 08 00 00 46 ff ff ff  c8 b9 4c b7 4f 01 00 00  |h...F.....L.O...|
00000460  13 00 00 00 00 00 00 00  65 65 5f 73 65 6e 64 66  |........ee_sendf|
00000470  69 6c 65 64 6f 6e 65 00  b8 09 00 00 46 ff ff ff  |iledone.....F...|
00000480  c7 f5 f9 4d eb 00 00 00  13 00 00 00 00 00 00 00  |...M............|
00000490  65 65 5f 66 69 6e 64 6a  6f 62 00 00 a4 0a 00 00  |ee_findjob......|
000004a0  47 ff ff ff a1 99 00 d7  c2 00 00 00 13 00 00 00  |G...............|
000004b0  00 00 00 00 65 65 5f 66  69 6e 64 66 6c 61 67 73  |....ee_findflags|
000004c0  00 00 00 00 68 0b 00 00  46 ff ff ff b5 00 fa 4d  |....h...F......M|
000004d0  a2 00 00 00 13 00 00 00  00 00 00 00 65 65 5f 66  |............ee_f|
000004e0  69 6e 64 74 61 73 6b 00  0c 0c 00 00 46 ff ff ff  |indtask.....F...|
000004f0  52 f9 a9 53 37 01 00 00  13 00 00 00 00 00 00 00  |R..S7...........|
00000500  65 65 5f 66 69 6e 64 63  6f 64 65 00 44 0d 00 00  |ee_findcode.D...|
00000510  46 ff ff ff e8 07 fa 4d  b4 00 00 00 13 00 00 00  |F......M........|
00000520  00 00 00 00 65 65 5f 66  69 6e 64 6e 75 6d 00 00  |....ee_findnum..|
00000530  f8 0d 00 00 46 ff ff ff  76 0a fa 4d ed 00 00 00  |....F...v..M....|
00000540  13 00 00 00 00 00 00 00  65 65 5f 66 69 6e 64 6e  |........ee_findn|
00000550  75 6d 66 72 6f 6d 63 6f  64 65 00 00 e8 0e 00 00  |umfromcode......|
00000560  46 ff ff ff 9f 0c fa 4d  0f 01 00 00 13 00 00 00  |F......M........|
00000570  00 00 00 00 65 65 5f 66  69 6e 64 6e 65 78 74 00  |....ee_findnext.|
00000580  f8 0f 00 00 47 ff ff ff  fe 9d 00 d7 ac 01 00 00  |....G...........|
00000590  13 00 00 00 00 00 00 00  65 65 5f 72 65 74 75 72  |........ee_retur|
000005a0  6e 00 00 00 a4 11 00 00  47 ff ff ff 13 a1 00 d7  |n.......G.......|
000005b0  12 01 00 00 13 00 00 00  00 00 00 00 65 65 5f 73  |............ee_s|
000005c0  65 74 63 75 72 73 6f 72  00 00 00 00 b8 12 00 00  |etcursor........|
000005d0  46 ff ff ff f2 1d fa 4d  db 00 00 00 13 00 00 00  |F......M........|
000005e0  00 00 00 00 65 65 5f 72  65 71 75 65 73 74 61 63  |....ee_requestac|
000005f0  6b 00 00 00 94 13 00 00  47 ff ff ff 4b ad 00 d7  |k.......G...K...|
00000600  85 02 00 00 13 00 00 00  00 00 00 00 65 65 5f 62  |............ee_b|
00000610  65 67 69 6e 00 00 00 00  1c 16 00 00 46 ff ff ff  |egin........F...|
00000620  03 18 9f b4 7c 01 00 00  13 00 00 00 00 00 00 00  |....|...........|
00000630  65 64 69 74 5f 72 65 74  75 72 6e 65 64 00 00 00  |edit_returned...|
00000640  98 17 00 00 47 ff ff ff  0e b2 00 d7 aa 01 00 00  |....G...........|
00000650  13 00 00 00 00 00 00 00  65 64 69 74 5f 73 61 76  |........edit_sav|
00000660  65 72 71 00 44 19 00 00  47 ff ff ff f0 bc 00 d7  |erq.D...G.......|
00000670  31 02 00 00 13 00 00 00  00 00 00 00 65 64 69 74  |1...........edit|
00000680  5f 72 65 74 75 72 6e 72  71 00 00 00 44 41 54 41  |_returnrq...DATA|
00000690  dc 01 00 00 46 4e 65 65  5f 73 65 6e 64 66 69 6c  |....FNee_sendfil|
000006a0  65 28 6e 75 6d 2c 74 79  70 65 2c 66 69 6c 65 24  |e(num,type,file$|
000006b0  29 0a 23 50 61 72 65 6e  74 20 21 52 6f 6f 74 0a  |).#Parent !Root.|
000006c0  3d 3e 09 7b 2f 7d 6e 75  6d 7b 2f 7d 09 6a 6f 62  |=>.{/}num{/}.job|
000006d0  20 6e 75 6d 62 65 72 0a  09 7b 2f 7d 74 79 70 65  | number..{/}type|
000006e0  7b 2f 7d 09 3c 66 69 6c  65 74 79 70 65 3d 3e 46  |{/}.<filetype=>F|
000006f0  69 6c 65 74 79 70 65 73  3a 21 52 6f 6f 74 3e 20  |iletypes:!Root> |
00000700  28 6e 6f 74 20 64 61 74  61 74 79 70 65 29 0a 5c  |(not datatype).\|
00000710  3c 3d 09 2d 31 20 69 66  20 6e 6f 74 20 70 6f 73  |<=.-1 if not pos|
00000720  73 69 62 6c 65 2c 20 30  20 69 66 20 6f 6b 0a 09  |sible, 0 if ok..|
00000730  7b 2f 7d 66 69 6c 65 24  7b 2f 7d 09 66 69 6c 65  |{/}file${/}.file|
00000740  20 74 6f 20 73 61 76 65  20 61 73 0a 55 73 65 3a  | to save as.Use:|
00000750  09 43 6c 69 65 6e 74 2f  45 64 69 74 6f 72 0a 0a  |.Client/Editor..|
00000760  54 68 69 73 20 63 61 6c  6c 20 69 73 20 75 73 65  |This call is use|
00000770  64 20 74 6f 20 72 65 71  75 65 73 74 20 61 20 73  |d to request a s|
00000780  61 76 65 20 74 6f 20 61  6e 20 45 45 20 6a 6f 62  |ave to an EE job|
00000790  2e 20 49 66 20 74 68 65  20 6f 74 68 65 72 20 61  |. If the other a|
000007a0  70 70 6c 69 63 61 74 69  6f 6e 20 64 6f 65 73 20  |pplication does |
000007b0  6e 6f 74 20 77 69 73 68  20 74 6f 20 72 65 63 65  |not wish to rece|
000007c0  69 76 65 20 74 68 65 20  64 61 74 61 20 62 65 69  |ive the data bei|
000007d0  6e 67 20 70 61 73 73 65  64 2c 20 74 68 65 6e 20  |ng passed, then |
000007e0  61 20 27 6e 6f 74 20 70  6f 73 73 69 62 6c 65 27  |a 'not possible'|
000007f0  20 72 65 70 6c 79 20 6d  61 79 20 6f 63 63 75 72  | reply may occur|
00000800  2e 0a 0a 49 66 20 74 68  69 73 20 63 61 6c 6c 20  |...If this call |
00000810  69 73 20 73 75 63 63 65  73 73 66 75 6c 2c 20 74  |is successful, t|
00000820  68 65 6e 20 74 68 65 20  64 61 74 61 20 73 68 6f  |hen the data sho|
00000830  75 6c 64 20 62 65 20 73  61 76 65 64 20 74 6f 20  |uld be saved to |
00000840  74 68 65 20 66 69 6c 65  20 61 6e 64 20 3c 46 4e  |the file and <FN|
00000850  65 65 5f 73 65 6e 64 66  69 6c 65 64 6f 6e 65 3e  |ee_sendfiledone>|
00000860  20 63 61 6c 6c 65 64 2e  44 41 54 41 4f 01 00 00  | called.DATAO...|
00000870  46 4e 65 65 5f 73 65 6e  64 66 69 6c 65 64 6f 6e  |FNee_sendfiledon|
00000880  65 28 6e 75 6d 29 0a 23  50 61 72 65 6e 74 20 21  |e(num).#Parent !|
00000890  52 6f 6f 74 0a 3d 3e 09  7b 2f 7d 6e 75 6d 7b 2f  |Root.=>.{/}num{/|
000008a0  7d 09 6a 6f 62 20 6e 75  6d 62 65 72 0a 5c 3c 3d  |}.job number.\<=|
000008b0  09 2d 31 20 69 66 20 63  6f 75 6c 64 20 6e 6f 74  |.-1 if could not|
000008c0  20 74 72 61 6e 73 66 65  72 2c 20 30 20 69 66 20  | transfer, 0 if |
000008d0  6f 6b 0a 55 73 65 3a 09  43 6c 69 65 6e 74 2f 45  |ok.Use:.Client/E|
000008e0  64 69 74 6f 72 0a 0a 54  68 69 73 20 63 61 6c 6c  |ditor..This call|
000008f0  20 6e 6f 74 69 66 69 65  73 20 74 68 65 20 6f 74  | notifies the ot|
00000900  68 65 72 20 61 70 70 6c  69 63 61 74 69 6f 6e 20  |her application |
00000910  74 68 61 74 20 74 68 65  20 64 61 74 61 20 73 61  |that the data sa|
00000920  76 65 20 74 6f 20 74 68  65 20 45 45 20 6a 6f 62  |ve to the EE job|
00000930  20 69 73 20 63 6f 6e 74  69 6e 75 69 6e 67 20 61  | is continuing a|
00000940  6e 64 20 74 68 61 74 20  69 74 20 61 64 64 20 74  |nd that it add t|
00000950  68 65 20 66 69 6c 65 20  74 6f 20 74 68 65 20 63  |he file to the c|
00000960  75 72 72 65 6e 74 20 6a  6f 62 2e 20 54 68 69 73  |urrent job. This|
00000970  20 73 68 6f 75 6c 64 20  62 65 20 75 73 65 64 20  | should be used |
00000980  69 6d 6d 65 64 69 61 74  65 6c 79 20 61 66 74 65  |immediately afte|
00000990  72 20 73 61 76 69 6e 67  20 74 68 65 20 64 61 74  |r saving the dat|
000009a0  61 20 66 72 6f 6d 20 3c  46 4e 65 65 5f 73 65 6e  |a from <FNee_sen|
000009b0  64 66 69 6c 65 3e 2e 00  44 41 54 41 eb 00 00 00  |dfile>..DATA....|
000009c0  46 4e 65 65 5f 66 69 6e  64 6a 6f 62 28 6e 75 6d  |FNee_findjob(num|
000009d0  29 0a 23 50 61 72 65 6e  74 20 21 52 6f 6f 74 0a  |).#Parent !Root.|
000009e0  3d 3e 09 7b 2f 7d 6e 75  6d 7b 2f 7d 09 4a 6f 62  |=>.{/}num{/}.Job|
000009f0  20 6e 75 6d 62 65 72 0a  5c 3c 3d 09 45 78 74 65  | number.\<=.Exte|
00000a00  72 6e 61 6c 45 64 69 74  20 6d 65 73 73 61 67 65  |rnalEdit message|
00000a10  20 68 61 6e 64 6c 65 0a  55 73 65 3a 09 43 6c 69  | handle.Use:.Cli|
00000a20  65 6e 74 2f 45 64 69 74  6f 72 0a 0a 54 68 69 73  |ent/Editor..This|
00000a30  20 63 61 6c 6c 20 69 73  20 6d 6f 73 74 6c 79 20  | call is mostly |
00000a40  75 73 65 64 20 69 6e 74  65 72 6e 61 6c 6c 79 2c  |used internally,|
00000a50  20 62 75 74 20 6d 61 79  20 62 65 20 75 73 65 64  | but may be used|
00000a60  20 74 6f 20 69 64 65 6e  74 69 66 79 20 74 68 65  | to identify the|
00000a70  20 72 65 61 6c 20 65 78  74 65 72 6e 61 6c 20 65  | real external e|
00000a80  64 69 74 20 68 61 6e 64  6c 65 20 61 73 20 75 73  |dit handle as us|
00000a90  65 64 20 69 6e 20 74 68  65 20 6d 65 73 73 61 67  |ed in the messag|
00000aa0  65 73 2e 00 44 41 54 41  c2 00 00 00 46 4e 65 65  |es..DATA....FNee|
00000ab0  5f 66 69 6e 64 66 6c 61  67 73 28 6e 75 6d 29 0a  |_findflags(num).|
00000ac0  23 50 61 72 65 6e 74 20  21 52 6f 6f 74 0a 3d 3e  |#Parent !Root.=>|
00000ad0  09 7b 2f 7d 6e 75 6d 7b  2f 7d 09 4a 6f 62 20 6e  |.{/}num{/}.Job n|
00000ae0  75 6d 62 65 72 0a 5c 3c  3d 09 3c 66 6c 61 67 73  |umber.\<=.<flags|
00000af0  3d 3e 57 69 6d 70 3a 57  69 6d 70 5f 55 4d 45 78  |=>Wimp:Wimp_UMEx|
00000b00  74 45 64 69 74 46 6c 61  67 73 3e 20 66 6f 72 20  |tEditFlags> for |
00000b10  6a 6f 62 0a 55 73 65 3a  09 43 6c 69 65 6e 74 2f  |job.Use:.Client/|
00000b20  45 64 69 74 6f 72 0a 0a  54 68 69 73 20 63 61 6c  |Editor..This cal|
00000b30  6c 20 72 65 74 75 72 6e  73 20 74 68 65 20 45 45  |l returns the EE|
00000b40  20 66 6c 61 67 20 73 74  61 74 75 73 20 77 68 65  | flag status whe|
00000b50  6e 20 65 64 69 74 20 77  61 73 20 69 6e 69 74 69  |n edit was initi|
00000b60  61 74 65 64 2e 20 00 00  44 41 54 41 a2 00 00 00  |ated. ..DATA....|
00000b70  46 4e 65 65 5f 66 69 6e  64 74 61 73 6b 28 6e 75  |FNee_findtask(nu|
00000b80  6d 29 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |m).#Parent !Root|
00000b90  0a 3d 3e 09 7b 2f 7d 6e  75 6d 7b 2f 7d 09 4a 6f  |.=>.{/}num{/}.Jo|
00000ba0  62 20 6e 75 6d 62 65 72  0a 5c 3c 3d 09 74 61 73  |b number.\<=.tas|
00000bb0  6b 20 68 61 6e 64 6c 65  20 6f 66 20 6f 74 68 65  |k handle of othe|
00000bc0  72 20 74 61 73 6b 0a 55  73 65 3a 09 43 6c 69 65  |r task.Use:.Clie|
00000bd0  6e 74 2f 45 64 69 74 6f  72 0a 0a 54 68 69 73 20  |nt/Editor..This |
00000be0  63 61 6c 6c 20 72 65 74  75 72 6e 73 20 74 68 65  |call returns the|
00000bf0  20 68 61 6e 64 6c 65 20  6f 66 20 74 68 65 20 6f  | handle of the o|
00000c00  74 68 65 72 20 74 61 73  6b 2e 00 00 44 41 54 41  |ther task...DATA|
00000c10  37 01 00 00 46 4e 65 65  5f 66 69 6e 64 63 6f 64  |7...FNee_findcod|
00000c20  65 28 6e 75 6d 29 0a 23  50 61 72 65 6e 74 20 21  |e(num).#Parent !|
00000c30  52 6f 6f 74 0a 3d 3e 09  7b 2f 7d 6e 75 6d 7b 2f  |Root.=>.{/}num{/|
00000c40  7d 09 4a 6f 62 20 6e 75  6d 62 65 72 0a 5c 3c 3d  |}.Job number.\<=|
00000c50  09 75 73 65 72 73 20 63  6f 64 65 20 6e 75 6d 62  |.users code numb|
00000c60  65 72 2c 20 6f 72 20 2d  31 20 69 66 20 6e 6f 74  |er, or -1 if not|
00000c70  20 66 6f 75 6e 64 0a 55  73 65 3a 09 43 6c 69 65  | found.Use:.Clie|
00000c80  6e 74 0a 0a 54 68 69 73  20 63 61 6c 6c 20 72 65  |nt..This call re|
00000c90  74 75 72 6e 73 20 74 68  65 20 75 73 65 72 20 63  |turns the user c|
00000ca0  6f 64 65 20 6e 75 6d 62  65 72 20 61 6c 6c 6f 63  |ode number alloc|
00000cb0  61 74 65 64 20 74 6f 20  74 68 65 20 6a 6f 62 2e  |ated to the job.|
00000cc0  20 54 68 69 73 20 6e 75  6d 62 65 72 20 69 73 20  | This number is |
00000cd0  73 70 65 63 69 66 69 65  64 20 77 68 65 6e 20 3c  |specified when <|
00000ce0  46 4e 65 65 5f 62 65 67  69 6e 3e 20 69 73 20 63  |FNee_begin> is c|
00000cf0  61 6c 6c 65 64 20 61 6e  64 20 61 6c 6c 6f 77 73  |alled and allows|
00000d00  20 74 68 65 20 75 73 65  72 20 74 6f 20 72 65 66  | the user to ref|
00000d10  65 72 65 6e 63 65 20 74  68 65 20 66 69 6c 65 20  |erence the file |
00000d20  62 79 20 61 20 73 65 70  65 72 61 74 65 20 63 6f  |by a seperate co|
00000d30  64 65 20 6e 75 6d 62 65  72 20 28 32 34 2d 62 69  |de number (24-bi|
00000d40  74 29 2e 00 44 41 54 41  b4 00 00 00 46 4e 65 65  |t)..DATA....FNee|
00000d50  5f 66 69 6e 64 6e 75 6d  28 6e 75 6d 29 0a 23 50  |_findnum(num).#P|
00000d60  61 72 65 6e 74 20 21 52  6f 6f 74 0a 3d 3e 09 7b  |arent !Root.=>.{|
00000d70  2f 7d 65 65 68 61 6e 64  6c 65 7b 2f 7d 09 45 78  |/}eehandle{/}.Ex|
00000d80  74 65 72 6e 61 6c 45 64  69 74 20 6d 65 73 73 61  |ternalEdit messa|
00000d90  67 65 20 68 61 6e 64 6c  65 0a 5c 3c 3d 09 6a 6f  |ge handle.\<=.jo|
00000da0  62 20 6e 75 6d 62 65 72  0a 55 73 65 3a 09 43 6c  |b number.Use:.Cl|
00000db0  69 65 6e 74 2f 45 64 69  74 6f 72 0a 0a 54 68 69  |ient/Editor..Thi|
00000dc0  73 20 63 61 6c 6c 20 72  65 74 75 72 6e 73 20 74  |s call returns t|
00000dd0  68 65 20 6a 6f 62 20 6e  75 6d 62 65 72 2c 20 67  |he job number, g|
00000de0  69 76 65 6e 20 74 68 65  20 6d 65 73 73 61 67 65  |iven the message|
00000df0  20 68 61 6e 64 6c 65 2e  44 41 54 41 ed 00 00 00  | handle.DATA....|
00000e00  46 4e 65 65 5f 66 69 6e  64 6e 75 6d 66 72 6f 6d  |FNee_findnumfrom|
00000e10  63 6f 64 65 28 63 6f 64  65 29 0a 23 50 61 72 65  |code(code).#Pare|
00000e20  6e 74 20 21 52 6f 6f 74  0a 3d 3e 09 7b 2f 7d 63  |nt !Root.=>.{/}c|
00000e30  6f 64 65 7b 2f 7d 09 75  73 65 72 20 63 6f 64 65  |ode{/}.user code|
00000e40  0a 5c 3c 3d 09 6a 6f 62  20 6e 75 6d 62 65 72 2c  |.\<=.job number,|
00000e50  20 6f 72 20 2d 31 20 69  66 20 6e 6f 74 20 66 6f  | or -1 if not fo|
00000e60  75 6e 64 0a 55 73 65 3a  09 43 6c 69 65 6e 74 2f  |und.Use:.Client/|
00000e70  45 64 69 74 6f 72 0a 0a  54 68 69 73 20 63 61 6c  |Editor..This cal|
00000e80  6c 20 72 65 74 75 72 6e  73 20 74 68 65 20 6a 6f  |l returns the jo|
00000e90  62 20 6e 75 6d 62 65 72  2c 20 67 69 76 65 6e 20  |b number, given |
00000ea0  74 68 65 20 75 73 65 72  20 63 6f 64 65 2e 20 54  |the user code. T|
00000eb0  68 69 73 20 77 69 6c 6c  20 6f 6e 6c 79 20 72 65  |his will only re|
00000ec0  74 75 72 6e 20 74 68 65  20 66 69 72 73 74 20 6f  |turn the first o|
00000ed0  63 63 75 72 61 6e 63 65  20 6f 66 20 74 68 65 20  |ccurance of the |
00000ee0  63 6f 64 65 2e 00 00 00  44 41 54 41 0f 01 00 00  |code....DATA....|
00000ef0  46 4e 65 65 5f 66 69 6e  64 6e 65 78 74 28 6e 75  |FNee_findnext(nu|
00000f00  6d 29 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |m).#Parent !Root|
00000f10  0a 3d 3e 09 7b 2f 7d 6e  75 6d 7b 2f 7d 09 6a 6f  |.=>.{/}num{/}.jo|
00000f20  62 20 6e 75 6d 62 65 72  20 74 6f 20 73 74 61 72  |b number to star|
00000f30  74 20 66 72 6f 6d 20 28  2d 31 20 69 6e 69 74 69  |t from (-1 initi|
00000f40  61 6c 6c 79 29 0a 5c 3c  3d 09 6e 65 78 74 20 76  |ally).\<=.next v|
00000f50  61 6c 69 64 20 6a 6f 62  20 6e 75 6d 62 65 72 0a  |alid job number.|
00000f60  55 73 65 3a 09 43 6c 69  65 6e 74 2f 45 64 69 74  |Use:.Client/Edit|
00000f70  6f 72 0a 0a 54 68 69 73  20 63 61 6c 6c 20 72 65  |or..This call re|
00000f80  74 75 72 6e 73 20 74 68  65 20 6a 6f 62 20 6e 75  |turns the job nu|
00000f90  6d 62 65 72 20 6f 66 20  74 68 65 20 6e 65 78 74  |mber of the next|
00000fa0  20 6a 6f 62 20 61 66 74  65 72 20 74 68 61 74 20  | job after that |
00000fb0  67 69 76 65 6e 2e 20 54  68 69 73 20 69 73 20 75  |given. This is u|
00000fc0  73 65 66 75 6c 20 66 6f  72 20 6c 69 73 74 69 6e  |seful for listin|
00000fd0  67 20 61 6c 6c 20 74 68  65 20 6a 6f 62 73 20 63  |g all the jobs c|
00000fe0  75 72 72 65 6e 74 6c 79  20 62 65 69 6e 67 20 65  |urrently being e|
00000ff0  64 69 74 74 65 64 2e 00  44 41 54 41 ac 01 00 00  |ditted..DATA....|
00001000  46 4e 65 65 5f 72 65 74  75 72 6e 28 6e 75 6d 2c  |FNee_return(num,|
00001010  66 6c 61 67 73 2c 74 79  70 65 29 0a 23 50 61 72  |flags,type).#Par|
00001020  65 6e 74 20 21 52 6f 6f  74 0a 3d 3e 09 7b 2f 7d  |ent !Root.=>.{/}|
00001030  6e 75 6d 7b 2f 7d 09 6a  6f 62 20 6e 75 6d 62 65  |num{/}.job numbe|
00001040  72 20 74 6f 20 72 65 74  75 72 6e 0a 09 7b 2f 7d  |r to return..{/}|
00001050  66 6c 61 67 73 7b 2f 7d  09 3c 66 6c 61 67 73 3d  |flags{/}.<flags=|
00001060  3e 57 69 6d 70 3a 57 69  6d 70 5f 55 4d 45 78 74  |>Wimp:Wimp_UMExt|
00001070  45 64 69 74 46 6c 61 67  73 3e 20 66 6f 72 20 74  |EditFlags> for t|
00001080  72 61 6e 73 66 65 72 0a  09 7b 2f 7d 74 79 70 65  |ransfer..{/}type|
00001090  7b 2f 7d 09 3c 44 61 74  61 74 79 70 65 3d 3e 57  |{/}.<Datatype=>W|
000010a0  69 6d 70 3a 57 69 6d 70  5f 55 4d 45 78 74 45 64  |imp:Wimp_UMExtEd|
000010b0  69 74 44 61 74 61 74 79  70 65 73 3e 20 74 6f 20  |itDatatypes> to |
000010c0  72 65 74 75 72 6e 20 61  73 0a 5c 3c 3d 09 2d 31  |return as.\<=.-1|
000010d0  20 69 66 20 6e 6f 74 20  70 6f 73 73 69 62 6c 65  | if not possible|
000010e0  2c 20 30 20 69 66 20 6f  6b 0a 55 73 65 3a 09 43  |, 0 if ok.Use:.C|
000010f0  6c 69 65 6e 74 0a 0a 54  68 69 73 20 63 61 6c 6c  |lient..This call|
00001100  20 69 73 20 75 73 65 64  20 62 79 20 74 68 65 20  | is used by the |
00001110  63 6c 69 65 6e 74 20 74  6f 20 72 65 71 75 65 73  |client to reques|
00001120  74 20 72 65 74 75 72 6e  20 6f 66 20 69 74 27 73  |t return of it's|
00001130  20 45 45 20 64 61 74 61  2e 20 57 68 65 6e 20 6f  | EE data. When o|
00001140  6b 20 69 73 20 72 65 74  75 72 6e 65 64 2c 20 74  |k is returned, t|
00001150  68 65 20 64 61 74 61 20  77 69 6c 6c 20 62 65 20  |he data will be |
00001160  73 65 6e 74 20 74 6f 20  74 68 65 20 61 70 70 6c  |sent to the appl|
00001170  69 63 61 74 69 6f 6e 20  61 6e 64 20 61 70 70 65  |ication and appe|
00001180  61 72 20 61 74 20 74 68  65 20 3c 46 4e 65 64 69  |ar at the <FNedi|
00001190  74 5f 72 65 74 75 72 6e  65 64 3e 20 72 6f 75 74  |t_returned> rout|
000011a0  69 6e 65 2e 44 41 54 41  12 01 00 00 46 4e 65 65  |ine.DATA....FNee|
000011b0  5f 73 65 74 63 75 72 73  6f 72 28 6e 75 6d 2c 70  |_setcursor(num,p|
000011c0  6f 73 29 0a 23 50 61 72  65 6e 74 20 21 52 6f 6f  |os).#Parent !Roo|
000011d0  74 0a 3d 3e 09 7b 2f 7d  6e 75 6d 7b 2f 7d 09 6a  |t.=>.{/}num{/}.j|
000011e0  6f 62 20 6e 75 6d 62 65  72 20 74 6f 20 72 65 74  |ob number to ret|
000011f0  75 72 6e 0a 09 7b 2f 7d  70 6f 73 7b 2f 7d 09 3c  |urn..{/}pos{/}.<|
00001200  70 6f 73 69 74 69 6f 6e  20 66 6f 72 20 63 75 72  |position for cur|
00001210  73 6f 72 3d 3e 57 69 6d  70 3a 57 69 6d 70 5f 55  |sor=>Wimp:Wimp_U|
00001220  4d 45 78 74 45 64 69 74  43 75 72 73 6f 72 55 6e  |MExtEditCursorUn|
00001230  69 74 73 3e 2c 20 2d 31  20 74 6f 20 72 65 61 64  |its>, -1 to read|
00001240  2c 20 2d 32 20 66 6f 72  20 65 6e 64 2e 0a 3c 3d  |, -2 for end..<=|
00001250  09 63 75 72 73 6f 72 20  70 6f 73 69 74 69 6f 6e  |.cursor position|
00001260  0a 0a 55 73 65 3a 09 43  6c 69 65 6e 74 0a 0a 54  |..Use:.Client..T|
00001270  68 69 73 20 63 61 6c 6c  20 69 73 20 75 73 65 64  |his call is used|
00001280  20 74 6f 20 73 65 74 20  74 68 65 20 70 6f 73 69  | to set the posi|
00001290  74 69 6f 6e 20 6f 66 20  74 68 65 20 63 75 72 73  |tion of the curs|
000012a0  6f 72 20 77 69 74 68 69  6e 20 74 68 65 20 45 45  |or within the EE|
000012b0  20 6a 6f 62 2e 20 00 00  44 41 54 41 db 00 00 00  | job. ..DATA....|
000012c0  46 4e 65 65 5f 72 65 71  75 65 73 74 61 63 6b 28  |FNee_requestack(|
000012d0  66 6c 61 67 73 2c 63 6f  64 65 29 0a 23 50 61 72  |flags,code).#Par|
000012e0  65 6e 74 20 21 52 6f 6f  74 0a 3d 3e 09 7b 2f 7d  |ent !Root.=>.{/}|
000012f0  66 6c 61 67 73 7b 2f 7d  09 66 6c 61 67 73 20 61  |flags{/}.flags a|
00001300  73 20 70 61 73 73 65 64  2c 20 6f 72 20 6d 6f 64  |s passed, or mod|
00001310  69 66 69 65 64 0a 09 7b  2f 7d 63 6f 64 65 7b 2f  |ified..{/}code{/|
00001320  7d 09 63 6f 64 65 20 74  6f 20 61 6c 6c 6f 63 61  |}.code to alloca|
00001330  74 65 20 74 6f 20 74 68  65 20 66 69 6c 65 0a 5c  |te to the file.\|
00001340  3c 3d 09 6a 6f 62 20 6e  75 6d 62 65 72 0a 55 73  |<=.job number.Us|
00001350  65 3a 09 45 64 69 74 6f  72 0a 0a 54 68 69 73 20  |e:.Editor..This |
00001360  63 61 6c 6c 20 69 73 20  75 73 65 64 20 74 6f 20  |call is used to |
00001370  61 63 6b 6e 6f 77 6c 65  64 67 65 20 61 6e 20 69  |acknowledge an i|
00001380  6e 69 74 69 61 6c 20 45  45 20 72 65 71 75 65 73  |nitial EE reques|
00001390  74 2e 0a 00 44 41 54 41  85 02 00 00 46 4e 65 65  |t...DATA....FNee|
000013a0  5f 62 65 67 69 6e 28 74  79 70 65 2c 66 6c 61 67  |_begin(type,flag|
000013b0  73 2c 6e 61 6d 65 24 2c  63 6f 64 65 29 0a 23 50  |s,name$,code).#P|
000013c0  61 72 65 6e 74 20 21 52  6f 6f 74 0a 3d 3e 09 7b  |arent !Root.=>.{|
000013d0  2f 7d 74 79 70 65 7b 2f  7d 09 3c 44 61 74 61 74  |/}type{/}.<Datat|
000013e0  79 70 65 3d 3e 57 69 6d  70 3a 4d 73 67 5f 45 78  |ype=>Wimp:Msg_Ex|
000013f0  74 45 64 69 74 44 61 74  61 74 79 70 65 73 3e 20  |tEditDatatypes> |
00001400  66 6f 72 20 6a 6f 62 0a  09 7b 2f 7d 66 6c 61 67  |for job..{/}flag|
00001410  73 7b 2f 7d 09 3c 46 6c  61 67 73 3d 3e 57 69 6d  |s{/}.<Flags=>Wim|
00001420  70 3a 4d 73 67 5f 45 78  74 45 64 69 74 46 6c 61  |p:Msg_ExtEditFla|
00001430  67 73 3e 20 66 6f 72 20  74 72 61 6e 73 66 65 72  |gs> for transfer|
00001440  0a 09 7b 2f 7d 6e 61 6d  65 24 7b 2f 7d 09 6e 61  |..{/}name${/}.na|
00001450  6d 65 20 6f 66 20 6a 6f  62 20 28 66 6f 72 20 74  |me of job (for t|
00001460  69 74 6c 65 20 62 61 72  29 0a 09 7b 2f 7d 63 6f  |itle bar)..{/}co|
00001470  64 65 7b 2f 7d 09 63 6f  64 65 20 74 6f 20 61 6c  |de{/}.code to al|
00001480  6c 6f 63 61 74 65 20 74  6f 20 74 68 65 20 66 69  |locate to the fi|
00001490  6c 65 0a 5c 3c 3d 09 6e  75 6d 62 65 72 20 6f 66  |le.\<=.number of|
000014a0  20 6a 6f 62 2c 20 6f 72  20 2d 31 20 69 66 20 6e  | job, or -1 if n|
000014b0  6f 74 20 70 6f 73 73 69  62 6c 65 0a 55 73 65 3a  |ot possible.Use:|
000014c0  09 43 6c 69 65 6e 74 0a  0a 54 68 69 73 20 63 61  |.Client..This ca|
000014d0  6c 6c 20 69 73 20 75 73  65 64 20 74 6f 20 69 6e  |ll is used to in|
000014e0  69 74 69 61 74 65 20 61  20 45 45 20 6a 6f 62 2e  |itiate a EE job.|
000014f0  20 49 74 20 77 69 6c 6c  20 75 73 75 61 6c 6c 79  | It will usually|
00001500  20 62 65 20 66 6f 6c 6c  6f 77 65 64 20 62 79 20  | be followed by |
00001510  3c 46 4e 65 65 5f 73 65  6e 64 66 69 6c 65 3e 2e  |<FNee_sendfile>.|
00001520  20 55 73 65 20 3c 46 4e  65 65 5f 66 69 6e 64 66  | Use <FNee_findf|
00001530  6c 61 67 73 3e 20 74 6f  20 72 65 61 64 20 74 68  |lags> to read th|
00001540  65 20 66 6c 61 67 73 20  72 65 74 75 72 6e 65 64  |e flags returned|
00001550  20 66 72 6f 6d 20 74 68  65 20 45 64 69 74 6f 72  | from the Editor|
00001560  2e 0a 0a 54 68 65 20 65  64 69 74 6f 72 20 77 69  |...The editor wi|
00001570  6c 6c 20 62 65 67 69 6e  20 73 65 61 72 63 68 69  |ll begin searchi|
00001580  6e 67 20 66 6f 72 20 61  6e 20 65 64 69 74 6f 72  |ng for an editor|
00001590  20 77 69 74 68 20 74 68  65 20 66 75 6c 6c 20 64  | with the full d|
000015a0  61 74 61 74 79 70 65 20  69 6e 20 6d 65 6d 6f 72  |atatype in memor|
000015b0  79 2c 20 74 68 65 6e 20  6f 6e 20 64 69 73 63 2c  |y, then on disc,|
000015c0  20 74 68 65 6e 20 74 68  65 20 62 61 73 65 20 74  | then the base t|
000015d0  79 70 65 20 69 6e 20 6d  65 6d 6f 72 79 2c 20 74  |ype in memory, t|
000015e0  68 65 6e 20 62 61 73 65  20 74 79 70 65 20 6f 6e  |hen base type on|
000015f0  20 64 69 73 63 2c 20 61  6e 64 20 66 69 6e 61 6c  | disc, and final|
00001600  6c 79 20 72 65 74 75 72  6e 20 27 6e 6f 74 20 70  |ly return 'not p|
00001610  6f 73 73 69 62 6c 65 27  2e 00 00 00 44 41 54 41  |ossible'....DATA|
00001620  7c 01 00 00 46 4e 65 64  69 74 5f 72 65 74 75 72  ||...FNedit_retur|
00001630  6e 65 64 28 6e 75 6d 2c  63 6f 64 65 2c 66 69 6c  |ned(num,code,fil|
00001640  65 24 29 0a 23 50 61 72  65 6e 74 20 21 52 6f 6f  |e$).#Parent !Roo|
00001650  74 0a 3d 3e 09 7b 2f 7d  6e 75 6d 7b 2f 7d 09 6a  |t.=>.{/}num{/}.j|
00001660  6f 62 20 6e 75 6d 62 65  72 20 74 6f 20 72 65 74  |ob number to ret|
00001670  75 72 6e 0a 09 7b 2f 7d  63 6f 64 65 7b 2f 7d 09  |urn..{/}code{/}.|
00001680  63 6f 64 65 20 66 6f 72  20 6a 6f 62 0a 09 7b 2f  |code for job..{/|
00001690  7d 66 69 6c 65 24 7b 2f  7d 09 66 69 6c 65 20 64  |}file${/}.file d|
000016a0  61 74 61 20 72 65 74 75  72 6e 65 64 20 69 6e 0a  |ata returned in.|
000016b0  5c 3c 3d 09 2d 31 20 69  66 20 6e 6f 74 20 6f 6b  |\<=.-1 if not ok|
000016c0  2c 20 30 20 69 66 20 6f  6b 0a 55 73 65 3a 09 43  |, 0 if ok.Use:.C|
000016d0  6c 69 65 6e 74 0a 0a 57  68 65 6e 20 74 68 65 20  |lient..When the |
000016e0  6c 69 62 72 61 72 79 20  72 65 63 65 69 76 65 73  |library receives|
000016f0  20 61 20 66 69 6c 65 20  62 61 63 6b 20 66 72 6f  | a file back fro|
00001700  6d 20 74 68 65 20 65 64  69 74 6f 72 20 74 68 69  |m the editor thi|
00001710  73 20 72 6f 75 74 69 6e  65 20 69 73 20 63 61 6c  |s routine is cal|
00001720  6c 65 64 2e 20 4f 6e 20  65 78 69 74 69 6e 67 20  |led. On exiting |
00001730  74 68 65 20 66 69 6c 65  20 77 69 6c 6c 20 62 65  |the file will be|
00001740  20 64 65 6c 65 74 65 64  2c 20 61 6e 64 20 69 66  | deleted, and if|
00001750  20 74 68 65 20 72 65 70  6c 79 20 77 61 73 20 27  | the reply was '|
00001760  6f 6b 27 2c 20 74 68 65  6e 20 74 68 65 20 61 63  |ok', then the ac|
00001770  6b 6e 6f 77 6c 65 64 67  65 20 69 73 20 73 65 6e  |knowledge is sen|
00001780  74 20 61 6e 64 20 74 68  65 20 66 69 6c 65 20 64  |t and the file d|
00001790  65 6c 65 74 65 64 2e 0a  44 41 54 41 aa 01 00 00  |eleted..DATA....|
000017a0  46 4e 65 64 69 74 5f 73  61 76 65 72 71 28 6e 75  |FNedit_saverq(nu|
000017b0  6d 2c 63 6f 64 65 2c 74  79 70 65 29 0a 23 50 61  |m,code,type).#Pa|
000017c0  72 65 6e 74 20 21 52 6f  6f 74 0a 3d 3e 09 7b 2f  |rent !Root.=>.{/|
000017d0  7d 6e 75 6d 7b 2f 7d 09  6a 6f 62 20 6e 75 6d 62  |}num{/}.job numb|
000017e0  65 72 0a 09 7b 2f 7d 63  6f 64 65 7b 2f 7d 09 63  |er..{/}code{/}.c|
000017f0  6f 64 65 20 66 6f 72 20  6a 6f 62 0a 09 7b 2f 7d  |ode for job..{/}|
00001800  74 79 70 65 7b 2f 7d 09  3c 64 61 74 61 74 79 70  |type{/}.<datatyp|
00001810  65 3d 3e 57 69 6d 70 3a  4d 73 67 5f 45 78 74 45  |e=>Wimp:Msg_ExtE|
00001820  64 69 74 44 61 74 61 74  79 70 65 73 3e 20 66 6f  |ditDatatypes> fo|
00001830  72 20 6a 6f 62 0a 5c 3c  3d 09 2d 31 20 69 66 20  |r job.\<=.-1 if |
00001840  64 6f 6e 27 74 20 77 61  6e 74 20 74 6f 20 6c 6f  |don't want to lo|
00001850  61 64 2c 20 30 20 69 66  20 6f 6b 20 74 6f 20 6c  |ad, 0 if ok to l|
00001860  6f 61 64 0a 55 73 65 3a  09 43 6c 69 65 6e 74 2f  |oad.Use:.Client/|
00001870  45 64 69 74 6f 72 0a 0a  57 68 65 6e 20 74 68 65  |Editor..When the|
00001880  20 6c 69 62 72 61 72 79  20 72 65 63 65 69 76 65  | library receive|
00001890  73 20 61 20 72 65 71 75  65 73 74 20 74 6f 20 6c  |s a request to l|
000018a0  6f 61 64 20 64 61 74 61  2c 20 74 68 69 73 20 72  |oad data, this r|
000018b0  6f 75 74 69 6e 65 20 77  69 6c 6c 20 62 65 20 63  |outine will be c|
000018c0  61 6c 6c 65 64 2e 20 54  68 65 20 64 65 63 69 73  |alled. The decis|
000018d0  69 6f 6e 20 61 73 20 74  6f 20 77 68 65 74 68 65  |ion as to whethe|
000018e0  72 20 74 6f 20 61 63 63  65 70 74 20 74 68 65 20  |r to accept the |
000018f0  73 61 76 65 20 73 68 6f  75 6c 64 20 62 65 20 6d  |save should be m|
00001900  61 64 65 20 6f 6e 20 74  68 65 20 66 69 6c 65 73  |ade on the files|
00001910  20 74 79 70 65 20 61 6e  64 20 70 6f 73 73 69 62  | type and possib|
00001920  6c 79 20 69 74 27 73 20  66 6c 61 67 73 20 28 3c  |ly it's flags (<|
00001930  46 4e 65 65 5f 66 69 6e  64 66 6c 61 67 73 3e 29  |FNee_findflags>)|
00001940  2e 0a 00 00 44 41 54 41  31 02 00 00 46 4e 65 64  |....DATA1...FNed|
00001950  69 74 5f 72 65 74 75 72  6e 72 71 28 6e 75 6d 2c  |it_returnrq(num,|
00001960  63 6f 64 65 2c 74 79 70  65 2c 66 6c 61 67 73 29  |code,type,flags)|
00001970  0a 23 50 61 72 65 6e 74  20 21 52 6f 6f 74 0a 3d  |.#Parent !Root.=|
00001980  3e 09 7b 2f 7d 6e 75 6d  7b 2f 7d 09 6a 6f 62 20  |>.{/}num{/}.job |
00001990  6e 75 6d 62 65 72 20 74  6f 20 72 65 74 75 72 6e  |number to return|
000019a0  0a 09 7b 2f 7d 63 6f 64  65 7b 2f 7d 09 63 6f 64  |..{/}code{/}.cod|
000019b0  65 20 66 6f 72 20 6a 6f  62 0a 09 7b 2f 7d 74 79  |e for job..{/}ty|
000019c0  70 65 7b 2f 7d 09 3c 64  61 74 61 74 79 70 65 3d  |pe{/}.<datatype=|
000019d0  3e 57 69 6d 70 3a 4d 73  67 5f 45 78 74 45 64 69  |>Wimp:Msg_ExtEdi|
000019e0  74 44 61 74 61 74 79 70  65 73 3e 20 74 6f 20 72  |tDatatypes> to r|
000019f0  65 74 75 72 6e 20 61 73  0a 09 7b 2f 7d 66 6c 61  |eturn as..{/}fla|
00001a00  67 73 7b 2f 7d 09 3c 66  6c 61 67 73 3d 3e 57 69  |gs{/}.<flags=>Wi|
00001a10  6d 70 3a 4d 73 67 5f 45  78 74 45 64 69 74 46 6c  |mp:Msg_ExtEditFl|
00001a20  61 67 73 3e 20 66 6f 72  20 72 65 74 75 72 6e 0a  |ags> for return.|
00001a30  5c 3c 3d 09 66 69 6c 65  6e 61 6d 65 2c 20 6f 72  |\<=.filename, or|
00001a40  20 6e 75 6c 6c 20 69 66  20 6e 6f 74 20 72 65 74  | null if not ret|
00001a50  75 72 6e 69 6e 67 20 64  61 74 61 0a 55 73 65 3a  |urning data.Use:|
00001a60  09 45 64 69 74 6f 72 0a  0a 57 68 65 6e 20 74 68  |.Editor..When th|
00001a70  65 20 6c 69 62 72 61 72  79 20 72 65 63 65 69 76  |e library receiv|
00001a80  65 73 20 61 20 72 65 71  75 65 73 74 20 74 6f 20  |es a request to |
00001a90  72 65 74 75 72 6e 20 64  61 74 61 20 66 72 6f 6d  |return data from|
00001aa0  20 74 68 65 20 63 6c 69  65 6e 74 2c 20 74 68 69  | the client, thi|
00001ab0  73 20 72 6f 75 74 69 6e  65 20 69 73 20 63 61 6c  |s routine is cal|
00001ac0  6c 65 64 2e 20 54 68 65  20 66 69 6c 65 6e 61 6d  |led. The filenam|
00001ad0  65 20 72 65 74 75 72 6e  65 64 20 73 68 6f 75 6c  |e returned shoul|
00001ae0  64 20 62 65 20 65 69 74  68 65 72 20 74 68 61 74  |d be either that|
00001af0  20 6f 66 20 74 68 65 20  6a 6f 62 20 61 73 20 69  | of the job as i|
00001b00  6e 69 74 69 61 6c 6c 79  20 70 61 73 73 65 64 2c  |nitially passed,|
00001b10  20 6f 72 20 73 6f 6d 65  20 72 65 6c 65 76 61 6e  | or some relevan|
00001b20  74 20 6e 61 6d 65 20 28  74 68 65 20 45 45 20 73  |t name (the EE s|
00001b30  70 65 63 69 66 69 63 61  74 69 6f 6e 20 64 6f 65  |pecification doe|
00001b40  73 20 6e 6f 74 20 67 69  76 65 20 61 20 70 61 72  |s not give a par|
00001b50  74 69 63 75 6c 61 72 20  75 73 65 20 6f 66 20 74  |ticular use of t|
00001b60  68 69 73 20 66 6f 72 20  74 68 65 20 63 6c 69 65  |his for the clie|
00001b70  6e 74 29 2e 0a 00 00 00  44 49 52 24 14 01 00 00  |nt).....DIR$....|
00001b80  14 01 00 00 8c 1c 00 00  46 ff ff ff 82 e1 f9 4d  |........F......M|
00001b90  8f 00 00 00 13 00 00 00  00 00 00 00 65 65 5f 69  |............ee_i|
00001ba0  6e 69 74 00 1c 1d 00 00  47 ff ff ff 6b 22 05 5e  |nit.....G...k".^|
00001bb0  f6 00 00 00 13 00 00 00  00 00 00 00 65 65 5f 61  |............ee_a|
00001bc0  62 6f 72 74 00 00 00 00  14 1e 00 00 46 ff ff ff  |bort........F...|
00001bd0  f6 18 fa 4d d5 00 00 00  13 00 00 00 00 00 00 00  |...M............|
00001be0  65 65 5f 61 62 6f 72 74  61 6c 6c 00 ec 1e 00 00  |ee_abortall.....|
00001bf0  46 ff ff ff b1 26 fa 4d  6c 01 00 00 13 00 00 00  |F....&.Ml.......|
00001c00  00 00 00 00 65 64 69 74  5f 61 62 6f 72 74 65 64  |....edit_aborted|
00001c10  00 00 00 00 58 20 00 00  47 ff ff ff 1e c4 00 d7  |....X ..G.......|
00001c20  82 02 00 00 13 00 00 00  00 00 00 00 65 64 69 74  |............edit|
00001c30  5f 72 65 71 75 65 73 74  65 64 00 00 dc 22 00 00  |_requested..."..|
00001c40  47 ff ff ff 63 d6 00 d7  16 02 00 00 13 00 00 00  |G...c...........|
00001c50  00 00 00 00 65 64 69 74  5f 73 61 76 65 62 61 63  |....edit_savebac|
00001c60  6b 00 00 00 f4 24 00 00  46 ff ff ff 06 aa fa 4d  |k....$..F......M|
00001c70  59 01 00 00 13 00 00 00  00 00 00 00 65 64 69 74  |Y...........edit|
00001c80  5f 73 61 76 65 64 74 6f  00 00 00 00 44 41 54 41  |_savedto....DATA|
00001c90  8f 00 00 00 50 52 4f 43  65 65 5f 69 6e 69 74 0a  |....PROCee_init.|
00001ca0  23 50 61 72 65 6e 74 20  21 52 6f 6f 74 0a 49 6e  |#Parent !Root.In|
00001cb0  69 74 69 61 6c 69 73 65  73 20 6c 69 62 72 61 72  |itialises librar|
00001cc0  79 20 76 61 72 69 61 62  6c 65 73 2e 0a 0a 43 61  |y variables...Ca|
00001cd0  6c 6c 20 74 68 69 73 20  72 6f 75 74 69 6e 65 20  |ll this routine |
00001ce0  61 74 20 74 68 65 20 73  74 61 72 74 20 6f 66 20  |at the start of |
00001cf0  61 6e 79 20 70 72 6f 67  72 61 6d 20 74 68 61 74  |any program that|
00001d00  20 75 73 65 73 20 74 68  65 20 45 78 74 45 64 69  | uses the ExtEdi|
00001d10  74 4c 69 62 20 66 69 6c  65 2e 0a 00 44 41 54 41  |tLib file...DATA|
00001d20  f6 00 00 00 50 52 4f 43  65 65 5f 61 62 6f 72 74  |....PROCee_abort|
00001d30  28 6e 75 6d 2c 61 62 6f  72 74 29 0a 23 50 61 72  |(num,abort).#Par|
00001d40  65 6e 74 20 21 52 6f 6f  74 0a 3d 3e 09 7b 2f 7d  |ent !Root.=>.{/}|
00001d50  6e 75 6d 7b 2f 7d 09 6a  6f 62 20 6e 75 6d 62 65  |num{/}.job numbe|
00001d60  72 20 74 6f 20 72 65 74  75 72 6e 0a 09 7b 2f 7d  |r to return..{/}|
00001d70  61 62 6f 72 74 7b 2f 7d  09 31 20 69 66 20 3c 50  |abort{/}.1 if <P|
00001d80  52 4f 43 65 64 69 74 5f  61 62 6f 72 74 65 64 3e  |ROCedit_aborted>|
00001d90  20 73 68 6f 75 6c 64 20  62 65 20 63 61 6c 6c 65  | should be calle|
00001da0  64 0a 55 73 65 3a 09 43  6c 69 65 6e 74 2f 45 64  |d.Use:.Client/Ed|
00001db0  69 74 6f 72 0a 0a 54 68  69 73 20 63 61 6c 6c 20  |itor..This call |
00001dc0  69 73 20 75 73 65 64 20  77 68 65 6e 20 74 68 65  |is used when the|
00001dd0  20 6a 6f 62 20 69 73 20  6e 6f 20 6c 6f 6e 67 65  | job is no longe|
00001de0  72 20 61 63 74 69 76 65  2e 20 41 6c 6c 20 63 6f  |r active. All co|
00001df0  6d 6d 75 6e 69 63 61 74  69 6f 6e 20 61 62 6f 75  |mmunication abou|
00001e00  74 20 69 74 20 73 68 6f  75 6c 64 20 63 65 61 73  |t it should ceas|
00001e10  65 2e 00 00 44 41 54 41  d5 00 00 00 50 52 4f 43  |e...DATA....PROC|
00001e20  65 65 5f 61 62 6f 72 74  61 6c 6c 28 61 62 6f 72  |ee_abortall(abor|
00001e30  74 29 0a 23 50 61 72 65  6e 74 20 21 52 6f 6f 74  |t).#Parent !Root|
00001e40  0a 3d 3e 09 7b 2f 7d 61  62 6f 72 74 7b 2f 7d 09  |.=>.{/}abort{/}.|
00001e50  31 20 69 66 20 3c 50 52  4f 43 65 64 69 74 5f 61  |1 if <PROCedit_a|
00001e60  62 6f 72 74 65 64 3e 20  73 68 6f 75 6c 64 20 62  |borted> should b|
00001e70  65 20 63 61 6c 6c 65 64  2e 0a 55 73 65 3a 09 43  |e called..Use:.C|
00001e80  6c 69 65 6e 74 2f 45 64  69 74 6f 72 0a 0a 54 68  |lient/Editor..Th|
00001e90  69 73 20 63 61 6c 6c 20  69 73 20 75 73 65 64 20  |is call is used |
00001ea0  77 68 65 6e 20 74 68 65  20 6a 6f 62 20 69 73 20  |when the job is |
00001eb0  6e 6f 20 6c 6f 6e 67 65  72 20 61 63 74 69 76 65  |no longer active|
00001ec0  20 61 6c 6c 20 63 6f 6d  6d 75 6e 69 63 61 74 69  | all communicati|
00001ed0  6f 6e 20 61 62 6f 75 74  20 69 74 20 73 68 6f 75  |on about it shou|
00001ee0  6c 64 20 63 65 61 73 65  2e 00 00 00 44 41 54 41  |ld cease....DATA|
00001ef0  6c 01 00 00 50 52 4f 43  65 64 69 74 5f 61 62 6f  |l...PROCedit_abo|
00001f00  72 74 65 64 28 6e 75 6d  2c 63 6f 64 65 29 0a 23  |rted(num,code).#|
00001f10  50 61 72 65 6e 74 20 21  52 6f 6f 74 0a 3d 3e 09  |Parent !Root.=>.|
00001f20  7b 2f 7d 6e 75 6d 7b 2f  7d 09 6a 6f 62 20 6e 75  |{/}num{/}.job nu|
00001f30  6d 62 65 72 20 74 6f 20  72 65 74 75 72 6e 0a 09  |mber to return..|
00001f40  7b 2f 7d 63 6f 64 65 7b  2f 7d 09 63 6f 64 65 20  |{/}code{/}.code |
00001f50  66 6f 72 20 6a 6f 62 0a  55 73 65 3a 09 43 6c 69  |for job.Use:.Cli|
00001f60  65 6e 74 2f 45 64 69 74  6f 72 0a 0a 57 68 65 6e  |ent/Editor..When|
00001f70  20 74 68 65 20 6c 69 62  72 61 72 79 20 72 65 63  | the library rec|
00001f80  65 69 76 65 73 20 61 6e  20 61 62 6f 72 74 20 6d  |eives an abort m|
00001f90  65 73 73 61 67 65 20 66  6f 72 20 61 20 70 61 72  |essage for a par|
00001fa0  74 69 63 75 6c 61 72 20  74 61 73 6b 20 74 68 69  |ticular task thi|
00001fb0  73 20 72 6f 75 74 69 6e  65 20 69 6e 20 74 68 65  |s routine in the|
00001fc0  20 75 73 65 72 20 70 72  6f 67 72 61 6d 20 69 73  | user program is|
00001fd0  20 63 61 6c 6c 65 64 2e  20 54 68 69 73 20 69 6e  | called. This in|
00001fe0  64 69 63 61 74 65 73 20  61 6e 20 69 6d 6d 65 64  |dicates an immed|
00001ff0  69 61 74 65 20 61 62 6f  72 74 2c 20 61 6e 64 20  |iate abort, and |
00002000  6e 6f 20 71 75 65 73 74  69 6f 6e 73 20 73 68 6f  |no questions sho|
00002010  75 6c 64 20 62 65 20 61  73 6b 65 64 2e 20 41 6c  |uld be asked. Al|
00002020  6c 20 76 61 72 69 61 62  6c 65 73 20 73 68 6f 75  |l variables shou|
00002030  6c 64 20 62 65 20 74 69  64 69 65 64 20 75 70 20  |ld be tidied up |
00002040  61 6e 64 20 61 6e 79 20  77 69 6e 64 6f 77 73 20  |and any windows |
00002050  63 6c 6f 73 65 64 2e 0a  44 41 54 41 82 02 00 00  |closed..DATA....|
00002060  50 52 4f 43 65 64 69 74  5f 72 65 71 75 65 73 74  |PROCedit_request|
00002070  65 64 28 74 79 70 65 2c  66 6c 61 67 73 2c 70 61  |ed(type,flags,pa|
00002080  72 65 6e 74 24 2c 6c 65  61 66 24 29 0a 23 50 61  |rent$,leaf$).#Pa|
00002090  72 65 6e 74 20 21 52 6f  6f 74 0a 3d 3e 09 7b 2f  |rent !Root.=>.{/|
000020a0  7d 74 79 70 65 7b 2f 7d  09 3c 64 61 74 61 74 79  |}type{/}.<dataty|
000020b0  70 65 3d 3e 57 69 6d 70  3a 4d 73 67 5f 45 78 74  |pe=>Wimp:Msg_Ext|
000020c0  45 64 69 74 44 61 74 61  74 79 70 65 73 3e 20 66  |EditDatatypes> f|
000020d0  6f 72 20 6a 6f 62 0a 09  7b 2f 7d 66 6c 61 67 73  |or job..{/}flags|
000020e0  7b 2f 7d 09 3c 66 6c 61  67 73 3d 3e 57 69 6d 70  |{/}.<flags=>Wimp|
000020f0  3a 4d 73 67 5f 45 78 74  45 64 69 74 46 6c 61 67  |:Msg_ExtEditFlag|
00002100  73 3e 20 66 6f 72 20 6a  6f 62 0a 09 7b 2f 7d 70  |s> for job..{/}p|
00002110  61 72 65 6e 74 24 7b 2f  7d 09 6e 61 6d 65 20 6f  |arent${/}.name o|
00002120  66 20 70 61 72 65 6e 74  20 61 70 70 6c 69 63 61  |f parent applica|
00002130  74 69 6f 6e 20 28 66 6f  72 20 74 69 74 6c 65 20  |tion (for title |
00002140  62 61 72 29 0a 09 7b 2f  7d 6c 65 61 66 24 7b 2f  |bar)..{/}leaf${/|
00002150  7d 09 6c 65 61 66 6e 61  6d 65 20 74 6f 20 75 73  |}.leafname to us|
00002160  65 20 66 6f 72 20 6a 6f  62 20 28 66 6f 72 20 74  |e for job (for t|
00002170  69 74 6c 65 20 62 61 72  29 0a 5c 3c 3d 09 2d 31  |itle bar).\<=.-1|
00002180  20 69 66 20 64 6f 6e 27  74 20 77 61 6e 74 20 74  | if don't want t|
00002190  6f 20 6c 6f 61 64 2c 20  30 20 69 66 20 6f 6b 20  |o load, 0 if ok |
000021a0  74 6f 20 6c 6f 61 64 0a  55 73 65 3a 09 45 64 69  |to load.Use:.Edi|
000021b0  74 6f 72 0a 0a 57 68 65  6e 20 74 68 65 20 6c 69  |tor..When the li|
000021c0  62 72 61 72 79 20 72 65  63 65 69 76 65 73 20 61  |brary receives a|
000021d0  20 72 65 71 75 65 73 74  20 74 6f 20 62 65 67 69  | request to begi|
000021e0  6e 20 61 6e 20 45 78 74  45 64 69 74 20 73 65 73  |n an ExtEdit ses|
000021f0  73 69 6f 6e 2c 20 74 68  69 73 20 72 6f 75 74 69  |sion, this routi|
00002200  6e 65 20 77 69 6c 6c 20  62 65 20 63 61 6c 6c 65  |ne will be calle|
00002210  64 2e 20 49 66 20 69 74  20 77 69 73 68 65 73 20  |d. If it wishes |
00002220  74 6f 20 65 64 69 74 20  74 68 65 20 66 69 6c 65  |to edit the file|
00002230  20 74 68 65 6e 20 69 74  20 73 68 6f 75 6c 64 20  | then it should |
00002240  63 61 6c 6c 20 3c 46 4e  65 65 5f 72 65 71 75 65  |call <FNee_reque|
00002250  73 74 61 63 6b 3e 20 77  69 74 68 2c 20 70 6f 73  |stack> with, pos|
00002260  73 69 62 6c 79 2c 20 6d  6f 64 69 66 69 65 64 20  |sibly, modified |
00002270  66 6c 61 67 73 20 61 6e  64 20 61 20 32 34 2d 62  |flags and a 24-b|
00002280  69 74 20 63 6f 64 65 20  66 6f 72 20 74 68 65 20  |it code for the |
00002290  66 69 6c 65 2e 20 54 68  65 20 63 6f 64 65 20 69  |file. The code i|
000022a0  73 20 6e 6f 74 20 75 73  65 64 20 62 79 20 74 68  |s not used by th|
000022b0  65 20 6c 69 62 72 61 72  79 20 61 6e 64 20 69 73  |e library and is|
000022c0  20 70 75 72 65 6c 79 20  66 6f 72 20 65 78 74 65  | purely for exte|
000022d0  72 6e 61 6c 20 75 73 65  2e 0a 00 00 44 41 54 41  |rnal use....DATA|
000022e0  16 02 00 00 50 52 4f 43  65 64 69 74 5f 73 61 76  |....PROCedit_sav|
000022f0  65 62 61 63 6b 28 6e 75  6d 2c 63 6f 64 65 2c 66  |eback(num,code,f|
00002300  69 6c 65 24 2c 74 79 70  65 2c 66 6c 61 67 73 29  |ile$,type,flags)|
00002310  0a 23 50 61 72 65 6e 74  20 21 52 6f 6f 74 0a 3d  |.#Parent !Root.=|
00002320  3e 09 7b 2f 7d 6e 75 6d  7b 2f 7d 09 6a 6f 62 20  |>.{/}num{/}.job |
00002330  6e 75 6d 62 65 72 20 74  6f 20 72 65 74 75 72 6e  |number to return|
00002340  0a 09 7b 2f 7d 63 6f 64  65 7b 2f 7d 09 63 6f 64  |..{/}code{/}.cod|
00002350  65 20 66 6f 72 20 6a 6f  62 0a 09 7b 2f 7d 66 69  |e for job..{/}fi|
00002360  6c 65 24 7b 2f 7d 09 66  69 6c 65 20 74 6f 20 73  |le${/}.file to s|
00002370  61 76 65 20 74 6f 0a 09  7b 2f 7d 74 79 70 65 7b  |ave to..{/}type{|
00002380  2f 7d 09 3c 64 61 74 61  74 79 70 65 3d 3e 57 69  |/}.<datatype=>Wi|
00002390  6d 70 3a 4d 73 67 5f 45  78 74 45 64 69 74 44 61  |mp:Msg_ExtEditDa|
000023a0  74 61 74 79 70 65 73 3e  20 74 6f 20 72 65 74 75  |tatypes> to retu|
000023b0  72 6e 20 61 73 0a 09 7b  2f 7d 66 6c 61 67 73 7b  |rn as..{/}flags{|
000023c0  2f 7d 09 3c 66 6c 61 67  73 3d 3e 57 69 6d 70 3a  |/}.<flags=>Wimp:|
000023d0  4d 73 67 5f 45 78 74 45  64 69 74 46 6c 61 67 73  |Msg_ExtEditFlags|
000023e0  3e 20 66 6f 72 20 72 65  74 75 72 6e 0a 5c 3c 3d  |> for return.\<=|
000023f0  09 66 69 6c 65 6e 61 6d  65 2c 20 6f 72 20 6e 75  |.filename, or nu|
00002400  6c 6c 20 69 66 20 6e 6f  74 20 72 65 74 75 72 6e  |ll if not return|
00002410  69 6e 67 20 64 61 74 61  0a 55 73 65 3a 09 45 64  |ing data.Use:.Ed|
00002420  69 74 6f 72 0a 0a 41 66  74 65 72 20 74 68 65 20  |itor..After the |
00002430  72 65 71 75 65 73 74 20  74 6f 20 73 61 76 65 20  |request to save |
00002440  64 61 74 61 20 62 61 63  6b 20 74 6f 20 74 68 65  |data back to the|
00002450  20 63 6c 69 65 6e 74 2c  20 61 6e 64 20 73 75 62  | client, and sub|
00002460  73 65 71 75 65 6e 74 20  3c 46 4e 65 64 69 74 5f  |sequent <FNedit_|
00002470  72 65 74 75 72 6e 72 71  3e 20 73 75 63 63 65 73  |returnrq> succes|
00002480  73 2c 20 74 68 69 73 20  72 6f 75 74 69 6e 65 20  |s, this routine |
00002490  77 69 6c 6c 20 62 65 20  63 61 6c 6c 65 64 20 74  |will be called t|
000024a0  6f 20 70 65 72 66 6f 72  6d 20 74 68 65 20 61 63  |o perform the ac|
000024b0  74 75 61 6c 20 73 61 76  65 2e 20 54 68 65 20 6e  |tual save. The n|
000024c0  65 78 74 20 72 65 73 70  6f 6e 73 65 20 73 68 6f  |ext response sho|
000024d0  75 6c 64 20 62 65 20 74  6f 20 63 61 6c 6c 20 46  |uld be to call F|
000024e0  4e 65 65 5f 73 65 6e 64  66 69 6c 65 64 6f 6e 65  |Nee_sendfiledone|
000024f0  2e 0a 00 00 44 41 54 41  59 01 00 00 50 52 4f 43  |....DATAY...PROC|
00002500  65 64 69 74 5f 73 61 76  65 64 74 6f 28 6e 75 6d  |edit_savedto(num|
00002510  2c 63 6f 64 65 2c 66 69  6c 65 24 29 0a 23 50 61  |,code,file$).#Pa|
00002520  72 65 6e 74 20 21 52 6f  6f 74 0a 3d 3e 09 7b 2f  |rent !Root.=>.{/|
00002530  7d 6e 75 6d 7b 2f 7d 09  6a 6f 62 20 6e 75 6d 62  |}num{/}.job numb|
00002540  65 72 20 74 6f 20 72 65  74 75 72 6e 0a 09 7b 2f  |er to return..{/|
00002550  7d 63 6f 64 65 7b 2f 7d  09 63 6f 64 65 20 66 6f  |}code{/}.code fo|
00002560  72 20 6a 6f 62 0a 09 7b  2f 7d 66 69 6c 65 24 7b  |r job..{/}file${|
00002570  2f 7d 09 66 69 6c 65 20  64 61 74 61 20 72 65 74  |/}.file data ret|
00002580  75 72 6e 65 64 20 69 6e  0a 55 73 65 3a 09 45 64  |urned in.Use:.Ed|
00002590  69 74 6f 72 0a 0a 57 68  65 6e 20 74 68 65 20 6c  |itor..When the l|
000025a0  69 62 72 61 72 79 20 72  65 63 65 69 76 65 73 20  |ibrary receives |
000025b0  61 20 66 69 6c 65 20 66  72 6f 6d 20 74 68 65 20  |a file from the |
000025c0  63 6c 69 65 6e 74 20 74  6f 20 62 65 20 6c 6f 61  |client to be loa|
000025d0  64 65 64 20 69 6e 74 6f  20 61 20 6a 6f 62 2c 20  |ded into a job, |
000025e0  74 68 69 73 20 72 6f 75  74 69 6e 65 20 69 73 20  |this routine is |
000025f0  63 61 6c 6c 65 64 2e 20  49 74 20 69 73 20 74 68  |called. It is th|
00002600  65 20 64 69 72 65 63 74  20 63 6f 75 6e 74 65 72  |e direct counter|
00002610  70 61 72 74 20 6f 66 20  3c 46 4e 65 64 69 74 5f  |part of <FNedit_|
00002620  72 65 74 75 72 6e 65 64  3e 20 61 6e 64 20 70 65  |returned> and pe|
00002630  72 66 6f 72 6d 73 20 65  78 61 63 74 6c 79 20 74  |rforms exactly t|
00002640  68 65 20 73 61 6d 65 20  6a 6f 62 2e 0a 00 00 00  |he same job.....|
00002650  44 41 54 41 46 03 00 00  45 78 74 45 64 69 74 4c  |DATAF...ExtEditL|
00002660  69 62 20 68 65 6c 70 0a  23 41 6c 69 67 6e 20 43  |ib help.#Align C|
00002670  65 6e 74 72 65 0a 7b 66  68 33 7d 4a 46 53 68 61  |entre.{fh3}JFSha|
00002680  72 65 64 20 45 78 74 45  64 69 74 4c 69 62 20 76  |red ExtEditLib v|
00002690  31 2e 30 34 7b 66 7d 0a  23 41 6c 69 67 6e 20 4c  |1.04{f}.#Align L|
000026a0  65 66 74 0a 0a 54 68 65  20 45 78 74 65 72 6e 61  |eft..The Externa|
000026b0  6c 20 45 64 69 74 20 4c  69 62 72 61 72 79 20 69  |l Edit Library i|
000026c0  73 20 61 20 42 61 73 69  63 20 4c 69 62 72 61 72  |s a Basic Librar|
000026d0  79 20 66 69 6c 65 20 77  68 69 63 68 20 70 72 6f  |y file which pro|
000026e0  76 69 64 65 73 20 61 6e  20 69 6e 74 65 72 66 61  |vides an interfa|
000026f0  63 65 20 74 6f 20 4a 61  73 6f 6e 20 57 69 6c 6c  |ce to Jason Will|
00002700  69 61 6d 73 20 3c 45 78  74 65 72 6e 61 6c 20 45  |iams <External E|
00002710  64 69 74 20 50 72 6f 74  6f 63 6f 6c 3d 3e 57 69  |dit Protocol=>Wi|
00002720  6d 70 3a 4d 73 67 5f 45  78 74 45 64 69 74 3e 2e  |mp:Msg_ExtEdit>.|
00002730  20 49 6e 20 63 6f 6e 6a  75 6e 63 74 69 6f 6e 20  | In conjunction |
00002740  77 69 74 68 20 74 68 65  20 57 69 6d 70 4c 69 62  |with the WimpLib|
00002750  20 61 6e 64 20 4a 46 53  68 61 72 65 64 20 73 6b  | and JFShared sk|
00002760  65 6c 65 74 6f 6e 20 61  70 70 6c 69 63 61 74 69  |eleton applicati|
00002770  6f 6e 20 74 68 69 73 20  70 72 6f 76 69 64 65 73  |on this provides|
00002780  20 61 20 76 65 72 79 20  73 69 6d 70 6c 65 20 77  | a very simple w|
00002790  61 79 20 6f 66 20 63 72  65 61 74 69 6e 67 20 61  |ay of creating a|
000027a0  70 70 6c 69 63 61 74 69  6f 6e 73 20 77 68 69 63  |pplications whic|
000027b0  68 20 70 72 6f 76 69 64  65 20 61 20 6c 61 72 67  |h provide a larg|
000027c0  65 20 64 65 67 72 65 65  20 6f 66 20 65 64 69 74  |e degree of edit|
000027d0  69 6e 67 20 63 61 70 61  62 69 6c 69 74 79 2e 20  |ing capability. |
000027e0  54 68 69 73 20 68 65 6c  70 20 66 69 6c 65 20 64  |This help file d|
000027f0  65 74 61 69 6c 73 20 74  68 65 20 72 6f 75 74 69  |etails the routi|
00002800  6e 65 73 20 70 72 6f 76  69 64 65 64 20 69 6e 20  |nes provided in |
00002810  45 78 74 45 64 69 74 4c  69 62 2e 0a 0a 54 68 65  |ExtEditLib...The|
00002820  20 45 78 74 65 72 6e 61  6c 20 45 64 69 74 20 4c  | External Edit L|
00002830  69 62 72 61 72 79 20 69  73 20 72 65 66 65 72 65  |ibrary is refere|
00002840  6e 63 65 64 20 62 79 20  5c 3c 4a 46 45 78 74 45  |nced by \<JFExtE|
00002850  64 69 74 24 46 69 6c 65  3e 20 61 6e 64 20 73 68  |dit$File> and sh|
00002860  6f 75 6c 64 20 62 65 20  6c 6f 61 64 65 64 20 77  |ould be loaded w|
00002870  69 74 68 20 3a 0a 7b 66  43 6f 64 65 7d 4c 49 42  |ith :.{fCode}LIB|
00002880  52 41 52 59 20 22 5c 3c  4a 46 45 78 74 45 64 69  |RARY "\<JFExtEdi|
00002890  74 24 46 69 6c 65 3e 22  3a 50 52 4f 43 65 65 5f  |t$File>":PROCee_|
000028a0  69 6e 69 74 7b 66 7d 0a  0a 54 68 65 20 4a 46 53  |init{f}..The JFS|
000028b0  68 61 72 65 64 20 61 70  70 6c 69 63 61 74 69 6f  |hared applicatio|
000028c0  6e 20 69 73 20 a9 20 4a  75 73 74 69 6e 20 46 6c  |n is . Justin Fl|
000028d0  65 74 63 68 65 72 2c 20  31 39 39 35 20 61 6e 64  |etcher, 1995 and|
000028e0  20 69 73 20 72 65 6c 65  61 73 65 64 20 69 6e 74  | is released int|
000028f0  6f 20 74 68 65 20 50 75  62 6c 69 63 20 44 6f 6d  |o the Public Dom|
00002900  61 69 6e 20 77 69 74 68  20 74 68 65 20 73 61 6d  |ain with the sam|
00002910  65 20 72 65 73 74 72 69  63 74 69 6f 6e 73 20 61  |e restrictions a|
00002920  73 20 73 75 62 73 69 73  74 20 69 6e 20 6d 6f 73  |s subsist in mos|
00002930  74 20 50 44 20 73 6f 66  74 77 61 72 65 2e 20 54  |t PD software. T|
00002940  68 69 73 20 69 6e 63 6c  75 64 65 73 20 74 68 65  |his includes the|
00002950  20 66 61 63 74 20 74 68  61 74 20 77 68 65 6e 20  | fact that when |
00002960  64 69 73 74 72 69 62 75  74 65 64 20 74 68 65 20  |distributed the |
00002970  65 6e 74 69 72 65 20 61  70 70 6c 69 63 61 74 69  |entire applicati|
00002980  6f 6e 20 6d 75 73 74 20  72 65 6d 61 69 6e 20 69  |on must remain i|
00002990  6e 74 61 63 74 2e 00 00  44 49 52 24 54 00 00 00  |ntact...DIR$T...|
000029a0  54 00 00 00 ec 29 00 00  47 fd ff ff 8a 30 04 5e  |T....)..G....0.^|
000029b0  98 01 00 00 13 00 00 00  00 00 00 00 6d 73 67 72  |............msgr|
000029c0  65 63 63 6f 64 65 00 00  84 2b 00 00 47 fd ff ff  |eccode...+..G...|
000029d0  47 2d 04 5e 2e 01 00 00  13 00 00 00 00 00 00 00  |G-.^............|
000029e0  6d 73 67 61 63 6b 63 6f  64 65 00 00 44 41 54 41  |msgackcode..DATA|
000029f0  98 01 00 00 4d 65 73 73  61 67 65 2f 4d 65 73 73  |....Message/Mess|
00002a00  61 67 65 52 65 63 20 63  6f 64 65 0a 54 68 65 20  |ageRec code.The |
00002a10  66 6f 6c 6c 6f 77 69 6e  67 20 63 6f 64 65 20 6d  |following code m|
00002a20  75 73 74 20 62 65 20 69  6e 63 6c 75 64 65 64 20  |ust be included |
00002a30  69 6e 20 74 68 65 20 68  61 6e 64 6c 65 72 20 66  |in the handler f|
00002a40  6f 72 20 72 65 61 73 6f  6e 20 31 37 2c 31 38 20  |or reason 17,18 |
00002a50  3a 0a 0a 23 57 72 61 70  20 4f 66 66 0a 23 66 43  |:..#Wrap Off.#fC|
00002a60  6f 64 65 0a 57 48 45 4e  20 32 3a 49 46 20 65 78  |ode.WHEN 2:IF ex|
00002a70  74 73 74 61 74 75 73 3d  33 20 54 48 45 4e 65 78  |tstatus=3 THENex|
00002a80  74 63 6f 64 65 3d 30 3a  65 78 74 73 74 61 74 75  |tcode=0:extstatu|
00002a90  73 3d 34 0a 57 48 45 4e  20 33 3a 49 46 20 65 78  |s=4.WHEN 3:IF ex|
00002aa0  74 73 74 61 74 75 73 3d  36 20 54 48 45 4e 50 52  |tstatus=6 THENPR|
00002ab0  4f 43 65 78 74 65 64 69  74 5f 73 61 76 65 64 0a  |OCextedit_saved.|
00002ac0  57 48 45 4e 20 34 3a 49  46 20 65 78 74 73 74 61  |WHEN 4:IF extsta|
00002ad0  74 75 73 3d 34 20 54 48  45 4e 65 78 74 63 6f 64  |tus=4 THENextcod|
00002ae0  65 3d 30 3a 65 78 74 73  74 61 74 75 73 3d 35 0a  |e=0:extstatus=5.|
00002af0  57 48 45 4e 20 26 34 35  44 38 31 3a 50 52 4f 43  |WHEN &45D81:PROC|
00002b00  65 78 74 65 64 69 74 5f  61 63 6b 0a 57 48 45 4e  |extedit_ack.WHEN|
00002b10  20 26 34 35 44 38 33 3a  50 52 4f 43 65 78 74 65  | &45D83:PROCexte|
00002b20  64 69 74 5f 61 62 6f 72  74 28 62 25 21 32 34 29  |dit_abort(b%!24)|
00002b30  0a 57 48 45 4e 20 26 34  35 44 38 34 3a 50 52 4f  |.WHEN &45D84:PRO|
00002b40  43 65 78 74 65 64 69 74  5f 73 61 76 65 28 62 25  |Cextedit_save(b%|
00002b50  21 32 30 29 0a 57 48 45  4e 20 26 34 35 44 38 35  |!20).WHEN &45D85|
00002b60  3a 50 52 4f 43 65 78 74  65 64 69 74 5f 63 75 72  |:PROCextedit_cur|
00002b70  73 6f 72 28 62 25 21 32  34 2c 62 25 21 34 34 29  |sor(b%!24,b%!44)|
00002b80  0a 23 66 0a 44 41 54 41  2e 01 00 00 4d 65 73 73  |.#f.DATA....Mess|
00002b90  61 67 65 41 63 6b 20 63  6f 64 65 0a 54 68 65 20  |ageAck code.The |
00002ba0  66 6f 6c 6c 6f 77 69 6e  67 20 63 6f 64 65 20 6d  |following code m|
00002bb0  75 73 74 20 62 65 20 69  6e 63 6c 75 64 65 64 20  |ust be included |
00002bc0  69 6e 20 74 68 65 20 68  61 6e 64 6c 65 72 20 66  |in the handler f|
00002bd0  6f 72 20 72 65 61 73 6f  6e 20 31 39 20 3a 0a 0a  |or reason 19 :..|
00002be0  23 57 72 61 70 20 6f 66  66 0a 23 66 43 6f 64 65  |#Wrap off.#fCode|
00002bf0  0a 57 48 45 4e 20 32 3a  52 45 4d 20 50 6f 73 73  |.WHEN 2:REM Poss|
00002c00  69 62 6c 65 20 44 61 74  61 54 72 61 6e 73 66 65  |ible DataTransfe|
00002c10  72 20 61 62 6f 72 74 0a  57 48 45 4e 20 33 3a 49  |r abort.WHEN 3:I|
00002c20  46 20 65 78 74 73 74 61  74 75 73 3d 34 20 54 48  |F extstatus=4 TH|
00002c30  45 4e 65 78 74 63 6f 64  65 3d 2d 31 3a 65 78 74  |ENextcode=-1:ext|
00002c40  73 74 61 74 75 73 3d 35  0a 57 48 45 4e 20 26 34  |status=5.WHEN &4|
00002c50  35 44 38 30 3a 50 52 4f  43 65 78 74 65 64 69 74  |5D80:PROCextedit|
00002c60  5f 6e 6f 61 63 6b 0a 57  48 45 4e 20 26 34 35 44  |_noack.WHEN &45D|
00002c70  38 34 3a 50 52 4f 43 65  78 74 65 64 69 74 5f 6e  |84:PROCextedit_n|
00002c80  6f 73 61 76 65 0a 57 48  45 4e 20 26 34 35 44 38  |osave.WHEN &45D8|
00002c90  35 3a 50 52 4f 43 65 78  74 65 64 69 74 5f 63 75  |5:PROCextedit_cu|
00002ca0  72 73 6f 72 28 62 25 21  32 34 2c 2d 32 29 0a 23  |rsor(b%!24,-2).#|
00002cb0  66 0a 00 00 44 49 52 24  54 00 00 00 54 00 00 00  |f...DIR$T...T...|
00002cc0  08 2d 00 00 47 fd ff ff  7d 4d 04 5e d4 01 00 00  |.-..G...}M.^....|
00002cd0  13 00 00 00 00 00 00 00  6d 73 67 72 65 63 63 6f  |........msgrecco|
00002ce0  64 65 00 00 dc 2e 00 00  47 fd ff ff be 4b 04 5e  |de......G....K.^|
00002cf0  ef 00 00 00 13 00 00 00  00 00 00 00 6d 73 67 61  |............msga|
00002d00  63 6b 63 6f 64 65 00 00  44 41 54 41 d4 01 00 00  |ckcode..DATA....|
00002d10  4d 65 73 73 61 67 65 2f  4d 65 73 73 61 67 65 52  |Message/MessageR|
00002d20  65 63 20 63 6f 64 65 0a  54 68 65 20 66 6f 6c 6c  |ec code.The foll|
00002d30  6f 77 69 6e 67 20 63 6f  64 65 20 6d 75 73 74 20  |owing code must |
00002d40  62 65 20 69 6e 63 6c 75  64 65 64 20 69 6e 20 74  |be included in t|
00002d50  68 65 20 68 61 6e 64 6c  65 72 20 66 6f 72 20 72  |he handler for r|
00002d60  65 61 73 6f 6e 20 31 37  2c 31 38 20 3a 0a 0a 23  |eason 17,18 :..#|
00002d70  57 72 61 70 20 6f 66 66  0a 23 66 43 6f 64 65 0a  |Wrap off.#fCode.|
00002d80  57 48 45 4e 20 32 3a 49  46 20 65 78 74 73 74 61  |WHEN 2:IF extsta|
00002d90  74 75 73 3d 33 20 54 48  45 4e 65 78 74 63 6f 64  |tus=3 THENextcod|
00002da0  65 3d 30 3a 65 78 74 73  74 61 74 75 73 3d 34 0a  |e=0:extstatus=4.|
00002db0  57 48 45 4e 20 33 3a 49  46 20 65 78 74 73 74 61  |WHEN 3:IF extsta|
00002dc0  74 75 73 3d 36 20 4f 52  20 65 78 74 73 74 61 74  |tus=6 OR extstat|
00002dd0  75 73 3d 31 30 20 54 48  45 4e 50 52 4f 43 65 78  |us=10 THENPROCex|
00002de0  74 65 64 69 74 5f 73 61  76 65 64 0a 57 48 45 4e  |tedit_saved.WHEN|
00002df0  20 34 3a 49 46 20 65 78  74 73 74 61 74 75 73 3d  | 4:IF extstatus=|
00002e00  34 20 54 48 45 4e 65 78  74 63 6f 64 65 3d 30 3a  |4 THENextcode=0:|
00002e10  65 78 74 73 74 61 74 75  73 3d 35 0a 57 48 45 4e  |extstatus=5.WHEN|
00002e20  20 26 34 35 44 38 30 3a  50 52 4f 43 65 64 69 74  | &45D80:PROCedit|
00002e30  5f 72 65 71 75 65 73 74  65 64 28 62 25 21 32 30  |_requested(b%!20|
00002e40  2c 62 25 21 32 38 2c 46  4e 73 74 72 69 6e 67 30  |,b%!28,FNstring0|
00002e50  28 62 25 2b 33 32 29 2c  46 4e 73 74 72 69 6e 67  |(b%+32),FNstring|
00002e60  30 28 62 25 2b 35 32 29  29 0a 57 48 45 4e 20 26  |0(b%+52)).WHEN &|
00002e70  34 35 44 38 32 3a 50 52  4f 43 65 78 74 65 64 69  |45D82:PROCextedi|
00002e80  74 5f 72 65 74 75 72 6e  28 62 25 21 32 34 29 0a  |t_return(b%!24).|
00002e90  57 48 45 4e 20 26 34 35  44 38 33 3a 50 52 4f 43  |WHEN &45D83:PROC|
00002ea0  65 78 74 65 64 69 74 5f  61 62 6f 72 74 28 62 25  |extedit_abort(b%|
00002eb0  21 32 34 29 0a 57 48 45  4e 20 26 34 35 44 38 34  |!24).WHEN &45D84|
00002ec0  3a 50 52 4f 43 65 78 74  65 64 69 74 5f 73 61 76  |:PROCextedit_sav|
00002ed0  65 28 62 25 21 32 30 29  0a 23 66 0a 44 41 54 41  |e(b%!20).#f.DATA|
00002ee0  ef 00 00 00 4d 65 73 73  61 67 65 41 63 6b 6e 6f  |....MessageAckno|
00002ef0  77 6c 65 64 67 65 20 63  6f 64 65 0a 54 68 65 20  |wledge code.The |
00002f00  66 6f 6c 6c 6f 77 69 6e  67 20 63 6f 64 65 20 6d  |following code m|
00002f10  75 73 74 20 62 65 20 69  6e 63 6c 75 64 65 64 20  |ust be included |
00002f20  69 6e 20 74 68 65 20 68  61 6e 64 6c 65 72 20 66  |in the handler f|
00002f30  6f 72 20 72 65 61 73 6f  6e 20 31 39 20 3a 0a 0a  |or reason 19 :..|
00002f40  23 57 72 61 70 20 6f 66  66 0a 23 66 43 6f 64 65  |#Wrap off.#fCode|
00002f50  0a 57 48 45 4e 20 32 3a  52 45 4d 20 50 6f 73 73  |.WHEN 2:REM Poss|
00002f60  69 62 6c 65 20 44 61 74  61 54 72 61 6e 73 66 65  |ible DataTransfe|
00002f70  72 20 61 62 6f 72 74 0a  57 48 45 4e 20 33 3a 49  |r abort.WHEN 3:I|
00002f80  46 20 65 78 74 73 74 61  74 75 73 3d 34 20 54 48  |F extstatus=4 TH|
00002f90  45 4e 65 78 74 63 6f 64  65 3d 2d 31 3a 65 78 74  |ENextcode=-1:ext|
00002fa0  73 74 61 74 75 73 3d 35  0a 57 48 45 4e 20 26 34  |status=5.WHEN &4|
00002fb0  35 44 38 34 3a 50 52 4f  43 65 78 74 65 64 69 74  |5D84:PROCextedit|
00002fc0  5f 6e 6f 73 61 76 65 0a  23 66 0a 00              |_nosave.#f..|
00002fcc