Ignore:
Timestamp:
Sep 3, 2002, 8:17:46 PM (23 years ago)
Author:
umoeller
Message:

Minor adjustments for new static handling.

File:
1 edited

Legend:

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

    r212 r222  
    804804 */
    805805
    806 static APIRET CheckAndQualifyExecutable(PPROGDETAILS pDetails,          // in/out: program details
     806STATIC APIRET CheckAndQualifyExecutable(PPROGDETAILS pDetails,          // in/out: program details
    807807                                        PXSTRING pstrExecutablePatched) // in/out: buffer for q'fied exec (must be init'ed)
    808808{
     
    859859 */
    860860
    861 static APIRET CallBatchCorrectly(PPROGDETAILS pProgDetails,
     861STATIC APIRET CallBatchCorrectly(PPROGDETAILS pProgDetails,
    862862                                 PXSTRING pstrExecutablePatched, // in/out: buffer for q'fied exec (must be init'ed)
    863863                                 PXSTRING pstrParams,        // in/out: modified parameters (reallocated)
     
    979979    return arc;
    980980}
    981 
    982 #ifdef _PMPRINTF_
    983 
    984 static void DumpMemoryBlock(PBYTE pb,       // in: start address
    985                      ULONG ulSize,   // in: size of block
    986                      ULONG ulIndent) // in: how many spaces to put
    987                                      //     before each output line
    988 {
    989     TRY_QUIET(excpt1)
    990     {
    991         PBYTE   pbCurrent = pb;                 // current byte
    992         ULONG   ulCount = 0,
    993                 ulCharsInLine = 0;              // if this grows > 7, a new line is started
    994         CHAR    szTemp[1000];
    995         CHAR    szLine[400] = "",
    996                 szAscii[30] = "         ";      // ASCII representation; filled for every line
    997         PSZ     pszLine = szLine,
    998                 pszAscii = szAscii;
    999 
    1000         for (pbCurrent = pb;
    1001              ulCount < ulSize;
    1002              pbCurrent++, ulCount++)
    1003         {
    1004             if (ulCharsInLine == 0)
    1005             {
    1006                 memset(szLine, ' ', ulIndent);
    1007                 pszLine += ulIndent;
    1008             }
    1009             pszLine += sprintf(pszLine, "%02lX ", (ULONG)*pbCurrent);
    1010 
    1011             if ( (*pbCurrent > 31) && (*pbCurrent < 127) )
    1012                 // printable character:
    1013                 *pszAscii = *pbCurrent;
    1014             else
    1015                 *pszAscii = '.';
    1016             pszAscii++;
    1017 
    1018             ulCharsInLine++;
    1019             if (    (ulCharsInLine > 7)         // 8 bytes added?
    1020                  || (ulCount == ulSize-1)       // end of buffer reached?
    1021                )
    1022             {
    1023                 // if we haven't had eight bytes yet,
    1024                 // fill buffer up to eight bytes with spaces
    1025                 ULONG   ul2;
    1026                 for (ul2 = ulCharsInLine;
    1027                      ul2 < 8;
    1028                      ul2++)
    1029                     pszLine += sprintf(pszLine, "   ");
    1030 
    1031                 sprintf(szTemp, "%04lX:  %s  %ss",
    1032                                 (ulCount & 0xFFFFFFF8),  // offset in hex
    1033                                 szLine,         // bytes string
    1034                                 szAscii);       // ASCII string
    1035 
    1036                 _Pmpf(("%s", szTemp));
    1037 
    1038                 // restart line buffer
    1039                 pszLine = szLine;
    1040 
    1041                 // clear ASCII buffer
    1042                 strcpy(szAscii, "         ");
    1043                 pszAscii = szAscii;
    1044 
    1045                 // reset line counter
    1046                 ulCharsInLine = 0;
    1047             }
    1048         }
    1049 
    1050     }
    1051     CATCH(excpt1)
    1052     {
    1053         _Pmpf(("Crash in " __FUNCTION__ ));
    1054     } END_CATCH();
    1055 }
    1056 
    1057 #endif
    1058981
    1059982/*
     
    15991522 */
    16001523
    1601 static APIRET CallDosStartSession(HAPP *phapp,
     1524STATIC APIRET CallDosStartSession(HAPP *phapp,
    16021525                                  const PROGDETAILS *pNewProgDetails, // in: program spec (req.)
    16031526                                  ULONG cbFailingName,
     
    17541677 */
    17551678
    1756 static APIRET CallWinStartApp(HAPP *phapp,            // out: application handle if NO_ERROR is returned
     1679STATIC APIRET CallWinStartApp(HAPP *phapp,            // out: application handle if NO_ERROR is returned
    17571680                              HWND hwndNotify,        // in: notify window or NULLHANDLE
    17581681                              const PROGDETAILS *pcProgDetails, // in: program spec (req.)
Note: See TracChangeset for help on using the changeset viewer.