diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 10:44:13 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-11-19 10:44:13 -0300 |
commit | fd5ee87c24ed34baad0b541b1e100c6bf067fb92 (patch) | |
tree | 54a9e3ff765a721c360cdb65a767f15b75931029 /tools | |
parent | d3eb9e8c54d4a93b2bed90a5988f9814377d409f (diff) | |
parent | 83316bcc9ce6a07d11cc85cfe86bb7221c9a5d90 (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts:
platform/windows/export/export.h
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/doc_data.cpp | 2 | ||||
-rw-r--r-- | tools/docdump/makehtml.py | 19 | ||||
-rw-r--r-- | tools/pe_bliss/SCsub | 1 | ||||
-rw-r--r-- | tools/pe_bliss/pe_section.cpp | 1 |
4 files changed, 20 insertions, 3 deletions
diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp index 432f358627..c1d3e5e314 100644 --- a/tools/doc/doc_data.cpp +++ b/tools/doc/doc_data.cpp @@ -189,9 +189,11 @@ void DocData::generate(bool p_basic_types) { arginfo=E->get().return_val; if (arginfo.type==Variant::NIL) continue; +#ifdef DEBUG_METHODS_ENABLED if (m && m->get_return_type()!=StringName()) method.return_type=m->get_return_type(); else +#endif method.return_type=(arginfo.hint==PROPERTY_HINT_RESOURCE_TYPE)?arginfo.hint_string:Variant::get_type_name(arginfo.type); } else { diff --git a/tools/docdump/makehtml.py b/tools/docdump/makehtml.py index d533ca1b8b..9b9c62f33b 100644 --- a/tools/docdump/makehtml.py +++ b/tools/docdump/makehtml.py @@ -1,5 +1,19 @@ import sys import xml.etree.ElementTree as ET +from xml.sax.saxutils import escape, unescape + +html_escape_table = { + '"': """, + "'": "'" +} + +html_unescape_table = {v:k for k, v in html_escape_table.items()} + +def html_escape(text): + return escape(text, html_escape_table) + +def html_unescape(text): + return unescape(text, html_unescape_table) input_list = [] @@ -96,7 +110,7 @@ def make_html_class_list(class_list,columns): idx=0 for n in class_list: - col = idx/col_max + col = int(idx/col_max) if (col>=columns): col=columns-1 fit_columns[col]+=[n] @@ -299,6 +313,7 @@ def make_type(p_type,p_parent): def make_text_def(class_name,parent,text): + text = html_escape(text) pos=0 while(True): pos = text.find("[",pos) @@ -598,7 +613,6 @@ def make_html_class(node): descr=node.find("description") if (descr!=None and descr.text.strip()!=""): - h4=ET.SubElement(div,"h4") h4.text="Description:" @@ -644,7 +658,6 @@ def make_html_class(node): class_names=[] classes={} - for file in input_list: tree = ET.parse(file) doc=tree.getroot() diff --git a/tools/pe_bliss/SCsub b/tools/pe_bliss/SCsub index 34524f10ef..8173769c39 100644 --- a/tools/pe_bliss/SCsub +++ b/tools/pe_bliss/SCsub @@ -1,5 +1,6 @@ Import('env') env.add_source_files(env.tool_sources,"*.cpp") +env.Append(LIBS=["iconv"]) Export('env') diff --git a/tools/pe_bliss/pe_section.cpp b/tools/pe_bliss/pe_section.cpp index 7aed5e2c26..72127e22e2 100644 --- a/tools/pe_bliss/pe_section.cpp +++ b/tools/pe_bliss/pe_section.cpp @@ -19,6 +19,7 @@ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ +#include <algorithm> #include <string.h> #include "utils.h" #include "pe_section.h" |