home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
utilities
/
utilsf
/
lineeditor
/
Zap131
< prev
Wrap
Text File
|
1996-08-27
|
2KB
|
55 lines
# Copyright (C) Olly Betts 1996
# This patch may be distributed freely, but use at your own risk.
#
# You'll need Acorn's !Patch to use this file. On a Risc PC, it should
# be in $.Utilities.Patches.!Patch on the harddisc. On a RISC OS 3
# machine, look on one of the floppy discs that come with the machine.
# !Patch claims not to run on RISC OS 2, but you can always patch !Zap
# on a newer machine and copy it across.
#
# Purpose: I've enhanced the interface to the LineEditor_CreateBuffer
# SWI, which allows other programs to create a buffer for storing and
# recalling lines. The enhancement is to optionally take a taskhandle,
# and LineEditor will automatically free the buffer if that task quits.
# The enhanced calling convention is backward and forward compatible.
#
# Zap 1.30 uses this interface, but was written with the old interface
# so doesn't pass a taskhandle in, so Zap's buffer won't get freed if
# it exits unexpectedly (though I've only actually had this happen when
# I've killed LineEditor when Zap was using it).
#
# Put simply:
#
# This patch doesn't require LineEditor 2.70, and isn't required by
# LineEditor 2.70. There's no point in applying it if you don't use
# LineEditor but there's no harm either, and it doesn't even increase
# the size of the Zap module.
#
# I have permission from Dom Symes (Zap's author) to distribute this patch.
#
Application:!Zap &2000
Description:Zap Text Editor
#
Patch:Updates !Zap to use improved interface to LineEditor_CreateBuffer
#
File:!Zap.Code.Zap &FFA
# check version string
Location:&30
VerifyString:Zap<9><9>1.30<32>(20<32>Jun<32>1995)
# update version string
Location:&35
ChangeString:1.30<32>(20<32>Jun<32>1995) 1.31<32>(11<32>Aug<32>1996)
# patches to code
Location:&1734C
ChangeWord:&E92D4006 &E92D400E
Location:&17358
ChangeWord:&E1A02001 &E1A03001
ChangeWord:&E3A00000 &E59C10D8
ChangeWord:&E3A01000 &E1A0200C
Location:&1736C
ChangeWord:&E1A01002 &E1A01003
Location:&1737C
ChangeWord:&E8BD8006 &E8BD800E
Location:&17384
ChangeWord:&E8BD8006 &E8BD800E