Browse Source

Merge various fixes from branch 'release/1.9.x'

Conflicts:
	panda/src/gobj/texture.cxx
rdb 10 years ago
parent
commit
ab1c516ebc

+ 6 - 1
direct/src/directscripts/extract_docs.py

@@ -203,6 +203,11 @@ def processType(handle, type):
             if docstring:
             if docstring:
                 print >>handle, docstring
                 print >>handle, docstring
             print >>handle, interrogate_type_enum_value_name(type, i_value), "=", interrogate_type_enum_value(type, i_value), ","
             print >>handle, interrogate_type_enum_value_name(type, i_value), "=", interrogate_type_enum_value(type, i_value), ","
+
+    elif interrogate_type_is_typedef(type):
+        wrapped_type = translated_type_name(interrogate_type_wrapped_type(type))
+        print >>handle, "typedef %s %s;" % (wrapped_type, typename)
+        return
     else:
     else:
         if interrogate_type_is_struct(type):
         if interrogate_type_is_struct(type):
             classtype = "struct"
             classtype = "struct"
@@ -211,7 +216,7 @@ def processType(handle, type):
         elif interrogate_type_is_union(type):
         elif interrogate_type_is_union(type):
             classtype = "union"
             classtype = "union"
         else:
         else:
-            print "I don't know what type %s is" % typename
+            print "I don't know what type %s is" % interrogate_type_true_name(type)
             return
             return
         
         
         if len(derivations) > 0:
         if len(derivations) > 0:

File diff suppressed because it is too large
+ 237 - 236
dtool/metalibs/dtoolconfig/pydtool.cxx


+ 1 - 1
dtool/src/interrogate/interfaceMakerPythonNative.cxx

@@ -2636,7 +2636,7 @@ write_module_class(ostream &out, Object *obj) {
     write_function_slot(out, 2, slots, "bf_getsegcount");
     write_function_slot(out, 2, slots, "bf_getsegcount");
     write_function_slot(out, 2, slots, "bf_getcharbuffer");
     write_function_slot(out, 2, slots, "bf_getcharbuffer");
     out << "#endif\n";
     out << "#endif\n";
-    out << "#if PY_MAJOR_VERSION >= 0x02060000\n";
+    out << "#if PY_VERSION_HEX >= 0x02060000\n";
     write_function_slot(out, 2, slots, "bf_getbuffer");
     write_function_slot(out, 2, slots, "bf_getbuffer");
     write_function_slot(out, 2, slots, "bf_releasebuffer");
     write_function_slot(out, 2, slots, "bf_releasebuffer");
     out << "#endif\n";
     out << "#endif\n";

Some files were not shown because too many files changed in this diff