Changeset 297 for trunk/src/helpers


Ignore:
Timestamp:
Oct 9, 2005, 3:11:51 PM (20 years ago)
Author:
pr
Message:

Update functions using exception handlers to force non-register variables

Location:
trunk/src/helpers
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/apps.c

    r242 r297  
    1515
    1616/*
    17  *      Copyright (C) 1997-2002 Ulrich M”ller.
     17 *      Copyright (C) 1997-2005 Ulrich M”ller.
    1818 *      This file is part of the "XWorkplace helpers" source package.
    1919 *      This is free software; you can redistribute it and/or modify
     
    14801480{
    14811481    APIRET      arc = NO_ERROR;
    1482 
    1483     BOOL        fCrit = FALSE,
    1484                 fResetDir = FALSE;
     1482    volatile BOOL        fCrit = FALSE;         // XWP V1.0.4 (2005-10-09) [pr]
     1483    volatile BOOL        fResetDir = FALSE;
    14851484    CHAR        szCurrentDir[CCHMAXPATH];
    1486 
    14871485    ULONG       sid,
    14881486                pid;
    14891487    STARTDATA   SData;
     1488
    14901489    SData.Length  = sizeof(STARTDATA);
    14911490    SData.Related = SSF_RELATED_INDEPENDENT; // SSF_RELATED_CHILD;
  • trunk/src/helpers/cctl_tooltip.c

    r255 r297  
    1515
    1616/*
    17  *      Copyright (C) 1997-2002 Ulrich M”ller.
     17 *      Copyright (C) 1997-2005 Ulrich M”ller.
    1818 *      This file is part of the "XWorkplace helpers" source package.
    1919 *      This is free software; you can redistribute it and/or modify
     
    19621962        }
    19631963    }
    1964     CATCH(excpt1) {} END_CATCH();
     1964    CATCH(excpt1)
     1965    {
     1966        mrc = 0;        // XWP V1.0.4 (2005-10-09) [pr]
     1967    }
     1968    END_CATCH();
    19651969
    19661970    return mrc;
    19671971}
    19681972
    1969 
  • trunk/src/helpers/dialog.c

    r265 r297  
    3838
    3939/*
    40  *      Copyright (C) 2001-2002 Ulrich M”ller.
     40 *      Copyright (C) 2001-2005 Ulrich M”ller.
    4141 *      This file is part of the "XWorkplace helpers" source package.
    4242 *      This is free software; you can redistribute it and/or modify
     
    13001300    APIRET      arc = NO_ERROR;
    13011301
    1302     PCSZ        pcszClass = NULL;
    1303     PCSZ        pcszText = NULL;
    1304     ULONG       flStyle = 0;
    1305     LHANDLE     lHandleSet = NULLHANDLE;
    1306     ULONG       flOld = 0;
     1302    volatile PCSZ        pcszClass = NULL; // XWP V1.0.4 (2005-10-09) [pr]
     1303    volatile PCSZ        pcszText = NULL;
     1304    volatile ULONG       flStyle = 0;
     1305    volatile LHANDLE     lHandleSet = NULLHANDLE;
     1306    volatile ULONG       flOld = 0;
    13071307
    13081308    if (pColumn->pNestedTable)
     
    31023102    APIRET      arc = NO_ERROR;
    31033103
    3104     HPOINTER    hptrOld = winhSetWaitPointer();     // V1.0.0 (2002-08-21) [umoeller]
     3104    volatile HPOINTER hptrOld = winhSetWaitPointer(); // XWP V1.0.4 (2005-10-09) [pr]
    31053105
    31063106    TRY_LOUD(excpt1)
  • trunk/src/helpers/except.c

    r265 r297  
    128128 +          int your_func(int)
    129129 +          {
    130  +              BOOL    fSemOwned = FALSE;
     130 +              volatile BOOL    fSemOwned = FALSE;
    131131 +
    132132 +              TRY_QUIET(excpt1)           // or TRY_LOUD
     
    188188
    189189/*
    190  *      This file Copyright (C) 1992-99 Ulrich M”ller,
    191  *                                      Monte Copeland,
    192  *                                      Roman Stangl,
    193  *                                      Kim Rasmussen,
    194  *                                      Marc Fiammante,
    195  *                                      John Currier,
    196  *                                      Anthony Cruise.
     190 *      This file Copyright (C) 1992-2005 Ulrich M”ller,
     191 *                                        Monte Copeland,
     192 *                                        Roman Stangl,
     193 *                                        Kim Rasmussen,
     194 *                                        Marc Fiammante,
     195 *                                        John Currier,
     196 *                                        Anthony Cruise.
    197197 *      This file is part of the "XWorkplace helpers" source package.
    198198 *      This is free software; you can redistribute it and/or modify
     
    917917     */
    918918
    919     if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND)
    920        return XCPT_CONTINUE_SEARCH;
    921     if (pReportRec->fHandlerFlags & EH_UNWINDING)
    922        return XCPT_CONTINUE_SEARCH;
    923     if (pReportRec->fHandlerFlags & EH_NESTED_CALL)
     919    // XWP V1.0.4 (2005-10-09) [pr]: Optimize
     920    if (pReportRec->fHandlerFlags & (EH_EXIT_UNWIND | EH_UNWINDING | EH_NESTED_CALL))
    924921       return XCPT_CONTINUE_SEARCH;
    925922
     
    10131010                              PVOID pv)
    10141011{
    1015     if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND)
    1016        return XCPT_CONTINUE_SEARCH;
    1017     if (pReportRec->fHandlerFlags & EH_UNWINDING)
    1018        return XCPT_CONTINUE_SEARCH;
    1019     if (pReportRec->fHandlerFlags & EH_NESTED_CALL)
     1012    // XWP V1.0.4 (2005-10-09) [pr]: Optimize
     1013    if (pReportRec->fHandlerFlags & (EH_EXIT_UNWIND | EH_UNWINDING | EH_NESTED_CALL))
    10201014       return XCPT_CONTINUE_SEARCH;
    10211015
  • trunk/src/helpers/memdebug_win.c

    r265 r297  
    1212
    1313/*
    14  *      Copyright (C) 2000 Ulrich M”ller.
     14 *      Copyright (C) 2000-2005 Ulrich M”ller.
    1515 *      This program is part of the XWorkplace package.
    1616 *      This program is free software; you can redistribute it and/or modify
     
    285285
    286286    ULONG       cHeapItems = 0;
    287     BOOL        fLocked = FALSE;
     287    volatile BOOL       fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr]
    288288
    289289    TRY_LOUD(excpt1)
     
    843843    i++;
    844844}
    845 #endif
    846 
     845#endif // __XWPMEMDEBUG__
     846
  • trunk/src/helpers/mmpmh.c

    r243 r297  
    1919
    2020/*
    21  *      Copyright (C) 1997-2003 Ulrich M”ller.
     21 *      Copyright (C) 1997-2005 Ulrich M”ller.
    2222 *      This file is part of the "XWorkplace helpers" source package.
    2323 *      This is free software; you can redistribute it and/or modify
     
    553553    APIRET  arc = NO_ERROR;
    554554
    555     HDC     hdcMem = NULLHANDLE;
    556     HPS     hpsMem = NULLHANDLE;
     555    volatile HDC     hdcMem = NULLHANDLE; // XWP V1.0.4 (2005-10-09) [pr]
     556    volatile HPS     hpsMem = NULLHANDLE;
    557557
    558558    if (!G_fFuncsResolved)
     
    724724    APIRET  arc = NO_ERROR;
    725725
    726     PBYTE   pbBitmapBits = NULL;
    727     HMMIO   hmmio = NULLHANDLE;
     726    volatile PBYTE   pbBitmapBits = NULL; // XWP V1.0.4 (2005-10-09) [pr]
     727    volatile HMMIO   hmmio = NULLHANDLE;
    728728
    729729    if (    (!pcszFilename)
     
    779779}
    780780
    781 
  • trunk/src/helpers/nlscache.c

    r257 r297  
    1919
    2020/*
    21  *      Copyright (C) 2001-2002 Ulrich M”ller.
     21 *      Copyright (C) 2001-2005 Ulrich M”ller.
    2222 *      This file is part of the "XWorkplace helpers" source package.
    2323 *      This is free software; you can redistribute it and/or modify
     
    258258                    ULONG cEntities)            // in: array item count of paEntities or 0
    259259{
    260     BOOL    fLocked = FALSE;
     260    volatile BOOL    fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr]
    261261
    262262    TRY_LOUD(excpt1)
     
    342342PCSZ nlsGetString(ULONG ulStringID)
    343343{
    344     BOOL    fLocked = FALSE;
     344    volatile BOOL    fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr]
    345345    PSZ     pszReturn = "Error";
    346346
     
    394394            pszReturn = "Cannot get strings lock.";
    395395    }
    396     CATCH(excpt1) {} END_CATCH();
     396    CATCH(excpt1)
     397    {
     398        pszReturn = "Error";
     399    }
     400    END_CATCH();
    397401
    398402    if (fLocked)
     
    402406}
    403407
    404 
  • trunk/src/helpers/timer.c

    r265 r297  
    6868
    6969/*
    70  *      Copyright (C) 2000-2001 Ulrich M”ller.
     70 *      Copyright (C) 2000-2005 Ulrich M”ller.
    7171 *      This file is part of the "XWorkplace helpers" source package.
    7272 *      This is free software; you can redistribute it and/or modify
     
    468468VOID tmrTimerTick(PXTIMERSET pSet)      // in: timer set (from tmrCreateSet)
    469469{
    470     BOOL fLocked = FALSE;
     470    volatile BOOL fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr]
    471471
    472472    TRY_LOUD(excpt1)
  • trunk/src/helpers/wphandle.c

    r222 r297  
    2424
    2525/*
    26  *      This file Copyright (C) 1997-2001 Ulrich M”ller,
     26 *      This file Copyright (C) 1997-2005 Ulrich M”ller,
    2727 *      This file is part of the "XWorkplace helpers" source package.
    2828 *      This is free software; you can redistribute it and/or modify
     
    795795    APIRET      arc = NO_ERROR;
    796796
    797     PSZ         pszActiveHandles = NULL;
    798     HHANDLES    hHandles = NULLHANDLE;
     797    volatile PSZ         pszActiveHandles = NULL; // XWP V1.0.4 (2005-10-09) [pr]
     798    volatile HHANDLES    hHandles = NULLHANDLE;
    799799
    800800    TRY_LOUD(excpt1)
Note: See TracChangeset for help on using the changeset viewer.