Skip to content

Commit c54b352

Browse files
committed
CHANGE: replaced port/locals with port/extra
1 parent c6efa2a commit c54b352

8 files changed

+92
-92
lines changed

src/boot/sysobj.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ standard: object [
247247
actor: ; port action handler (script driven)
248248
awake: ; port awake function (event driven)
249249
state: ; internal state values (private)
250+
extra: ; user-defined storage of local data
250251
data: ; data buffer (usually binary or block)
251-
locals: ; user-defined storage of local data
252252
; stats: ; stats on operation (optional)
253253
]
254254

src/core/p-checksum.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
***********************************************************************/
134134
{
135135
//REBVAL *data = BLK_SKIP(port, STD_PORT_DATA);
136-
REBVAL *ctx = BLK_SKIP(port, STD_PORT_LOCALS);
136+
REBVAL *ctx = BLK_SKIP(port, STD_PORT_EXTRA);
137137

138138
if(!IS_BINARY(ctx)) {
139139
SET_BINARY(ctx, Make_Binary(ctx_size));
@@ -224,7 +224,7 @@
224224
req = Use_Port_State(port, RDI_CHECKSUM, sizeof(REBREQ));
225225

226226
data = BLK_SKIP(port, STD_PORT_DATA); //will hold result
227-
ctx = BLK_SKIP(port, STD_PORT_LOCALS);
227+
ctx = BLK_SKIP(port, STD_PORT_EXTRA);
228228
int ctx_size = 0, blk_size = 0;
229229

230230
Init_sizes(method, &blk_size, &ctx_size);

src/mezz/prot-http.reb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
REBOL [
22
System: "REBOL [R3] Language Interpreter and Run-time Environment"
3-
Title: "REBOL 3 HTTP protocol scheme"
3+
Title: "Rebol3 HTTP protocol scheme"
44
Name: http
55
Type: module
66
Rights: {
@@ -141,7 +141,7 @@ read-sync-awake: func [event [event!] /local error][
141141
]
142142
http-awake: func [event /local port http-port state awake res][
143143
port: event/port
144-
http-port: port/locals
144+
http-port: port/extra
145145
state: http-port/state
146146
if any-function? :http-port/awake [state/awake: :http-port/awake]
147147
awake: :state/awake
@@ -792,7 +792,7 @@ sys/make-scheme [
792792
]
793793

794794
conn/awake: :http-awake
795-
conn/locals: port
795+
conn/extra: port
796796
sys/log/info 'HTTP ["Opening connection:^[[22m" conn/spec/ref]
797797
open conn
798798

0 commit comments

Comments
 (0)