Skip to content

Commit

Permalink
CHANGE: replaced port/locals with port/extra
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Feb 8, 2022
1 parent c6efa2a commit c54b352
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 92 deletions.
2 changes: 1 addition & 1 deletion src/boot/sysobj.reb
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ standard: object [
actor: ; port action handler (script driven)
awake: ; port awake function (event driven)
state: ; internal state values (private)
extra: ; user-defined storage of local data
data: ; data buffer (usually binary or block)
locals: ; user-defined storage of local data
; stats: ; stats on operation (optional)
]

Expand Down
4 changes: 2 additions & 2 deletions src/core/p-checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
***********************************************************************/
{
//REBVAL *data = BLK_SKIP(port, STD_PORT_DATA);
REBVAL *ctx = BLK_SKIP(port, STD_PORT_LOCALS);
REBVAL *ctx = BLK_SKIP(port, STD_PORT_EXTRA);

if(!IS_BINARY(ctx)) {
SET_BINARY(ctx, Make_Binary(ctx_size));
Expand Down Expand Up @@ -224,7 +224,7 @@
req = Use_Port_State(port, RDI_CHECKSUM, sizeof(REBREQ));

data = BLK_SKIP(port, STD_PORT_DATA); //will hold result
ctx = BLK_SKIP(port, STD_PORT_LOCALS);
ctx = BLK_SKIP(port, STD_PORT_EXTRA);
int ctx_size = 0, blk_size = 0;

Init_sizes(method, &blk_size, &ctx_size);
Expand Down
6 changes: 3 additions & 3 deletions src/mezz/prot-http.reb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
REBOL [
System: "REBOL [R3] Language Interpreter and Run-time Environment"
Title: "REBOL 3 HTTP protocol scheme"
Title: "Rebol3 HTTP protocol scheme"
Name: http
Type: module
Rights: {
Expand Down Expand Up @@ -141,7 +141,7 @@ read-sync-awake: func [event [event!] /local error][
]
http-awake: func [event /local port http-port state awake res][
port: event/port
http-port: port/locals
http-port: port/extra
state: http-port/state
if any-function? :http-port/awake [state/awake: :http-port/awake]
awake: :state/awake
Expand Down Expand Up @@ -792,7 +792,7 @@ sys/make-scheme [
]

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

Expand Down
Loading

0 comments on commit c54b352

Please sign in to comment.