|
3 | 3 | ** REBOL [R3] Language Interpreter and Run-time Environment
|
4 | 4 | **
|
5 | 5 | ** Copyright 2013 REBOL Technologies
|
| 6 | +** Copyright 2013-2023 Rebol Open Source Developers |
6 | 7 | ** REBOL is a trademark of REBOL Technologies
|
7 | 8 | **
|
8 | 9 | ** Licensed under the Apache License, Version 2.0 (the "License");
|
|
22 | 23 | ** Module: p-serial.c
|
23 | 24 | ** Summary: serial port interface
|
24 | 25 | ** Section: ports
|
25 |
| -** Author: Carl Sassenrath |
| 26 | +** Author: Carl Sassenrath, Joshua Shireman, Shixin Zeng, Oldes |
26 | 27 | ** Notes:
|
27 | 28 | **
|
28 | 29 | ***********************************************************************/
|
|
35 | 36 |
|
36 | 37 | /***********************************************************************
|
37 | 38 | **
|
38 |
| -*/ static int Serial_Actor(REBVAL *ds, REBSER *port, REBCNT action) |
| 39 | +*/ static int Serial_Actor(REBVAL *ds, REBVAL *port_value, REBCNT action) |
39 | 40 | /*
|
40 | 41 | ***********************************************************************/
|
41 | 42 | {
|
|
48 | 49 | REBCNT len; // generic length
|
49 | 50 | REBSER *ser; // simplifier
|
50 | 51 | REBVAL *path;
|
| 52 | + REBSER *port; |
51 | 53 |
|
52 |
| - Validate_Port(port, action); |
| 54 | + port = Validate_Port_Value(port_value); |
53 | 55 |
|
54 | 56 | *D_RET = *D_ARG(1);
|
55 | 57 |
|
|
69 | 71 | switch (action) {
|
70 | 72 |
|
71 | 73 | case A_OPEN:
|
72 |
| - arg = Obj_Value(spec, STD_PORT_SPEC_SERIAL_PATH); //Should Obj_Value really return a char* ? |
| 74 | + arg = Obj_Value(spec, STD_PORT_SPEC_SERIAL_REF); //Should Obj_Value really return a char* ? |
73 | 75 | if (! (IS_FILE(arg) || IS_STRING(arg) || IS_BINARY(arg))) {
|
74 | 76 | Trap1(RE_INVALID_PORT_ARG, arg);
|
75 | 77 | }
|
|
0 commit comments