- Timestamp:
- May 2, 2002, 5:17:26 PM (23 years ago)
- Location:
- trunk/src/helpers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dialog.c
r159 r161 3135 3135 0, 3136 3136 { 150, SZL_AUTOSIZE }, // size 3137 5 // spacing3137 COMMON_SPACING, 3138 3138 }, 3139 3139 Entry = { … … 3145 3145 0, 3146 3146 { 150, SZL_AUTOSIZE }, // size 3147 5 // spacing3147 COMMON_SPACING, 3148 3148 }, 3149 3149 OKButton = { … … 3155 3155 0, 3156 3156 { STD_BUTTON_WIDTH, STD_BUTTON_HEIGHT }, // size 3157 5 // spacing3157 COMMON_SPACING, 3158 3158 }, 3159 3159 CancelButton = { … … 3165 3165 0, 3166 3166 { STD_BUTTON_WIDTH, STD_BUTTON_HEIGHT }, // size 3167 5 // spacing3167 COMMON_SPACING, 3168 3168 }; 3169 3169 DLGHITEM DlgTemplate[] = … … 3217 3217 if (NO_ERROR == dlghCreateDlg(&hwndDlg, 3218 3218 hwndOwner, 3219 FCF_ TITLEBAR | FCF_SYSMENU | FCF_DLGBORDER | FCF_NOBYTEALIGN,3219 FCF_FIXED_DLG, 3220 3220 WinDefDlgProc, 3221 3221 strTitle.psz, -
trunk/src/helpers/dosh.c
r159 r161 1282 1282 * 1283 1283 *@@added V0.9.16 (2002-01-13) [umoeller] 1284 *@@changed V0.9.19 (2002-04-25) [umoeller]: added CDWFS (RSJ CD-Writer) 1284 1285 */ 1285 1286 … … 1477 1478 fCheckEAs = TRUE; 1478 1479 } 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 } 1479 1488 } 1480 1489 else … … 1556 1565 /* 1557 1566 *@@ 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)." 1562 1589 * 1563 1590 *@@added V0.9.6 (2000-11-24) [pr] -
trunk/src/helpers/gpih.c
r154 r161 1905 1905 if (cx) 1906 1906 { 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 1913 1907 // store first bitmap of any type 1914 1908 if (!puFirstAny) -
trunk/src/helpers/stringh.c
r159 r161 550 550 * 551 551 * Example: 552 * 552 553 + PSZ pszBuf = "KEYWORD { --blah-- } next", 553 554 + pEnd; … … 555 556 + '{', '}', 556 557 + &pEnd) 558 * 557 559 * would return a new buffer containing " --blah-- ", 558 560 * and ppEnd would afterwards point to the space … … 562 564 */ 563 565 564 PSZ strhExtract(P SZ pszBuf,// in: search buffer566 PSZ strhExtract(PCSZ pszBuf, // in: search buffer 565 567 CHAR cOpen, // in: opening char 566 568 CHAR cClose, // in: closing char 567 P SZ *ppEnd)// out: if != NULL, receives first character after closing char569 PCSZ *ppEnd) // out: if != NULL, receives first character after closing char 568 570 { 569 571 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) 581 586 { 582 if (*p == cOpen) 583 lLevel++; 584 else if (*p == cClose) 587 lLevel--; 588 if (lLevel <= 0) 585 589 { 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) 597 597 } 598 else if (*p == '\"')599 {600 // beginning of string:601 PSZ p2 = p+1;602 // find end of string603 while ((*p2) && (*p2 != '\"'))604 p2++;605 606 if (*p2 == '\"')607 // closing quote found:608 // search on after that609 p = p2; // raised below610 else611 break; // while (*p)612 }613 614 p++;615 598 } 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++; 616 616 } 617 617 }
Note:
See TracChangeset
for help on using the changeset viewer.