Changeset 161 for trunk/src


Ignore:
Timestamp:
May 2, 2002, 5:17:26 PM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

Location:
trunk/src/helpers
Files:
4 edited

Legend:

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

    r159 r161  
    31353135                            0,
    31363136                            { 150, SZL_AUTOSIZE },     // size
    3137                             5               // spacing
     3137                            COMMON_SPACING,
    31383138                         },
    31393139                Entry = {
     
    31453145                            0,
    31463146                            { 150, SZL_AUTOSIZE },     // size
    3147                             5               // spacing
     3147                            COMMON_SPACING,
    31483148                         },
    31493149                OKButton = {
     
    31553155                            0,
    31563156                            { STD_BUTTON_WIDTH, STD_BUTTON_HEIGHT },    // size
    3157                             5               // spacing
     3157                            COMMON_SPACING,
    31583158                         },
    31593159                CancelButton = {
     
    31653165                            0,
    31663166                            { STD_BUTTON_WIDTH, STD_BUTTON_HEIGHT },    // size
    3167                             5               // spacing
     3167                            COMMON_SPACING,
    31683168                         };
    31693169    DLGHITEM DlgTemplate[] =
     
    32173217    if (NO_ERROR == dlghCreateDlg(&hwndDlg,
    32183218                                  hwndOwner,
    3219                                   FCF_TITLEBAR | FCF_SYSMENU | FCF_DLGBORDER | FCF_NOBYTEALIGN,
     3219                                  FCF_FIXED_DLG,
    32203220                                  WinDefDlgProc,
    32213221                                  strTitle.psz,
  • trunk/src/helpers/dosh.c

    r159 r161  
    12821282 *
    12831283 *@@added V0.9.16 (2002-01-13) [umoeller]
     1284 *@@changed V0.9.19 (2002-04-25) [umoeller]: added CDWFS (RSJ CD-Writer)
    12841285 */
    12851286
     
    14771478                fCheckEAs = TRUE;
    14781479            }
     1480            else if (!stricmp(pdi->szFileSystem, "CDWFS"))
     1481                    // V0.9.19 (2002-04-25) [umoeller]
     1482            {
     1483                pdi->lFileSystem = FSYS_CDWFS;
     1484                pdi->flDevice |= DFL_SUPPORTS_LONGNAMES;
     1485                fCheckLongnames = FALSE;
     1486                fCheckEAs = FALSE;
     1487            }
    14791488        }
    14801489        else
     
    15561565/*
    15571566 *@@ doshSetLogicalMap:
    1558  *       sets the mapping of logical floppy drives onto a single
    1559  *       physical floppy drive.
    1560  *       This means selecting either drive A: or drive B: to refer
    1561  *       to the physical drive.
     1567 *      sets the mapping of logical floppy drives onto a single
     1568 *      physical floppy drive.
     1569 *      This means selecting either drive A: or drive B: to refer
     1570 *      to the physical drive.
     1571 *
     1572 *      Paul explained this to me as follows:
     1573 *
     1574 *      "It is really very simple - in a single physical floppy
     1575 *      drive system,  you still have 2 logical floppy drives
     1576 *      A: and B:. This was primarily to  support disk copying
     1577 *      e.g. diskcopy a: b: on a single floppy system without
     1578 *      having to rewrite applications. Whenever the application
     1579 *      accessed the other logical drive, the user would get a
     1580 *      prompt from the OS to swap disks.
     1581 *
     1582 *      "These calls allow applications to bypass the prompt by
     1583 *      doing the mapping themselves. They just get/set which
     1584 *      logical drive is currently mapped to the physical drive.
     1585 *      This concept existed in DOS as well although the specifics
     1586 *      of how it was done escape me now.... actually I just
     1587 *      looked it up - the byte at 0:504h in low memory on
     1588 *      DOS controlled this (it doesn't work in VDMs)."
    15621589 *
    15631590 *@@added V0.9.6 (2000-11-24) [pr]
  • trunk/src/helpers/gpih.c

    r154 r161  
    19051905                            if (cx)
    19061906                            {
    1907                                 _Pmpf(("found bmp cxDisplay %d, cyDisplay %d",
    1908                                             pba->cxDisplay,
    1909                                             pba->cyDisplay));
    1910                                 _Pmpf(("   cx %d, cy %d, cBitCount %d",
    1911                                             cx, cy, cBitCount));
    1912 
    19131907                                // store first bitmap of any type
    19141908                                if (!puFirstAny)
  • trunk/src/helpers/stringh.c

    r159 r161  
    550550 *
    551551 *      Example:
     552 *
    552553 +          PSZ pszBuf = "KEYWORD { --blah-- } next",
    553554 +              pEnd;
     
    555556 +                      '{', '}',
    556557 +                      &pEnd)
     558 *
    557559 *      would return a new buffer containing " --blah-- ",
    558560 *      and ppEnd would afterwards point to the space
     
    562564 */
    563565
    564 PSZ strhExtract(PSZ pszBuf,     // in: search buffer
     566PSZ strhExtract(PCSZ pszBuf,    // in: search buffer
    565567                CHAR cOpen,     // in: opening char
    566568                CHAR cClose,    // in: closing char
    567                 PSZ *ppEnd)     // out: if != NULL, receives first character after closing char
     569                PCSZ *ppEnd)    // out: if != NULL, receives first character after closing char
    568570{
    569571    PSZ pszReturn = NULL;
    570 
    571     if (pszBuf)
    572     {
    573         PSZ pOpen;
    574         if (pOpen = strchr(pszBuf, cOpen))
    575         {
    576             // opening char found:
    577             // now go thru the whole rest of the buffer
    578             PSZ     p = pOpen+1;
    579             LONG    lLevel = 1;        // if this goes 0, we're done
    580             while (*p)
     572    PCSZ pOpen;
     573    if (    (pszBuf)
     574         && (pOpen = strchr(pszBuf, cOpen))
     575       )
     576    {
     577        // opening char found:
     578        // now go thru the whole rest of the buffer
     579        PCSZ     p = pOpen + 1;
     580        LONG    lLevel = 1;        // if this goes 0, we're done
     581        while (*p)
     582        {
     583            if (*p == cOpen)
     584                lLevel++;
     585            else if (*p == cClose)
    581586            {
    582                 if (*p == cOpen)
    583                     lLevel++;
    584                 else if (*p == cClose)
     587                lLevel--;
     588                if (lLevel <= 0)
    585589                {
    586                     lLevel--;
    587                     if (lLevel <= 0)
    588                     {
    589                         // matching closing bracket found:
    590                         // extract string
    591                         pszReturn = strhSubstr(pOpen+1,  // after cOpen
    592                                                p);          // excluding cClose
    593                         if (ppEnd)
    594                             *ppEnd = p+1;
    595                         break;      // while (*p)
    596                     }
     590                    // matching closing bracket found:
     591                    // extract string
     592                    pszReturn = strhSubstr(pOpen + 1,   // after cOpen
     593                                           p);          // excluding cClose
     594                    if (ppEnd)
     595                        *ppEnd = p + 1;
     596                    break;      // while (*p)
    597597                }
    598                 else if (*p == '\"')
    599                 {
    600                     // beginning of string:
    601                     PSZ p2 = p+1;
    602                     // find end of string
    603                     while ((*p2) && (*p2 != '\"'))
    604                         p2++;
    605 
    606                     if (*p2 == '\"')
    607                         // closing quote found:
    608                         // search on after that
    609                         p = p2;     // raised below
    610                     else
    611                         break;      // while (*p)
    612                 }
    613 
    614                 p++;
    615598            }
     599            else if (*p == '\"')
     600            {
     601                // beginning of string:
     602                PCSZ p2 = p+1;
     603                // find end of string
     604                while ((*p2) && (*p2 != '\"'))
     605                    p2++;
     606
     607                if (*p2 == '\"')
     608                    // closing quote found:
     609                    // search on after that
     610                    p = p2;     // raised below
     611                else
     612                    break;      // while (*p)
     613            }
     614
     615            p++;
    616616        }
    617617    }
Note: See TracChangeset for help on using the changeset viewer.