Changeset 1063

Show
Ignore:
Timestamp:
07/11/08 05:33:36 (7 weeks ago)
Author:
gyoung
Message:

Fortify ifdef reformat

Location:
trunk/dll
Files:
29 modified

Legend:

Unmodified
Added
Removed
  • trunk/dll/arccnrs.c

    r1040 r1063  
    338338    pai->pszFileName = NullStr; 
    339339    free(psz); 
    340 # ifdef FORTIFY 
    341   Fortify_LeaveScope(); 
    342 # endif 
    343340  } 
    344341} 
     
    20082005      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID); 
    20092006      free(dcd); 
    2010 # ifdef FORTIFY 
    2011   Fortify_LeaveScope(); 
    2012 # endif 
     2007#     ifdef FORTIFY 
     2008      Fortify_LeaveScope(); 
     2009#      endif 
    20132010      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 
    20142011    } 
     
    29142911        { 
    29152912          LISTINFO *li; 
    2916 # ifdef FORTIFY 
    2917   Fortify_EnterScope(); 
    2918 # endif 
     2913#         ifdef FORTIFY 
     2914          Fortify_EnterScope(); 
     2915#          endif 
    29192916          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 
    29202917          if (li) { 
     
    29912988            else 
    29922989              free(li); 
    2993 # ifdef FORTIFY 
    2994   Fortify_LeaveScope(); 
    2995 # endif 
     2990#             ifdef FORTIFY 
     2991              Fortify_LeaveScope(); 
     2992#              endif 
    29962993          } 
    29972994        } 
     
    34643461        idinc = 0; 
    34653462      WinSetWindowUShort(hwndFrame, QWS_ID, id); 
    3466 # ifdef FORTIFY 
    3467   Fortify_EnterScope(); 
    3468 # endif 
     3463#     ifdef FORTIFY 
     3464      Fortify_EnterScope(); 
     3465#      endif 
    34693466      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 
    34703467      if (!dcd) { 
     
    35513548          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 
    35523549          free(dcd); 
    3553 # ifdef FORTIFY 
    3554   Fortify_LeaveScope(); 
    3555 # endif 
     3550#         ifdef FORTIFY 
     3551          Fortify_LeaveScope(); 
     3552#          endif 
    35563553          hwndFrame = (HWND) 0; 
    35573554        } 
  • trunk/dll/autoview.c

    r1039 r1063  
    614614      } 
    615615      free((CHAR *)mp1); 
    616 # ifdef FORTIFY 
    617   Fortify_LeaveScope(); 
    618 # endif 
     616#     ifdef FORTIFY 
     617      Fortify_LeaveScope(); 
     618#      endif 
    619619    } 
    620620    return 0; 
     
    638638  hab2 = WinInitialize(0); 
    639639  if (hab2) { 
    640 # ifdef FORTIFY 
    641   Fortify_EnterScope(); 
    642 # endif 
     640#   ifdef FORTIFY 
     641    Fortify_EnterScope(); 
     642#    endif 
    643643    hmq2 = WinCreateMsgQueue(hab2, 128); 
    644644    if (hmq2) { 
     
    673673    // else 
    674674    WinTerminate(hab2); 
    675 # ifdef FORTIFY 
     675#   ifdef FORTIFY 
    676676    Fortify_LeaveScope(); 
    677 # endif 
     677#    endif 
    678678  } 
    679679} 
     
    799799              PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID); 
    800800              free(ea); 
    801 # ifdef FORTIFY 
    802   Fortify_LeaveScope(); 
    803 # endif 
     801#             ifdef FORTIFY 
     802              Fortify_LeaveScope(); 
     803#              endif 
    804804            } 
    805805          } 
     
    852852          if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID)) 
    853853            free(cf); 
    854 # ifdef FORTIFY 
    855   Fortify_LeaveScope(); 
    856 # endif 
     854#           ifdef FORTIFY 
     855            Fortify_LeaveScope(); 
     856#            endif 
    857857        } 
    858858      } 
     
    911911    if (!PostMsg(hwndAutoObj, msg, mp1, mp2)) { 
    912912      xfree((CHAR *)mp1, pszSrcFile, __LINE__); 
    913 # ifdef FORTIFY 
    914   Fortify_LeaveScope(); 
    915 # endif 
     913#     ifdef FORTIFY 
     914      Fortify_LeaveScope(); 
     915#      endif 
    916916    } 
    917917    return 0; 
  • trunk/dll/collect.c

    r1041 r1063  
    786786    } 
    787787    xfree(mp1, pszSrcFile, __LINE__); 
    788 # ifdef FORTIFY 
    789   Fortify_LeaveScope(); 
    790 # endif 
     788#   ifdef FORTIFY 
     789    Fortify_LeaveScope(); 
     790#    endif 
    791791    return 0; 
    792792 
     
    891891      if (dcd) { 
    892892        WORKER *wk; 
    893 # ifdef FORTIFY 
    894   Fortify_EnterScope(); 
    895 # endif 
     893#       ifdef FORTIFY 
     894        Fortify_EnterScope(); 
     895#        endif 
    896896        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 
    897897        if (!wk) 
     
    909909                          GetPString(IDS_COULDNTSTARTTHREADTEXT)); 
    910910            free(wk); 
    911 # ifdef FORTIFY 
    912   Fortify_LeaveScope(); 
    913 # endif 
    914911            FreeListInfo((LISTINFO *) mp1); 
     912#           ifdef FORTIFY 
     913            Fortify_LeaveScope(); 
     914#            endif 
    915915          } 
    916916        } 
     
    924924      if (dcd) { 
    925925        WORKER *wk; 
    926 # ifdef FORTIFY 
    927   Fortify_EnterScope(); 
    928 # endif 
     926#       ifdef FORTIFY 
     927        Fortify_EnterScope(); 
     928#        endif 
    929929        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 
    930930        if (!wk) 
     
    942942                          GetPString(IDS_COULDNTSTARTTHREADTEXT)); 
    943943            free(wk); 
    944 # ifdef FORTIFY 
    945   Fortify_LeaveScope(); 
    946 # endif 
    947944            FreeListInfo((LISTINFO *) mp1); 
     945#           ifdef FORTIFY 
     946            Fortify_LeaveScope(); 
     947#            endif 
    948948          } 
    949949        } 
     
    970970      FreeList(dcd->lastselection); 
    971971      free(dcd); 
    972 # ifdef FORTIFY 
    973   Fortify_LeaveScope(); 
    974 # endif 
     972#     ifdef FORTIFY 
     973      Fortify_LeaveScope(); 
     974#      endif 
    975975      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 
    976976    } 
     
    14691469      if (!dcd) { 
    14701470        free(mp1); 
    1471 # ifdef FORTIFY 
    1472   Fortify_LeaveScope(); 
    1473 # endif 
     1471#       ifdef FORTIFY 
     1472        Fortify_LeaveScope(); 
     1473#        endif 
    14741474        Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT); 
    14751475      } 
     
    14781478          Runtime_Error(pszSrcFile, __LINE__, "PostMsg"); 
    14791479          free(mp1); 
    1480 # ifdef FORTIFY 
    1481   Fortify_LeaveScope(); 
    1482 # endif 
     1480#         ifdef FORTIFY 
     1481          Fortify_LeaveScope(); 
     1482#          endif 
    14831483        } 
    14841484      } 
     
    16071607              if (!PostMsg(hwnd, UM_COLLECTFROMFILE, MPFROMP(p), MPVOID)) 
    16081608                free(p); 
    1609 # ifdef FORTIFY 
    1610   Fortify_LeaveScope(); 
    1611 # endif 
     1609#               ifdef FORTIFY 
     1610                Fortify_LeaveScope(); 
     1611#                endif 
    16121612            } 
    16131613          } 
     
    17241724        { 
    17251725          LISTINFO *li; 
    1726 # ifdef FORTIFY 
    1727   Fortify_EnterScope(); 
    1728 # endif 
     1726#         ifdef FORTIFY 
     1727          Fortify_EnterScope(); 
     1728#          endif 
    17291729          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 
    17301730          if (li) { 
     
    17751775        if (mp2) { 
    17761776          LISTINFO *li; 
    1777 # ifdef FORTIFY 
    1778   Fortify_EnterScope(); 
    1779 # endif 
     1777#         ifdef FORTIFY 
     1778          Fortify_EnterScope(); 
     1779#          endif 
    17801780          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 
    17811781          if (li) { 
     
    20892089          LISTINFO *li; 
    20902090          ULONG action = UM_ACTION; 
    2091 # ifdef FORTIFY 
    2092   Fortify_EnterScope(); 
    2093 # endif 
     2091#         ifdef FORTIFY 
     2092          Fortify_EnterScope(); 
     2093#          endif 
    20942094          li = xmallocz(sizeof(LISTINFO), pszSrcFile, __LINE__); 
    20952095          if (li) { 
     
    21362136            else 
    21372137              free(li); 
    2138 # ifdef FORTIFY 
    2139   Fortify_LeaveScope(); 
    2140 # endif 
     2138#             ifdef FORTIFY 
     2139              Fortify_LeaveScope(); 
     2140#              endif 
    21412141          } 
    21422142        } 
     
    28542854    id = COLLECTOR_FRAME + idinc++; 
    28552855    WinSetWindowUShort(hwndFrame, QWS_ID, id); 
    2856 # ifdef FORTIFY 
    2857   Fortify_EnterScope(); 
    2858 # endif 
     2856#   ifdef FORTIFY 
     2857    Fortify_EnterScope(); 
     2858#    endif 
    28592859    dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 
    28602860    if (!dcd) { 
     
    28962896        PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 
    28972897        free(dcd); 
    2898 # ifdef FORTIFY 
    2899   Fortify_LeaveScope(); 
    2900 # endif 
     2898#       ifdef FORTIFY 
     2899        Fortify_LeaveScope(); 
     2900#        endif 
    29012901        hwndFrame = (HWND) 0; 
    29022902      } 
  • trunk/dll/comp.c

    r1039 r1063  
    201201    hab2 = WinInitialize(0); 
    202202    if (hab2) { 
    203 # ifdef FORTIFY 
    204   Fortify_EnterScope(); 
    205 # endif 
     203#     ifdef FORTIFY 
     204      Fortify_EnterScope(); 
     205#      endif 
    206206      hmq2 = WinCreateMsgQueue(hab2, 0); 
    207207      if (hmq2) { 
     
    315315      } 
    316316      WinTerminate(hab2); 
    317 # ifdef FORTIFY 
     317#     ifdef FORTIFY 
    318318      Fortify_LeaveScope(); 
    319 # endif 
     319#      endif 
    320320    } 
    321321  } 
     
    408408  hab = WinInitialize(0); 
    409409  if (hab) { 
    410 # ifdef FORTIFY 
    411   Fortify_EnterScope(); 
    412 # endif 
     410#   ifdef FORTIFY 
     411    Fortify_EnterScope(); 
     412#    endif 
    413413    hmq = WinCreateMsgQueue(hab, 0); 
    414414    if (hmq) { 
     
    693693    free(cmp); 
    694694    WinTerminate(hab); 
    695 # ifdef FORTIFY 
     695#   ifdef FORTIFY 
    696696    Fortify_LeaveScope(); 
    697 # endif 
     697#    endif 
    698698  } 
    699699  else 
     
    720720  hab = WinInitialize(0); 
    721721  if (hab) { 
    722 # ifdef FORTIFY 
    723   Fortify_EnterScope(); 
    724 # endif 
     722#   ifdef FORTIFY 
     723    Fortify_EnterScope(); 
     724#    endif 
    725725    hmq = WinCreateMsgQueue(hab, 0); 
    726726    if (hmq) { 
     
    758758    free(cmp); 
    759759    WinTerminate(hab); 
    760 # ifdef FORTIFY 
     760#   ifdef FORTIFY 
    761761    Fortify_LeaveScope(); 
    762 # endif 
     762#    endif 
    763763  } 
    764764  else 
     
    14711471  // 10 May 08 SHL fixme to suppress W111 
    14721472  Fortify_EnterScope(); 
    1473 # endif 
     1473#  endif 
    14741474 
    14751475  if (!cmp) { 
    14761476    Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT); 
    1477 # ifdef FORTIFY 
     1477#   ifdef FORTIFY 
    14781478    // 10 May 08 SHL fixme to suppress W111 
    14791479    Fortify_LeaveScope(); 
    1480 # endif 
     1480#    endif 
    14811481    _endthread(); 
    14821482  } 
     
    21022102# ifdef FORTIFY 
    21032103  Fortify_LeaveScope(); 
    2104 # endif 
     2104#  endif 
    21052105 
    21062106  // DbgMsg(pszSrcFile, __LINE__, "FillCnrsThread exit"); 
     
    26512651      WinCheckButton(hwnd, COMP_HIDENOTSELECTED, 0); 
    26522652      cmp->filling = TRUE; 
    2653 # ifdef FORTIFY 
    2654   Fortify_EnterScope(); 
    2655 # endif 
     2653#     ifdef FORTIFY 
     2654      Fortify_EnterScope(); 
     2655#      endif 
    26562656      forthread = xmalloc(sizeof(COMPARE), pszSrcFile, __LINE__); 
    26572657      if (!forthread) 
     
    26662666          WinDismissDlg(hwnd, 0); 
    26672667          free(forthread); 
    2668 # ifdef FORTIFY 
    2669   Fortify_LeaveScope(); 
    2670 # endif 
     2668#         ifdef FORTIFY 
     2669          Fortify_LeaveScope(); 
     2670#          endif 
    26712671        } 
    26722672        else { 
  • trunk/dll/datamin.c

    r1038 r1063  
    984984# ifdef FORTIFY 
    985985  Fortify_EnterScope(); 
    986 # endif 
     986#  endif 
    987987  if (G_hevDataMin == NULLHANDLE) { 
    988988    // Create just once for any thread that might use it 
     
    10781078  if (hab != NULLHANDLE) 
    10791079    WinTerminate(hab); 
    1080 # ifdef FORTIFY 
     1080#   ifdef FORTIFY 
    10811081    Fortify_LeaveScope(); 
    1082 # endif 
     1082#    endif 
    10831083}                                       // dataminThread 
    10841084 
  • trunk/dll/dircnrs.c

    r1041 r1063  
    990990 
    991991        WORKER *wk; 
    992 # ifdef FORTIFY 
    993   Fortify_EnterScope(); 
    994 # endif 
     992#       ifdef FORTIFY 
     993        Fortify_EnterScope(); 
     994#        endif 
    995995        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 
    996996        if (!wk) 
     
    10091009            free(wk); 
    10101010            FreeListInfo((LISTINFO *) mp1); 
    1011 # ifdef FORTIFY 
    1012   Fortify_LeaveScope(); 
    1013 # endif 
     1011#           ifdef FORTIFY 
     1012            Fortify_LeaveScope(); 
     1013#            endif 
    10141014          } 
    10151015        } 
     
    10251025 
    10261026        WORKER *wk; 
    1027 # ifdef FORTIFY 
    1028   Fortify_EnterScope(); 
    1029 # endif 
     1027#       ifdef FORTIFY 
     1028        Fortify_EnterScope(); 
     1029#        endif 
    10301030        wk = xmallocz(sizeof(WORKER), pszSrcFile, __LINE__); 
    10311031        if (!wk) 
     
    10441044            free(wk); 
    10451045            FreeListInfo((LISTINFO *) mp1); 
    1046 # ifdef FORTIFY 
    1047   Fortify_LeaveScope(); 
    1048 # endif 
     1046#           ifdef FORTIFY 
     1047            Fortify_LeaveScope(); 
     1048#            endif 
    10491049          } 
    10501050        } 
     
    10701070      FreeList(dcd->lastselection); 
    10711071      xfree(dcd, pszSrcFile, __LINE__); 
    1072 # ifdef FORTIFY 
    1073   Fortify_LeaveScope(); 
    1074 # endif 
     1072#     ifdef FORTIFY 
     1073      Fortify_LeaveScope(); 
     1074#      endif 
    10751075      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL); 
    10761076      DosPostEventSem(CompactSem); 
     
    34653465        idinc = 0; 
    34663466      WinSetWindowUShort(hwndFrame, QWS_ID, id); 
    3467 # ifdef FORTIFY 
    3468   Fortify_EnterScope(); 
    3469 # endif 
     3467#     ifdef FORTIFY 
     3468      Fortify_EnterScope(); 
     3469#      endif 
    34703470      dcd = xmallocz(sizeof(DIRCNRDATA), pszSrcFile, __LINE__); 
    34713471      if (!dcd) { 
     
    35193519          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID); 
    35203520          free(dcd); 
    3521 # ifdef FORTIFY 
    3522   Fortify_LeaveScope(); 
    3523 # endif 
     3521#         ifdef FORTIFY 
     3522          Fortify_LeaveScope(); 
     3523#          endif 
    35243524          hwndFrame = (HWND) 0; 
    35253525        } 
  • trunk/dll/dirsize.c

    r1051 r1063  
    6969typedef struct 
    7070{ 
    71   CHAR szDirName[CCHMAXPATH]; 
     71  CHAR szDirName[CCHMAXPATH + 320]; 
    7272  CHAR chStopFlag; 
    7373  BOOL dying; 
     
    309309    CHAR szAllDir[80]; 
    310310    CHAR szBar[80]; 
    311     CHAR szBuf[CCHMAXPATH * 2]; 
    312  
    313 # ifdef FORTIFY 
    314   Fortify_EnterScope(); 
    315 # endif 
     311    CHAR szBuf[CCHMAXPATH + 320]; 
     312 
     313#   ifdef FORTIFY 
     314    Fortify_EnterScope(); 
     315#    endif 
    316316 
    317317    // cbFile = currect directory usage in bytes 
     
    437437# ifdef FORTIFY 
    438438  Fortify_EnterScope(); 
    439 # endif 
     439#  endif 
    440440 
    441441  hwndCnr = dirsize->hwndCnr; 
     
    467467# ifdef FORTIFY 
    468468  Fortify_LeaveScope(); 
    469 # endif 
     469#  endif 
    470470} 
    471471 
     
    483483      break; 
    484484    } 
    485 # ifdef FORTIFY 
    486   Fortify_EnterScope(); 
    487 # endif 
     485#   ifdef FORTIFY 
     486    Fortify_EnterScope(); 
     487#    endif 
    488488    pState = xmallocz(sizeof(tState), pszSrcFile, __LINE__); 
    489489    if (!pState) { 
     
    10251025      DosSleep(16); //05 Aug 07 GKY 33 
    10261026      xfree(pState, pszSrcFile, __LINE__); // Let's hope no one is still looking 
    1027 # ifdef FORTIFY 
    1028   Fortify_LeaveScope(); 
    1029 # endif 
     1027#     ifdef FORTIFY 
     1028      Fortify_LeaveScope(); 
     1029#      endif 
    10301030    } 
    10311031    DosPostEventSem(CompactSem); 
  • trunk/dll/droplist.c

    r1018 r1063  
    467467 
    468468  if (files && numfiles && files[0] && pcbFile && pulitemID) { 
    469 # ifdef FORTIFY 
    470   Fortify_EnterScope(); 
    471 # endif 
     469#   ifdef FORTIFY 
     470    Fortify_EnterScope(); 
     471#    endif 
    472472    li = xmallocz(sizeof(LIST