From: Jerome St-Louis Date: Wed, 24 Feb 2016 20:30:08 +0000 (-0500) Subject: ecere/JSON;eCON: Splitting WriteJSONObject / WriteECONObject X-Git-Tag: 0.44.15~147 X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=e61aa66f20117fdc3df44d54b35d655d6fc433cf ecere/JSON;eCON: Splitting WriteJSONObject / WriteECONObject - Avoids changing WriteJSONObject() API and makes more sense --- diff --git a/documentor/src/Documentor.ec b/documentor/src/Documentor.ec index f9dd351..0b7bb5e 100644 --- a/documentor/src/Documentor.ec +++ b/documentor/src/Documentor.ec @@ -3008,9 +3008,9 @@ class HelpView : HTMLView if(f) { if(cl) - WriteJSONObject(f, class(ClassDoc), clDoc, 0, true); + WriteECONObject(f, class(ClassDoc), clDoc, 0); else - WriteJSONObject(f, class(NamespaceDoc), nsDoc, 0, true); + WriteECONObject(f, class(NamespaceDoc), nsDoc, 0); delete f; } else diff --git a/documentor/tools/ear-to-econ-ecdoc.ec b/documentor/tools/ear-to-econ-ecdoc.ec index 8921ea2..80d0eb5 100644 --- a/documentor/tools/ear-to-econ-ecdoc.ec +++ b/documentor/tools/ear-to-econ-ecdoc.ec @@ -415,7 +415,7 @@ static void writeNamespaceDocFile(NamespaceDoc namespaceDoc, const char * path) f = FileOpen(filePath, write); if(f) { - WriteJSONObject(f, class(NamespaceDoc), namespaceDoc, 0, true); + WriteECONObject(f, class(NamespaceDoc), namespaceDoc, 0); delete f; } else @@ -440,7 +440,7 @@ static void writeClassDocFile(ClassDoc classDoc, const char * path) f = FileOpen(filePath, write); if(f) { - WriteJSONObject(f, class(ClassDoc), classDoc, 0, true); + WriteECONObject(f, class(ClassDoc), classDoc, 0); delete f; } else diff --git a/ecere/src/sys/JSON.ec b/ecere/src/sys/JSON.ec index abb949a..8310d1e 100644 --- a/ecere/src/sys/JSON.ec +++ b/ecere/src/sys/JSON.ec @@ -1115,7 +1115,7 @@ public: } } -bool WriteMap(File f, Class type, Map map, int indent, bool eCON) +static bool WriteMap(File f, Class type, Map map, int indent, bool eCON) { if(map) { @@ -1134,7 +1134,7 @@ bool WriteMap(File f, Class type, Map map, int indent, bool eCON) else isFirst = false; for(i = 0; i