[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/missing _string.cpp,1.2,1.2.2.1 string.h,1.2,1.2.2.1
Chris Apers
chrilith at users.sourceforge.net
Tue May 6 07:37:09 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src extend.cpp,1.2,1.2.2.1 extend.h,1.2,1.2.2.1 palm.cpp,1.4,1.4.2.1 palm.h,1.3,1.3.2.1 palmsave.cpp,1.2,1.2.2.1 palmstart.cpp,1.4,1.4.2.1 extras.cpp,1.2,NONE extras.h,1.2,NONE
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.31,1.31.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing
In directory sc8-pr-cvs1:/tmp/cvs-serv680
Modified Files:
Tag: branch-0-4-0
_string.cpp string.h
Log Message:
Branch update
Index: _string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_string.cpp,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- _string.cpp 30 Apr 2003 21:08:43 -0000 1.2
+++ _string.cpp 6 May 2003 14:36:33 -0000 1.2.2.1
@@ -21,11 +21,18 @@
*/
#include "string.h"
-
-Char *StrTokNext;
///////////////////////////////////////////////////////////////////////////////
-Char *strtok(Char *str, const Char *sep)
-{
+void *memchr(const void *s, int c, UInt32 n) {
+ UInt32 chr;
+ for(chr = 0; chr < n;chr++,((UInt8 *)s)++)
+ if ( *((UInt8 *)s) == c)
+ return (void *)s;
+
+ return NULL;
+}
+///////////////////////////////////////////////////////////////////////////////
+Char *StrTokNext;
+Char *strtok(Char *str, const Char *sep) {
Char *position = NULL,
*found,
*end;
@@ -67,8 +74,7 @@
return str;
}
///////////////////////////////////////////////////////////////////////////////
-Char *strpbrk(const Char *s1, const Char *s2)
-{
+Char *strpbrk(const Char *s1, const Char *s2) {
Char *found;
UInt32 n;
@@ -81,8 +87,7 @@
return NULL;
}
///////////////////////////////////////////////////////////////////////////////
-Char *strrchr(const Char *s, int c)
-{
+Char *strrchr(const Char *s, int c) {
UInt32 chr;
UInt32 n = StrLen(s);
@@ -93,8 +98,7 @@
return NULL;
}
///////////////////////////////////////////////////////////////////////////////
-Char *strdup(const Char *s1)
-{
+Char *strdup(const Char *s1) {
Char* buf = (Char *)MemPtrNew(StrLen(s1)+1);
if(buf)
Index: string.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/string.h,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- string.h 30 Apr 2003 21:08:44 -0000 1.2
+++ string.h 6 May 2003 14:36:33 -0000 1.2.2.1
@@ -36,6 +36,7 @@
#define strncmp StrNCompare
#define strstr StrStr
+void *memchr(const void *s, int c, UInt32 n);
Char *strtok(Char *str, const Char *sep);
Char *strrchr(const Char *s, int c);
Char *strdup(const Char *strSource);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src extend.cpp,1.2,1.2.2.1 extend.h,1.2,1.2.2.1 palm.cpp,1.4,1.4.2.1 palm.h,1.3,1.3.2.1 palmsave.cpp,1.2,1.2.2.1 palmstart.cpp,1.4,1.4.2.1 extras.cpp,1.2,NONE extras.h,1.2,NONE
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.31,1.31.2.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list