[ODE] Space additions for dRay
Russ Smith
russ at q12.org
Tue Aug 20 23:16:01 2002
This is a multi-part message in MIME format.
--Multipart_Tue__20_Aug_2002_23:16:41_-0400_084075d0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
> Erwin-- did your space locking stuff ever get posted? I'd very much
> like to look at this.
he sent it to me. i have not added it to the CVS yet, but the original
patches are attached to this email.
russ.
--
Russell Smith
http://www.q12.org
--Multipart_Tue__20_Aug_2002_23:16:41_-0400_084075d0
Content-Type: application/octet-stream;
name="Include.patch"
Content-Disposition: attachment;
filename="Include.patch"
Content-Transfer-Encoding: base64
SW5kZXg6IGluY2x1ZGUvb2RlL3NwYWNlLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2c3Jvb3Qv
b2RlL2luY2x1ZGUvb2RlL3NwYWNlLmgsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuOQpkaWZmIC11
IC1yMS45IHNwYWNlLmgKLS0tIGluY2x1ZGUvb2RlL3NwYWNlLmgJMjAwMi8wNi8yNSAyMzo0Njox
NgkxLjkKKysrIGluY2x1ZGUvb2RlL3NwYWNlLmgJMjAwMi8wOC8wNiAwOTo1Mzo0MgpAQCAtNTAs
OCArNTAsMTIgQEAKIHZvaWQgZFNwYWNlQ29sbGlkZSAoZFNwYWNlSUQgc3BhY2UsIHZvaWQgKmRh
dGEsIGROZWFyQ2FsbGJhY2sgKmNhbGxiYWNrKTsKIGludCBkU3BhY2VRdWVyeSAoZFNwYWNlSUQs
IGRHZW9tSUQpOwogCi12b2lkIGRIYXNoU3BhY2VTZXRMZXZlbHMgKGRTcGFjZUlEIHNwYWNlLCBp
bnQgbWlubGV2ZWwsIGludCBtYXhsZXZlbCk7Cit2b2lkIGRTcGFjZUxvY2sgKGRTcGFjZUlEIHNw
YWNlKTsKK3ZvaWQgZFNwYWNlQ29sbGlkZUdlb20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WV0cnkgZ3JvdXAgZnVuY3Rpb25z
ICovCiAKCg==
--Multipart_Tue__20_Aug_2002_23:16:41_-0400_084075d0
Content-Type: application/octet-stream;
name="Src.patch"
Content-Disposition: attachment;
filename="Src.patch"
Content-Transfer-Encoding: base64
SW5kZXg6IG9kZS9zcmMvc3BhY2UuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L29k
ZS9vZGUvc3JjL3NwYWNlLmNwcCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xOQpkaWZmIC11IC1y
MS4xOSBzcGFjZS5jcHAKLS0tIG9kZS9zcmMvc3BhY2UuY3BwCTIwMDIvMDYvMjUgMjM6NDY6MTkJ
MS4xOQorKysgb2RlL3NyYy9zcGFjZS5jcHAJMjAwMi8wOC8wNiAwOTo1NDozMwpAQCAtNzEsNiAr
NzEsMTEgQEAKICAgdmlydHVhbCB2b2lkIHJlbW92ZSAoZEdlb21JRCk9MDsKICAgdmlydHVhbCB2
b2lkIGNvbGxpZGUgKHZvaWQgKmRhdGEsIGROZWFyQ2FsbGJhY2sgKmNhbGxiYWNrKT0wOwogICB2
aXJ0dWFsIGludCBxdWVyeSAoZEdlb21JRCk9MDsKKworICB2aXJ0dWFsIHZvaWQgbG9jayhib29s
IG5ld3J1bGUpPTA7CisgIHZpcnR1YWwgdm9pZCBjb2xsaWRlZ2VvbSAoZHhHZW9tKiBnMSwgdm9p
ZCAqZGF0YSwgZE5lYXJDYWxsYmFjayAqY2FsbGJhY2spPTA7CisgIHZpcnR1YWwgdm9pZCB1bmxv
Y2soYm9vbCBuZXdydWxlKT0wOworICB2aXJ0dWFsIGludCBsb2NrZWQoKT0wOwogfTsKIAogI2Rl
ZmluZSBUWVBFX1NJTVBMRSAweGJhZApAQCAtMTE1LDExICsxMjAsMjAgQEAKIAogc3RydWN0IGR4
U2ltcGxlU3BhY2UgOiBw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