Changeset 12031
- Timestamp:
- Oct 25, 1999, 9:25:34 PM (26 years ago)
- Location:
- tags/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/ChangeLog ¶
r12029 r12031 1 /* $Id: ChangeLog,v 1.36 4 1999-10-25 18:23:02 achimhaExp $ */1 /* $Id: ChangeLog,v 1.365 1999-10-25 19:25:34 phaller Exp $ */ 2 2 3 3 99-10-25: Achim Hasenmueller <achimha@innotek.de> … … 7 7 99-10-25: Patrick Haller <phaller@gmx.net> 8 8 - ODINWRAP: Fix: Bugfix + Heap Check embracing every wrapper function 9 - NTDLL: Add: functions by Jens Wiesner 9 10 10 11 99-10-25: Markus Montkowski <mmontkowski@gmx.de> -
TabularUnified tags/trunk/src/NTDLL/crt.cpp ¶
r11520 r12031 1 /* $Id: crt.cpp,v 1. 9 1999-09-13 19:45:33 phaller Exp $ */1 /* $Id: crt.cpp,v 1.10 1999-10-25 19:24:13 phaller Exp $ */ 2 2 3 3 /* … … 1314 1314 *****************************************************************************/ 1315 1315 1316 LONG CDECL NTDLL__CIpow( void)1317 { 1318 dprintf(("NTDLL: _CIpow not implemented.\n"));1319 1320 return 0;1316 LONG CDECL NTDLL__CIpow(double x, double y) 1317 { 1318 dprintf(("NTDLL: _CIpow\n")); 1319 dprintf(("should be register function\n")); 1320 return pow(x, y); 1321 1321 } 1322 1322 … … 1380 1380 LPCSTR s1, /* [in] first string */ 1381 1381 LPCSTR s2, /* [in] second string */ 1382 DWORD len /* [in] length to compare */ ) 1383 { 1382 DWORD len /* [in] length to compare */ ) 1383 { 1384 1384 dprintf(("NTDLL: memicmp(%08xh, %08xh, %08xh)\n",s1,s2,len)); 1385 1385 int i; … … 1453 1453 *****************************************************************************/ 1454 1454 1455 void CDECL NTDLL__splitpath( const char *path, char *drive, 1456 char *dir, char *fname, char *ext ) 1457 { 1458 dprintf(("NTDLL: _splitpath(%08xh, %08xh, %08xh, %08xh, %08xh) not implemented\n", 1459 path, 1460 drive, 1461 dir, 1462 fname, 1463 ext)); 1455 void CDECL NTDLL__splitpath( const char *path, char *drive, char *dir, char *fname, char *ext ) 1456 { 1457 dprintf(("NTDLL: _splitpath")); 1458 1459 char *tmp_drive; 1460 char *tmp_dir; 1461 char *tmp_ext; 1462 1463 tmp_drive = (char *)strchr(path,':'); 1464 if ( tmp_drive != (char *)NULL ) { 1465 strncpy(drive,tmp_drive-1,1); 1466 *(drive+1) = 0; 1467 } 1468 else { 1469 *drive = 0; 1470 tmp_drive = (char *)path; 1471 } 1472 1473 tmp_dir = (char *)strrchr(path,'\\'); 1474 if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) { 1475 strncpy(dir,tmp_drive+1,tmp_dir - tmp_drive); 1476 *(dir + (tmp_dir - tmp_drive)) = 0; 1477 } 1478 else 1479 *dir =0; 1480 1481 tmp_ext = ( char *)strrchr(path,'.'); 1482 if ( tmp_ext != NULL ) { 1483 strcpy(ext,tmp_ext); 1484 } 1485 else 1486 *ext = 0; 1487 if ( tmp_dir != NULL ) { 1488 strncpy(fname,tmp_dir+1,tmp_ext - tmp_dir - 1); 1489 *(fname + (tmp_ext - tmp_dir -1)) = 0; 1490 } 1491 else 1492 strncpy(fname,path,tmp_ext - path); 1464 1493 1465 1494 } … … 1503 1532 { 1504 1533 char *y =x; 1505 1534 1506 1535 dprintf(("NTDLL: _strlwr got %s\n", x)); 1507 1536 while (*y) { … … 1511 1540 } 1512 1541 dprintf((" returned %s\n", x)); 1513 1542 1514 1543 return x; 1515 1544 } … … 1530 1559 int CDECL NTDLL__strnicmp( LPCSTR s1, LPCSTR s2, INT n ) 1531 1560 { 1532 dprintf(("NTDLL: _strnicmp (%08xh, %08xh, %08xh) not implemented\n",1561 dprintf(("NTDLL: _strnicmp (%s,%s,%d)\n", 1533 1562 s1, 1534 1563 s2, 1535 1564 n)); 1536 1565 1566 // @@@PH: sure it's not a UNICODE API? 1567 return (lstrncmpiA(s1,s2,n)); 1568 1569 /* 1570 if (n == 0) 1571 return 0; 1572 do { 1573 if (toupper(*s1) != toupper(*s2++)) 1574 return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)--s2); 1575 if (*s1++ == 0) 1576 break; 1577 } while (--n != 0); 1537 1578 return 0; 1579 */ 1538 1580 } 1539 1581 … … 1553 1595 LPSTR CDECL NTDLL__strupr(LPSTR x) 1554 1596 { 1555 dprintf(("NTDLL: _strupr(% 08xh)\n",1597 dprintf(("NTDLL: _strupr(%s)\n", 1556 1598 x)); 1557 1599 1558 LPSTR y=x; 1559 1560 while (*y) { 1561 *y=toupper(*y); 1562 y++; 1600 LPSTR y=x; 1601 1602 while (*y) 1603 { 1604 *y=toupper(*y); 1605 y++; 1563 1606 } 1564 1607 return x; … … 1839 1882 int (*compar)( const void *s1, const void *s2 )) 1840 1883 { 1841 dprintf(("NTDLL: qsort(%08xh, %08xh, %08xh, %08xh) \n",1884 dprintf(("NTDLL: qsort(%08xh, %08xh, %08xh, %08xh) not implemented.\n", 1842 1885 base, nmemb, size, compar)); 1843 1886 } -
TabularUnified tags/trunk/src/NTDLL/ntdll.def ¶
r11520 r12031 1 ; $Id: ntdll.def,v 1.1 8 1999-09-13 19:45:34phaller Exp $1 ; $Id: ntdll.def,v 1.19 1999-10-25 19:24:13 phaller Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 8 8 IMPORTS 9 9 fwd_RtlUnwind = KERNEL32.RtlUnwind 10 fwd_memmove = KERNEL32.memmove 10 fwd_memmove = KERNEL32.memmove 11 11 fwd_RtlFillMemory = KERNEL32.RtlFillMemory 12 12 fwd_RtlMoveMemory = KERNEL32.RtlMoveMemory … … 16 16 fwd_RtlEnterCriticalSection = KERNEL32.EnterCriticalSection 17 17 fwd_RtlDeleteCriticalSection = KERNEL32.DeleteCriticalSection 18 18 19 _lstrncmpW@12 = KERNEL32.lstrncmpW 20 _lstrncmpiA@12 = KERNEL32.lstrncmpiA 21 _lstrncmpiW@12 = KERNEL32.lstrncmpiW 19 22 HEAP_strdupW = KERNEL32.HEAP_strdupW 20 23 HEAP_strdupWtoA = KERNEL32.HEAP_strdupWtoA 24 25 21 26 22 27 EXPORTS
Note:
See TracChangeset
for help on using the changeset viewer.