File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ protect: native [
226
226
/words "Process list as words (and path words)"
227
227
/values "Process list of values (implied GET)"
228
228
/hide "Hide variables (avoid binding and lookup)"
229
- /permanently "Protect permanently (unprotect will fail)"
229
+ /lock "Protect permanently (unprotect will fail)"
230
230
]
231
231
232
232
unprotect: native [
Original file line number Diff line number Diff line change 38
38
PROT_HIDE ,
39
39
PROT_WORD ,
40
40
PROT_WORDS ,
41
- PROT_PERMANENTLY
41
+ PROT_LOCK
42
42
};
43
43
44
44
@@ -109,7 +109,7 @@ enum {
109
109
110
110
if (GET_FLAG (flags , PROT_SET )) {
111
111
PROTECT_SERIES (series );
112
- if (GET_FLAG (flags , PROT_PERMANENTLY )) LOCK_SERIES (series );
112
+ if (GET_FLAG (flags , PROT_LOCK )) LOCK_SERIES (series );
113
113
}
114
114
else
115
115
//unprotect series only when not locked (using protect/permanently)
@@ -143,7 +143,7 @@ enum {
143
143
// protecting...
144
144
if (!GET_FLAG (flags , PROT_WORDS )) {
145
145
PROTECT_SERIES (series );
146
- if (GET_FLAG (flags , PROT_PERMANENTLY ))
146
+ if (GET_FLAG (flags , PROT_LOCK ))
147
147
LOCK_SERIES (series );
148
148
}
149
149
} else {
@@ -222,7 +222,7 @@ enum {
222
222
if (D_REF (5 )) SET_FLAG (flags , PROT_HIDE );
223
223
else SET_FLAG (flags , PROT_WORD ); // there is no unhide
224
224
225
- if (D_REF (6 )) SET_FLAG (flags , PROT_PERMANENTLY );
225
+ if (D_REF (6 )) SET_FLAG (flags , PROT_LOCK );
226
226
227
227
if (IS_WORD (val ) || IS_PATH (val )) {
228
228
Protect_Word_Value (val , flags ); // will unmark if deep
You can’t perform that action at this time.
0 commit comments