Skip to content

Commit 16cd348

Browse files
committed
fixed referencing comments
1 parent 8d5940c commit 16cd348

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

revxml/src/cxml.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
1717
#include <libxml/xmlmemory.h>
1818
#include <libxml/parser.h>
1919
#include <libxml/HTMLparser.h>
20-
// MDW-2013-07-09: [[ xpath context ]]
20+
// MDW-2013-07-09: [[ xpath ]]
2121
#include <libxml/xpath.h>
2222

2323
#include <errno.h>
@@ -74,7 +74,7 @@ void Write(char **data, int *length,Bool isformatted);
7474
Bool GetElementByPath(CXMLElement *telement, char *tpath);
7575
Bool GetRootElement(CXMLElement *telement);
7676
xmlDocPtr GetDocPtr() {return doc;}
77-
// MDW-2013-07-09: [[ set and return xpath context ]]
77+
// MDW-2013-07-09: [[ xpath ]]
7878
xmlXPathContextPtr GetXPathContext() {return xpathContext;}
7979
void SetXPathContext(xmlXPathContextPtr ctx) {xpathContext=ctx;}
8080
Bool AddDTD(char *data, unsigned long tlength);
@@ -98,7 +98,7 @@ static unsigned int idcounter;
9898
unsigned int id;
9999
static char errorbuf[256];
100100
xmlDocPtr doc;
101-
// MDW-2013-07-09: [[ xpath context ]]
101+
// MDW-2013-07-09: [[ xpath ]]
102102
xmlXPathContextPtr xpathContext;
103103
};
104104

revxml/src/revxml.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class XMLDocumentList
152152
VXMLDocList::iterator theIterator;
153153
for (theIterator = doclist.begin(); theIterator != doclist.end(); theIterator++){
154154
CXMLDocument *curobject = (CXMLDocument *)(*theIterator);
155-
// MDW-2013-07-09: [[ free xpath context ]]
155+
// MDW-2013-07-09: [[ xpath ]]
156156
xmlXPathFreeContext(curobject->GetXPathContext());
157157
delete curobject;
158158
}
@@ -216,7 +216,7 @@ void DispatchMetaCardMessage(char *messagename,char *tmessage)
216216
int retvalue = 0;
217217
SetGlobal("xmlvariable",tmessage,&retvalue);
218218
char mcmessage[256];
219-
// MDW-2013-07-09: [[ reference to extvariable should be to xmlvariable ]]
219+
// MDW-2013-07-09: [[ xpath ]]
220220
sprintf(mcmessage,"global xmlvariable;try;send \"%s xmlvariable\" to current card of stack the topstack;catch errno;end try;put 0 into xmlvariable",messagename);
221221
SendCardMessage(mcmessage, &retvalue);
222222
}
@@ -313,7 +313,7 @@ extern char *strlwr(char *str);
313313
#endif
314314

315315

316-
// MDW-2013-06-22: [[ update the version string as necessary ]]
316+
// MDW-2013-06-22: [[ xpath ]]
317317
#define REVXML_VERSIONSTRING "6.2.0"
318318

319319
void REVXML_Version(char *args[], int nargs, char **retstring,
@@ -2164,7 +2164,7 @@ void XML_FindElementByAttributeValue(char *args[], int nargs, char **retstring,
21642164
*retstring = (result != NULL ? result : (char *)calloc(1,1));
21652165
}
21662166

2167-
// MDW-2013-06-22: [[ XPath functions ]]
2167+
// MDW-2013-06-22: [[ xpath ]]
21682168

21692169
static xmlNodeSetPtr XML_Object_to_NodeSet(xmlXPathObjectPtr object)
21702170
{
@@ -2426,8 +2426,9 @@ EXTERNAL_BEGIN_DECLARATIONS("revXML")
24262426
EXTERNAL_DECLARE_FUNCTION("revXMLAttributes", XML_ListOfAttributes)
24272427
EXTERNAL_DECLARE_FUNCTION("revXMLMatchingNode", XML_FindElementByAttributeValue)
24282428
EXTERNAL_DECLARE_FUNCTION("revXMLAttributeValues", XML_ListByAttributeValue)
2429-
// MDW-2013-06-22: [[ declared preferred synonyms for consistency and sanity
2430-
// propose deprecating the old keywords ]]
2429+
// MDW-2013-06-22: [[ xpath ]]
2430+
// declared preferred synonyms for consistency and sanity
2431+
// propose deprecating the old keywords
24312432
EXTERNAL_DECLARE_FUNCTION("revXMLCreateTree", XML_NewDocumentNS)
24322433
EXTERNAL_DECLARE_FUNCTION("revXMLCreateTreeWithNamespaces", XML_NewDocumentNNS)
24332434
EXTERNAL_DECLARE_FUNCTION("revXMLCreateTreeFromFile", XML_NewDocumentFromFileNS)
@@ -2445,7 +2446,7 @@ EXTERNAL_BEGIN_DECLARATIONS("revXML")
24452446
EXTERNAL_DECLARE_COMMAND("revXMLPutIntoNode", XML_SetElementContents)
24462447
EXTERNAL_DECLARE_COMMAND("revXMLSetAttribute", XML_SetAttributeValue)
24472448

2448-
// MDW-2013-06-22: [[ XPath functions ]]
2449+
// MDW-2013-06-22: [[ xpath ]]
24492450
EXTERNAL_DECLARE_FUNCTION("revXMLEvaluateXPath", XML_EvalXPath)
24502451
EXTERNAL_DECLARE_FUNCTION("revXMLDataFromXPathQuery", XML_XPathDataFromQuery)
24512452
EXTERNAL_END_DECLARATIONS

revxml/src/xmlattribute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Bool CXMLAttribute::GoNext()
3434
Bool CXMLAttribute::GoPrev()
3535
{
3636
if (!isinited()) return False;
37-
// MDW-2013-07-09: [[ fixed: was attribute->next ]]
37+
// MDW-2013-07-09: [[ xpath ]]
3838
Bool retval = attribute->prev != NULL;
3939
if (attribute->prev) attribute = attribute->prev;
4040
return retval;

revxml/src/xmlelement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ int CXMLElement::ChildCount(char *childname, int maxdepth)
664664
/*AttributeCount - returns total count of attributes.
665665
attributename - filter by attributename. NULL to count any attribute.
666666
*/
667-
// MDW-2013-07-09: [[ fixed: was always returning zero ]]
667+
// MDW-2013-07-09: [[ xpath ]]
668668
int CXMLElement::AttributeCount(char *attributename)
669669
{
670670
if (!isinited()) return 0;

0 commit comments

Comments
 (0)