Changeset 108336 in vbox
- Timestamp:
- Feb 23, 2025 8:14:28 PM (8 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167690
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Config.kmk
r106683 r108336 212 212 # Template for building XPCOM executables for running at build time. 213 213 # 214 # It extends the BLDPROG template in config.kmk but overrides CFLAGS215 # and CXXFLAGS completely at the moment.216 #217 214 TEMPLATE_XPComBldProg = XPCOM Build programs executables 218 215 TEMPLATE_XPComBldProg_EXTENDS = VBoxAdvBldProg … … 227 224 $(VBOX_PATH_SDK)/bindings/xpcom/include/xpcom \ 228 225 $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd 229 TEMPLATE_XPComBldProg_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxAdvBldProg_CFLAGS)) \230 $(VBOX_GCC_Wno-int-to-pointer-cast) $(VBOX_GCC_Wno-pointer-to-int-cast) $(VBOX_GCC_NON_PEDANTIC_C)231 TEMPLATE_XPComBldProg_CXXFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-common -fno-rtti232 TEMPLATE_XPComBldProg_CXXFLAGS.solaris = $(TEMPLATE_VBoxAdvBldProg_CXXFLAGS.solaris) -fno-omit-frame-pointer # for now anyway.233 TEMPLATE_XPComBldProg_LDFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions234 226 TEMPLATE_XPComBldProg_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) 235 227 TEMPLATE_XPComBldProg_LATE_LIBS.darwin = \ -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl.c
r108321 r108336 85 85 xpidl_usage(int argc, char *argv[]) 86 86 { 87 int i;87 RT_NOREF(argc); 88 88 fprintf(stderr, xpidl_usage_str, argv[0]); 89 for (i = 0; modes[i].mode; i++) {89 for (int i = 0; modes[i].mode; i++) { 90 90 fprintf(stderr, " %-12s %-30s (.%s)\n", modes[i].mode, 91 91 modes[i].modeInfo, modes[i].suffix); -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_header.c
r108334 r108336 694 694 { 695 695 write_indent(pFile); 696 intrc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/);696 rc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/); 697 697 if (RT_FAILURE(rc)) 698 698 FAIL; … … 752 752 { 753 753 write_indent(pFile); 754 intrc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/);754 rc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/); 755 755 if (RT_FAILURE(rc)) 756 756 FAIL; … … 776 776 case kXpidlNdType_Method: 777 777 write_indent(pFile); 778 intrc = write_method_signature(pIt, pFile, true /*fDecl*/);778 rc = write_method_signature(pIt, pFile, true /*fDecl*/); 779 779 if (RT_FAILURE(rc)) 780 780 FAIL; … … 823 823 { 824 824 write_indent(pFile); 825 intrc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/);825 rc = xpidlHdrWriteAttrAccessor(pIt, pFile, true, true /*fDecl*/); 826 826 if (RT_FAILURE(rc)) 827 827 FAIL; … … 847 847 case kXpidlNdType_Method: 848 848 write_indent(pFile); 849 intrc = write_method_signature(pIt, pFile, true /*fDecl*/);849 rc = write_method_signature(pIt, pFile, true /*fDecl*/); 850 850 if (RT_FAILURE(rc)) 851 851 FAIL; -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_idl.c
r108334 r108336 240 240 static int xpidlParseError(PXPIDLPARSE pThis, PXPIDLINPUT pInput, PCRTSCRIPTLEXTOKEN pTok, int rc, const char *pszFmt, ...) 241 241 { 242 RT_NOREF(pInput); 243 242 244 va_list Args; 243 245 va_start(Args, pszFmt); … … 394 396 395 397 if ( pTok->enmType == RTSCRIPTLEXTOKTYPE_PUNCTUATOR 396 && pTok->Type.Keyword.pKeyword->u64Val == chPunctuator)398 && (char)pTok->Type.Keyword.pKeyword->u64Val == chPunctuator) 397 399 { 398 400 RTScriptLexConsumeToken(pInput->hIdlLex); … … 954 956 { 955 957 PCRTSCRIPTLEXTOKEN pTok; 956 intrc = RTScriptLexQueryToken(pInput->hIdlLex, &pTok);958 rc = RTScriptLexQueryToken(pInput->hIdlLex, &pTok); 957 959 if (RT_FAILURE(rc)) 958 960 return xpidlParseError(pThis, pInput, NULL, rc, "Lexer: Failed to query punctuator token with %Rrc", rc); -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpidl/xpidl_typelib.c
r108333 r108336 365 365 { 366 366 XPTInterfaceDirectoryEntry *ide; 367 int i;368 367 369 368 /* boy, I sure hope qsort works correctly everywhere */ 370 369 #ifdef DEBUG_shaver_sort 371 370 fputs("before sort:\n", stderr); 372 for ( i = 0; i < IFACES(pThis); i++) {371 for (uint16_t i = 0; i < IFACES(pThis); i++) { 373 372 fputs(" ", stderr); 374 373 print_IID(&HEADER(pThis)->interface_directory[i].iid, stderr); … … 380 379 #ifdef DEBUG_shaver_sort 381 380 fputs("after sort:\n", stderr); 382 for ( i = 0; i < IFACES(pThis); i++) {381 for (uint16_t i = 0; i < IFACES(pThis); i++) { 383 382 fputs(" ", stderr); 384 383 print_IID(&HEADER(pThis)->interface_directory[i].iid, stderr); … … 557 556 if (pNdType->enmType == kXpidlNdType_Parameter) 558 557 { 559 const char *size_is;560 const char *length_is;561 562 558 /* only if size_is is found does any of this matter */ 563 559 PCXPIDLATTR pAttr = xpidlNodeAttrFind(pNdType, "size_is"); … … 1159 1155 interface_flags |= XPT_ID_FUNCTION; 1160 1156 1161 uint16_t u16Id = 0;1162 1157 ide = FindInterfaceByName(HEADER(pThis)->interface_directory, 1163 1158 HEADER(pThis)->num_interfaces, name, -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/src/xpt_arena.c
r102334 r108336 95 95 #define LOG_MALLOC(_a, _req, _used) ((void)0) 96 96 #define LOG_REAL_MALLOC(_a, _size) ((void)0) 97 #define LOG_FREE(_a) ((void)0)97 #define LOG_FREE(_a) RT_NOREF(_a) 98 98 99 99 #define LOG_DONE_LOADING(_a) ((void)0) 100 #define PRINT_STATS(_a) ((void)0)100 #define PRINT_STATS(_a) RT_NOREF(_a) 101 101 102 102 #endif /* XPT_ARENA_LOGGING */ … … 290 290 LOG_DONE_LOADING(arena); 291 291 } 292 #else 293 RT_NOREF(arena); 292 294 #endif 293 295 } … … 296 298 XPT_ArenaFree(XPTArena *arena, void *block) 297 299 { 300 RT_NOREF(block); 298 301 LOG_FREE(arena); 299 302 } -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/src/xpt_struct.c
r104489 r108336 798 798 XPTTypeDescriptor *type) 799 799 { 800 RT_NOREF(arena); 801 800 802 pd->flags = flags & XPT_PD_FLAGMASK; 801 803 XPT_COPY_TYPE(pd->type, *type); … … 817 819 DoTypeDescriptorPrefix(XPTArena *arena, XPTCursor *cursor, XPTTypeDescriptorPrefix *tdp) 818 820 { 821 RT_NOREF(arena); 819 822 return XPT_Do8(cursor, &tdp->flags); 820 823 } -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/tools/xpt_link.c
r104485 r108336 60 60 static int compare_IDE_with_zero(const void *ap); 61 61 static int compare_IDEs_by_name(const void *ap, const void *bp); 62 #if 0 /* unused */ 62 63 static int compare_IDEs_by_name_space(const void *ap, const void *bp); 64 #endif 63 65 static int compare_strings(const void *ap, const void *bp); 64 66 static int compare_pointers(const void *ap, const void *bp); … … 689 691 } 690 692 693 #if 0 /* unused */ 691 694 static int 692 695 compare_IDEs_by_name_space(const void *ap, … … 697 700 return compare_strings(ide1->name_space, ide2->name_space); 698 701 } 702 #endif 699 703 700 704 static int
Note:
See TracChangeset
for help on using the changeset viewer.