Changeset 297 for branches/branch-1-0/src/helpers
- Timestamp:
- Oct 9, 2005, 3:11:51 PM (20 years ago)
- Location:
- branches/branch-1-0/src/helpers
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/apps.c
r229 r297 15 15 16 16 /* 17 * Copyright (C) 1997-200 2Ulrich Mller.17 * Copyright (C) 1997-2005 Ulrich Mller. 18 18 * This file is part of the "XWorkplace helpers" source package. 19 19 * This is free software; you can redistribute it and/or modify … … 1561 1561 { 1562 1562 APIRET arc = NO_ERROR; 1563 1564 BOOL fCrit = FALSE, 1565 fResetDir = FALSE; 1563 volatile BOOL fCrit = FALSE; // XWP V1.0.4 (2005-10-09) [pr] 1564 volatile BOOL fResetDir = FALSE; 1566 1565 CHAR szCurrentDir[CCHMAXPATH]; 1567 1568 1566 ULONG sid, 1569 1567 pid; 1570 1568 STARTDATA SData; 1569 1571 1570 SData.Length = sizeof(STARTDATA); 1572 1571 SData.Related = SSF_RELATED_INDEPENDENT; // SSF_RELATED_CHILD; -
branches/branch-1-0/src/helpers/cctl_tooltip.c
r256 r297 15 15 16 16 /* 17 * Copyright (C) 1997-200 2Ulrich Mller.17 * Copyright (C) 1997-2005 Ulrich Mller. 18 18 * This file is part of the "XWorkplace helpers" source package. 19 19 * This is free software; you can redistribute it and/or modify … … 1967 1967 } 1968 1968 } 1969 CATCH(excpt1) {} END_CATCH(); 1969 CATCH(excpt1) 1970 { 1971 mrc = 0; // XWP V1.0.4 (2005-10-09) [pr] 1972 } 1973 END_CATCH(); 1970 1974 1971 1975 return mrc; 1972 1976 } 1973 1977 1974 -
branches/branch-1-0/src/helpers/dialog.c
r264 r297 38 38 39 39 /* 40 * Copyright (C) 2001-200 2Ulrich Mller.40 * Copyright (C) 2001-2005 Ulrich Mller. 41 41 * This file is part of the "XWorkplace helpers" source package. 42 42 * This is free software; you can redistribute it and/or modify … … 295 295 * the control _sizes_, and everything is layed out automatically. 296 296 * You may even have the formatter compute the sizes automatically 297 * based on the control classes and values ; it is possible to298 * create dialogs without specifying a single size also.297 * based on the control classes and values (strings); it is possible 298 * to create dialogs without specifying a single size also. 299 299 * 300 300 * There are several tricks to how this works. … … 313 313 * (which again goes into ProcessRow and ProcessColumn). 314 314 * There is no limit to how deep tables may nest, except 315 * the stack size of the current thread. ;-)315 * for the stack size of the current thread, of course. 316 316 * 317 317 * 3) This whole recursive iteration is performed several times. … … 1299 1299 APIRET arc = NO_ERROR; 1300 1300 1301 PCSZ pcszClass = NULL;1302 PCSZ pcszText = NULL;1303 ULONG flStyle = 0;1304 LHANDLE lHandleSet = NULLHANDLE;1305 ULONG flOld = 0;1301 volatile PCSZ pcszClass = NULL; // XWP V1.0.4 (2005-10-09) [pr] 1302 volatile PCSZ pcszText = NULL; 1303 volatile ULONG flStyle = 0; 1304 volatile LHANDLE lHandleSet = NULLHANDLE; 1305 volatile ULONG flOld = 0; 1306 1306 1307 1307 if (pColumn->pNestedTable) … … 3084 3084 APIRET arc = NO_ERROR; 3085 3085 3086 HPOINTER hptrOld = winhSetWaitPointer(); // V1.0.0 (2002-08-21) [umoeller]3086 volatile HPOINTER hptrOld = winhSetWaitPointer(); // XWP V1.0.4 (2005-10-09) [pr] 3087 3087 3088 3088 TRY_LOUD(excpt1) -
branches/branch-1-0/src/helpers/except.c
r264 r297 128 128 + int your_func(int) 129 129 + { 130 + BOOL fSemOwned = FALSE;130 + volatile BOOL fSemOwned = FALSE; 131 131 + 132 132 + TRY_QUIET(excpt1) // or TRY_LOUD … … 188 188 189 189 /* 190 * This file Copyright (C) 1992- 99Ulrich Mller,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 Mller, 191 * Monte Copeland, 192 * Roman Stangl, 193 * Kim Rasmussen, 194 * Marc Fiammante, 195 * John Currier, 196 * Anthony Cruise. 197 197 * This file is part of the "XWorkplace helpers" source package. 198 198 * This is free software; you can redistribute it and/or modify … … 788 788 * writes no trap logs). 789 789 * 790 * Registering hooks affects all threads that use 791 * the exception handlers. 792 * 790 793 * The hooks are as follows: 791 794 * … … 914 917 */ 915 918 916 if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND) 917 return XCPT_CONTINUE_SEARCH; 918 if (pReportRec->fHandlerFlags & EH_UNWINDING) 919 return XCPT_CONTINUE_SEARCH; 920 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)) 921 921 return XCPT_CONTINUE_SEARCH; 922 922 … … 1010 1010 PVOID pv) 1011 1011 { 1012 if (pReportRec->fHandlerFlags & EH_EXIT_UNWIND) 1013 return XCPT_CONTINUE_SEARCH; 1014 if (pReportRec->fHandlerFlags & EH_UNWINDING) 1015 return XCPT_CONTINUE_SEARCH; 1016 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)) 1017 1014 return XCPT_CONTINUE_SEARCH; 1018 1015 -
branches/branch-1-0/src/helpers/memdebug.c
r222 r297 199 199 } 200 200 else 201 return (!DosRequestMutexSem(G_hmtxMallocList,202 SEM_INDEFINITE_WAIT));203 204 return (FALSE);201 return !DosRequestMutexSem(G_hmtxMallocList, 202 SEM_INDEFINITE_WAIT); 203 204 return FALSE; 205 205 } 206 206 … … 246 246 STATIC PHEAPITEM FindHeapItem(void *p) 247 247 { 248 return ( (PHEAPITEM)treeFind(G_pHeapItemsRoot,249 250 treeCompareKeys));248 return (PHEAPITEM)treeFind(G_pHeapItemsRoot, 249 (ULONG)p, 250 treeCompareKeys); 251 251 } 252 252 … … 417 417 } 418 418 419 return (prc);419 return prc; 420 420 } 421 421 … … 440 440 pcszFunction); 441 441 memset(p, 0, num * stSize); 442 return (p);442 return p; 443 443 } 444 444 … … 547 547 // p == NULL: this is valid, use malloc() instead 548 548 // V0.9.12 (2001-05-21) [umoeller] 549 return (memdMalloc(stSize, pcszSourceFile, ulLine, pcszFunction));549 return memdMalloc(stSize, pcszSourceFile, ulLine, pcszFunction); 550 550 551 551 if (memdLock()) … … 665 665 } 666 666 667 return (prc);667 return prc; 668 668 } 669 669 … … 727 727 } 728 728 729 return (ulItemsReleased);729 return ulItemsReleased; 730 730 } 731 731 -
branches/branch-1-0/src/helpers/memdebug_win.c
r264 r297 12 12 13 13 /* 14 * Copyright (C) 2000 Ulrich Mller.14 * Copyright (C) 2000-2005 Ulrich Mller. 15 15 * This program is part of the XWorkplace package. 16 16 * This program is free software; you can redistribute it and/or modify … … 151 151 ulTotalAllocated += Size; 152 152 } 153 return (0);153 return 0; 154 154 } 155 155 … … 194 194 } 195 195 else 196 return (1); // stop196 return 1; // stop 197 197 } 198 198 199 return (0);199 return 0; 200 200 } 201 201 … … 285 285 286 286 ULONG cHeapItems = 0; 287 BOOL fLocked = FALSE;287 volatile BOOL fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr] 288 288 289 289 TRY_LOUD(excpt1) … … 416 416 if ((pmrc1) && (pmrc2)) 417 417 if (pmrc1->ulIndex < pmrc2->ulIndex) 418 return (-1);418 return -1; 419 419 else if (pmrc1->ulIndex > pmrc2->ulIndex) 420 return (1);421 422 return (0);420 return 1; 421 422 return 0; 423 423 } 424 424 … … 439 439 0)) 440 440 { 441 case WCS_LT: return (-1);442 case WCS_GT: return (1);441 case WCS_LT: return -1; 442 case WCS_GT: return 1; 443 443 default: // equal 444 444 if (pmrc1->ulLine < pmrc2->ulLine) 445 return (-1);445 return -1; 446 446 else if (pmrc1->ulLine > pmrc2->ulLine) 447 return (1);447 return 1; 448 448 449 449 } 450 450 451 return (0);451 return 0; 452 452 } 453 453 … … 464 464 { 465 465 if (pmrc1->ulSize > pmrc2->ulSize) 466 return (1);466 return 1; 467 467 else if (pmrc1->ulSize < pmrc2->ulSize) 468 return (-1);468 return -1; 469 469 } 470 470 471 return (0);471 return 0; 472 472 } 473 473 … … 484 484 { 485 485 if (pmrc1->ulAddress > pmrc2->ulAddress) 486 return (1);486 return 1; 487 487 else if (pmrc1->ulAddress < pmrc2->ulAddress) 488 return (-1);488 return -1; 489 489 } 490 490 491 return (0);491 return 0; 492 492 } 493 493 … … 843 843 i++; 844 844 } 845 #endif 846 845 #endif // __XWPMEMDEBUG__ 846 -
branches/branch-1-0/src/helpers/nlscache.c
r278 r297 19 19 20 20 /* 21 * Copyright (C) 2001-200 2Ulrich Mller.21 * Copyright (C) 2001-2005 Ulrich Mller. 22 22 * This file is part of the "XWorkplace helpers" source package. 23 23 * This is free software; you can redistribute it and/or modify … … 279 279 PCSZ nlsGetString(ULONG ulStringID) 280 280 { 281 BOOL fLocked = FALSE;281 volatile BOOL fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr] 282 282 PSZ pszReturn = "Error"; 283 283 … … 331 331 pszReturn = "Cannot get strings lock."; 332 332 } 333 CATCH(excpt1) {} END_CATCH(); 333 CATCH(excpt1) 334 { 335 pszReturn = "Error"; 336 } 337 END_CATCH(); 334 338 335 339 if (fLocked) -
branches/branch-1-0/src/helpers/timer.c
r264 r297 68 68 69 69 /* 70 * Copyright (C) 2000-200 1Ulrich Mller.70 * Copyright (C) 2000-2005 Ulrich Mller. 71 71 * This file is part of the "XWorkplace helpers" source package. 72 72 * This is free software; you can redistribute it and/or modify … … 162 162 { 163 163 if (!G_hmtxTimers) 164 return (!DosCreateMutexSem(NULL,165 166 167 TRUE)); // request!168 else 169 164 return !DosCreateMutexSem(NULL, 165 &G_hmtxTimers, 166 0, 167 TRUE); // request! 168 169 return !DosRequestMutexSem(G_hmtxTimers, SEM_INDEFINITE_WAIT); 170 170 } 171 171 … … 207 207 ) 208 208 { 209 return (pTimer);209 return pTimer; 210 210 } 211 211 … … 394 394 } 395 395 396 return (pSet);396 return pSet; 397 397 } 398 398 … … 468 468 VOID tmrTimerTick(PXTIMERSET pSet) // in: timer set (from tmrCreateSet) 469 469 { 470 BOOL fLocked = FALSE;470 volatile BOOL fLocked = FALSE; // XWP V1.0.4 (2005-10-09) [pr] 471 471 472 472 TRY_LOUD(excpt1) … … 733 733 } 734 734 735 return (usrc);735 return usrc; 736 736 } 737 737 -
branches/branch-1-0/src/helpers/wphandle.c
r222 r297 24 24 25 25 /* 26 * This file Copyright (C) 1997-200 1Ulrich Mller,26 * This file Copyright (C) 1997-2005 Ulrich Mller, 27 27 * This file is part of the "XWorkplace helpers" source package. 28 28 * This is free software; you can redistribute it and/or modify … … 795 795 APIRET arc = NO_ERROR; 796 796 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; 799 799 800 800 TRY_LOUD(excpt1)
Note:
See TracChangeset
for help on using the changeset viewer.