VirtualBox

Changeset 32229 in vbox


Ignore:
Timestamp:
Sep 3, 2010 7:38:52 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
65538
Message:

libs/xpcom: shut up a bunch of annoying warnings

Location:
trunk/src/libs/xpcom18a4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/java/Makefile.kmk

    r31403 r32229  
    113113#
    114114$(VBOX_JXPCOM_GENH): $$(VBOX_JXPCOM_JAR)
     115        $(call MSG_L1,Generating $@ from $<)
    115116        $(QUIET)$(VBOX_JAVAH) -classpath $(VBOX_JXPCOM_JDEST) -d $(VBOX_JXPCOM_JDEST) \
    116117                org.mozilla.xpcom.internal.XPCOMImpl \
     
    125126#
    126127$(VBOX_JXPCOM_NSERROR): $(VBOX_PATH_XPCOM_SRC)/xpcom/base/nsError.h $(VBOX_JXPCOM_SRC)/tools/gen-nsError.pl | $(VBOX_JXPCOM_GEN)/java/
    127         perl $(VBOX_JXPCOM_SRC)/tools/gen-nsError.pl < $< > $@
     128        $(call MSG_L1,Generating $@)
     129        $(QUIET)perl $(VBOX_JXPCOM_SRC)/tools/gen-nsError.pl < $< > $@
    128130
    129131ifndef VBOX_WITH_JAVA_SUPPORT_IN_XPIDL
     
    137139               $(VBOX_JXPCOM_SRC)/tools/genjifaces.xsl \
    138140               | $(VBOX_JXPCOM_GEN)/java/interfaces/
    139         $(QUIET)echo Generating Java interface files
     141        $(call MSG_L1,Generating Java interface files)
    140142        $(QUIET)$(RM) -f $(wildcard $(VBOX_JXPCOM_GEN)/java/interfaces/*.java)
    141143        $(QUIET)$(VBOX_XSLTPROC)   \
  • trunk/src/libs/xpcom18a4/python/src/PyXPCOM.h

    r16903 r32229  
    7979// unfortunatelly, if SOLARIS is defined Python porting layer
    8080// defines gethostname() in invalid fashion what kills compilation
    81 #ifdef SOLARIS
    82 #undef SOLARIS
    83 #define SOLARIS_WAS_DEFINED
    84 #endif
     81# ifdef SOLARIS
     82#  undef SOLARIS
     83#  define SOLARIS_WAS_DEFINED
     84# endif
     85
     86// Python.h/pyconfig.h redefines _XOPEN_SOURCE on some hosts
     87# ifdef _XOPEN_SOURCE
     88#  define VBOX_XOPEN_SOURCE_DEFINED _XOPEN_SOURCE
     89#  undef _XOPEN_SOURCE
     90# endif
     91
     92#endif /* VBOX_PYXPCOM */
    8593
    8694#include <Python.h>
    8795
    88 #ifdef SOLARIS_WAS_DEFINED
    89 #define SOLARIS
    90 #undef SOLARIS_WAS_DEFINED
    91 #endif
    92 
    9396#ifdef VBOX_PYXPCOM
    94 #if (PY_VERSION_HEX <= 0x02040000)
    95 // although in more recent versions of Python this type is ssize_t, earlier
     97
     98# ifdef SOLARIS_WAS_DEFINED
     99#  define SOLARIS
     100#  undef SOLARIS_WAS_DEFINED
     101# endif
     102
     103// restore the old value of _XOPEN_SOURCE if not defined by Python.h/pyconfig.h
     104# if !defined(_XOPEN_SOURCE) && defined(VBOX_XOPEN_SOURCE_DEFINED)
     105#  define _XOPEN_SOURCE VBOX_XOPEN_SOURCE_DEFINED
     106# endif
     107# undef VBOX_XOPEN_SOURCE_DEFINED
     108
     109# if (PY_VERSION_HEX <= 0x02040000)
     110// although in more recent versions of Python this type is ssize_t, earlier
    96111// it was used as int
    97112typedef int Py_ssize_t;
    98 #endif
    99 
    100 #else
    101 
    102 #include <Python.h>
    103 
    104 #endif
    105 
    106 #if (PY_VERSION_HEX <= 0x02030000)
     113# endif
     114
     115# if (PY_VERSION_HEX <= 0x02030000)
    107116// this one not defined before
    108117inline PyObject *PyBool_FromLong(long ok)
     
    116125   return result;
    117126}
    118 #endif
    119 
    120 #endif
     127# endif
     128
     129#endif /* VBOX_PYXPCOM */
    121130
    122131#ifdef BUILD_PYXPCOM
  • trunk/src/libs/xpcom18a4/python/src/VariantUtils.cpp

    r28953 r32229  
    366366                memcpy(pthis, PyString_AS_STRING(sequence_ob), sequence_size);
    367367                if (release_seq)
     368                {
    368369                        Py_DECREF(sequence_ob);
     370                }
    369371                return PR_TRUE;
    370372        }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette