From de527e38914d4e31ef4264bc7da475c6c6c4385f Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 7 Jul 2008 10:23:24 +0000 Subject: [PATCH] rename attributes write/read to writable/readable (The original names where chosen to match the SGPropertyNode::WRITE/READ symbol names and should make it more consistent, but this isn't really something that should be exposed to the Nasal developer.) --- src/Scripting/nasal-props.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 0ff80e764..6e6190047 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -87,8 +87,8 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args) else if(!strcmp(a, "references")) return naNum(node->getNumRefs()); else if(!strcmp(a, "tied")) return naNum((*node)->isTied()); else if(!strcmp(a, "alias")) return naNum((*node)->isAlias()); - else if(!strcmp(a, "read")) attr = SGPropertyNode::READ; - else if(!strcmp(a, "write")) attr = SGPropertyNode::WRITE; + else if(!strcmp(a, "readable")) attr = SGPropertyNode::READ; + else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE; else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE; else if(!strcmp(a, "trace-read")) attr = SGPropertyNode::TRACE_READ; else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE; @@ -112,8 +112,8 @@ static naRef f_setAttribute(naContext c, naRef me, int argc, naRef* args) SGPropertyNode::Attribute attr; char *a = naStr_data(val); if(!a) a = ""; - if(!strcmp(a, "read")) attr = SGPropertyNode::READ; - else if(!strcmp(a, "write")) attr = SGPropertyNode::WRITE; + if(!strcmp(a, "readable")) attr = SGPropertyNode::READ; + else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE; else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE; else if(!strcmp(a, "trace-read")) attr = SGPropertyNode::TRACE_READ; else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE;