Changeset 7508 for trunk/src/oleaut32


Ignore:
Timestamp:
Nov 30, 2001, 8:02:33 PM (24 years ago)
Author:
sandervl
Message:

removed TRACE/WARN macro redefinition

Location:
trunk/src/oleaut32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oleaut32/olepicture.c

    r7501 r7508  
    5656#endif
    5757
    58 #ifdef __WIN32OS2__
    59 #undef FIXME
    60 #undef TRACE
    61 #ifdef DEBUG
    62 // PH 2001-11-30
    63 // this macro definition causes the control leave the scope of a
    64 // non-curly-braced preceeding if statement. Therefore,
    65 //   if (p!=NULL)
    66 //      TRACE("p->a=%d", p->a)
    67 // crashes.
    68 //
    69 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
    70 // !!! ARE PUT INTO CURLY BRACES
    71 #define TRACE WriteLog("%s", __FUNCTION__); WriteLog
    72 #define FIXME WriteLog("FIXME %s", __FUNCTION__); WriteLog
    73 #else
    74 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    75 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    76 #endif
    77 #endif
    78 
    7958DEFAULT_DEBUG_CHANNEL(ole);
    8059
     
    174153
    175154  if (pictDesc)
    176   {
    177     // PH 2001-11-29 TRACE must be in curly braces otherwise
    178     // the scope of the if statement is left and we'll crash
    179     // on picDesc == NULL
    180155    TRACE("(%p) type = %d\n", pictDesc, pictDesc->picType);
    181   }
    182156
    183157  /*
     
    507481        This, hdc, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, prcWBounds);
    508482  if(prcWBounds)
    509   {
    510483    TRACE("prcWBounds (%d,%d) - (%d,%d)\n", prcWBounds->left, prcWBounds->top,
    511           prcWBounds->right, prcWBounds->bottom);
    512   }
     484          prcWBounds->right, prcWBounds->bottom);
    513485
    514486  /*
     
    851823  }
    852824  if (xread != header[1])
    853   {
    854825    FIXME("Could only read %ld of %ld bytes?\n",xread,header[1]);
    855   }
    856826
    857827  magic = xbuf[0] + (xbuf[1]<<8);
     
    12851255  hr = IPicture_QueryInterface(newpic,riid,ppvObj);
    12861256  if (hr)
    1287   {
    1288     FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
    1289   }
     1257      FIXME("Failed to get interface %s from IPicture.\n",debugstr_guid(riid));
    12901258  IPicture_Release(newpic);
    12911259  return hr;
  • trunk/src/oleaut32/typelib.c

    r7502 r7508  
    6868#ifdef __WIN32OS2__
    6969#include <neexe.h>
    70 #undef FIXME
    71 #undef TRACE
    72 #ifdef DEBUG
    73 // PH 2001-11-30
    74 // this macro definition causes the control leave the scope of a
    75 // non-curly-braced preceeding if statement. Therefore,
    76 //   if (p!=NULL)
    77 //      TRACE("p->a=%d", p->a)
    78 // crashes.
    79 //
    80 // !!! ENSURE TRACES AND FIXMES WITH PRECEEDING IF STATEMENT
    81 // !!! ARE PUT INTO CURLY BRACES
    82 #define TRACE WriteLog("OLEAUT32: %s", __FUNCTION__); WriteLog
    83 #define FIXME WriteLog("OLEAUT32: FIXME %s", __FUNCTION__); WriteLog
    84 #else
    85 #define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    86 #define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
    87 #endif
    8870#endif
    8971
     
    23742356
    23752357        name += SLTG_ReadStringA(name, &refname);
    2376         if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2)
    2377         {
    2378           FIXME("Can't sscanf ref\n");
    2379         }
     2358        if(sscanf(refname, "*\\R%x*#%x", &lib_offs, &type_num) != 2)
     2359            FIXME("Can't sscanf ref\n");
    23802360        if(lib_offs != 0xffff) {
    23812361            TLBImpLib **import = &pTI->pTypeLib->pImpLibs;
     
    24032383                }
    24042384                len = strlen(fname);
    2405                 if(fname[len-1] != '#')
    2406                 {
    2407                   FIXME("fname = %s\n", fname);
    2408                 }
     2385                if(fname[len-1] != '#')
     2386                    FIXME("fname = %s\n", fname);
    24092387                fname[len-1] = '\0';
    24102388                (*import)->name = TLB_MultiByteToBSTR(fname);
     
    24212399    }
    24222400    if((BYTE)*name != SLTG_REF_MAGIC)
    2423     {
    24242401      FIXME("End of ref block magic = %x\n", *name);
    2425     }
    24262402    dump_TLBRefType(pTI->reflist);
    24272403}
     
    24502426        if(info->next == 0xffff)
    24512427            break;
    2452         if(OneOnly)
    2453         {
    2454           FIXME("Interface inheriting more than one interface\n");
    2455         }
     2428        if(OneOnly)
     2429            FIXME("Interface inheriting more than one interface\n");
    24562430        info = (SLTG_ImplInfo*)(pBlk + info->next);
    24572431    }
     
    29072881     
    29082882      if((pTIHeader->typeflags1 & 7) != 2)
    2909       {
    2910         FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1);
    2911       }
     2883        FIXME("typeflags1 = %02x\n", pTIHeader->typeflags1);
    29122884      if(pTIHeader->typeflags3 != 2)
    2913       {
    2914         FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3);
    2915       }
     2885        FIXME("typeflags3 = %02x\n", pTIHeader->typeflags3);
     2886
    29162887      TRACE("TypeInfo %s of kind %s guid %s typeflags %04x\n",
    29172888            debugstr_w((*ppTypeInfoImpl)->Name),
     
    39113882        WARN("Could not search inherited interface!\n");
    39123883    } else
    3913     {
    3914       WARN("no names found\n");
    3915     }
     3884        WARN("no names found\n");
    39163885    return DISP_E_UNKNOWNNAME;
    39173886}
     
    40454014                }
    40464015            }
    4047             if (pFDesc->funcdesc.cParamsOpt)
    4048             {
     4016            if (pFDesc->funcdesc.cParamsOpt)
    40494017                FIXME("Does not support optional parameters (%d)\n",
    40504018                        pFDesc->funcdesc.cParamsOpt
    4051                      );
    4052             }
     4019                );
    40534020
    40544021            res = _invoke((*(DWORD***)pIUnk)[pFDesc->funcdesc.oVft/4],
     
    41014068               pVarResult,pExcepInfo,pArgErr
    41024069           );
    4103            if (hr)
    4104            {
    4105             FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr);
    4106            }
     4070           if (hr)
     4071               FIXME("IDispatch::Invoke failed with %08lx. (Could be not a real error?)\n",hr);
    41074072           IDispatch_Release(disp);
    41084073           return hr;
     
    42424207                break;
    42434208        }
    4244         if(!pRefType)
    4245         {
    4246           FIXME("Can't find pRefType for ref %lx\n", hRefType);
    4247         }
     4209        if(!pRefType)
     4210          FIXME("Can't find pRefType for ref %lx\n", hRefType);
    42484211        if(pRefType && hRefType != -1) {
    42494212            ITypeLib *pTLib;
Note: See TracChangeset for help on using the changeset viewer.