[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/missing _stdio.cpp,1.9,1.10 _stdlib.cpp,1.8,1.9 _string.cpp,1.5,1.6 _time.cpp,1.4,1.5 _unistd.cpp,1.4,1.5
Chris Apers
chrilith at users.sourceforge.net
Wed Oct 6 05:09:10 CEST 2004
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3971
Modified Files:
_stdio.cpp _stdlib.cpp _string.cpp _time.cpp _unistd.cpp
Log Message:
Use system path
Index: _stdio.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_stdio.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- _stdio.cpp 25 May 2004 13:33:31 -0000 1.9
+++ _stdio.cpp 6 Oct 2004 09:41:33 -0000 1.10
@@ -20,7 +20,7 @@
*
*/
-#include "stdio.h"
+#include <stdio.h>
FileRef gStdioOutput = 0;
Index: _stdlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_stdlib.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- _stdlib.cpp 12 Sep 2004 11:27:36 -0000 1.8
+++ _stdlib.cpp 6 Oct 2004 09:41:34 -0000 1.9
@@ -1,94 +1,94 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001 Ludvig Strigeus
- * Copyright (C) 2001-2004 The ScummVM project
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Header$
- *
- */
-
-#include "stdlib.h"
-
-void *bsearch(const void *key, const void *base, UInt32 nmemb, UInt32 size, int (*compar)(const void *, const void *)) {
- Int32 position;
-
- if (SysBinarySearch(base, nmemb, size, (SearchFuncPtr)compar, key, 0, &position, true))
- return (void *)((UInt32)base + size * position);
-
- return NULL;
-}
-
-long strtol(const char *s, char **endptr, int base) {
- // WARNING : only base = 10 supported
- long val = StrAToI(s);
-
- if (endptr) {
- Char str[maxStrIToALen];
- StrIToA(str, val);
-
- if (StrNCompare(s, str, StrLen(str)) == 0)
- *endptr = (char *)s + StrLen(str);
- }
-
- return val;
-}
-
-MemPtr calloc(UInt32 nelem, UInt32 elsize) {
- MemPtr newP;
- UInt32 size = nelem*elsize;
-
- newP = MemGluePtrNew(size);
-
- if (newP)
- MemSet(newP,size,0);
-
- return newP;
-}
-
-Err free(MemPtr memP) {
- if (memP)
- return MemPtrFree(memP);
- return memErrInvalidParam;
-}
-
-MemPtr realloc(MemPtr oldP, UInt32 size) {
-
- if (oldP != NULL)
- if (MemPtrResize(oldP,size) == 0)
- return oldP;
-
- MemPtr newP = MemPtrNew(size);
-
- if (oldP!=NULL)
- {
- MemMove(newP,oldP,MemPtrSize(oldP));
- MemPtrFree(oldP);
- }
- return newP;
-}
-
-ErrJumpBuf stdlib_errJumpBuf;
-#define ERR_MAGIC 0xDADA
-
-void exit(Int16 status) {
- EventType event;
- event.eType = keyDownEvent;
- event.data.keyDown.chr = vchrLaunch;
- event.data.keyDown.modifiers = commandKeyMask;
- EvtAddUniqueEventToQueue(&event, 0, true);
-
- ErrLongJump(stdlib_errJumpBuf, status == 0 ? 0xDADA : status);
-}
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2001 Ludvig Strigeus
+ * Copyright (C) 2001-2004 The ScummVM project
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Header$
+ *
+ */
+
+#include <stdlib.h>
+
+void *bsearch(const void *key, const void *base, UInt32 nmemb, UInt32 size, int (*compar)(const void *, const void *)) {
+ Int32 position;
+
+ if (SysBinarySearch(base, nmemb, size, (SearchFuncPtr)compar, key, 0, &position, true))
+ return (void *)((UInt32)base + size * position);
+
+ return NULL;
+}
+
+long strtol(const char *s, char **endptr, int base) {
+ // WARNING : only base = 10 supported
+ long val = StrAToI(s);
+
+ if (endptr) {
+ Char str[maxStrIToALen];
+ StrIToA(str, val);
+
+ if (StrNCompare(s, str, StrLen(str)) == 0)
+ *endptr = (char *)s + StrLen(str);
+ }
+
+ return val;
+}
+
+MemPtr calloc(UInt32 nelem, UInt32 elsize) {
+ MemPtr newP;
+ UInt32 size = nelem*elsize;
+
+ newP = MemGluePtrNew(size);
+
+ if (newP)
+ MemSet(newP,size,0);
+
+ return newP;
+}
+
+Err free(MemPtr memP) {
+ if (memP)
+ return MemPtrFree(memP);
+ return memErrInvalidParam;
+}
+
+MemPtr realloc(MemPtr oldP, UInt32 size) {
+
+ if (oldP != NULL)
+ if (MemPtrResize(oldP,size) == 0)
+ return oldP;
+
+ MemPtr newP = MemPtrNew(size);
+
+ if (oldP!=NULL)
+ {
+ MemMove(newP,oldP,MemPtrSize(oldP));
+ MemPtrFree(oldP);
+ }
+ return newP;
+}
+
+ErrJumpBuf stdlib_errJumpBuf;
+#define ERR_MAGIC 0xDADA
+
+void exit(Int16 status) {
+ EventType event;
+ event.eType = keyDownEvent;
+ event.data.keyDown.chr = vchrLaunch;
+ event.data.keyDown.modifiers = commandKeyMask;
+ EvtAddUniqueEventToQueue(&event, 0, true);
+
+ ErrLongJump(stdlib_errJumpBuf, status == 0 ? 0xDADA : status);
+}
Index: _string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_string.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- _string.cpp 25 May 2004 13:38:36 -0000 1.5
+++ _string.cpp 6 Oct 2004 09:41:34 -0000 1.6
@@ -20,7 +20,7 @@
*
*/
-#include "string.h"
+#include <string.h>
void *memchr(const void *s, int c, UInt32 n) {
UInt32 chr;
Index: _time.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_time.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- _time.cpp 6 Jan 2004 12:45:25 -0000 1.4
+++ _time.cpp 6 Oct 2004 09:41:34 -0000 1.5
@@ -20,7 +20,7 @@
*
*/
-#include "time.h"
+#include <time.h>
// ignore GMT, only device time
@@ -57,4 +57,4 @@
tmDate.tm_wday = dt.weekDay;
return &tmDate;
-}
\ No newline at end of file
+}
Index: _unistd.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/missing/_unistd.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- _unistd.cpp 25 May 2004 13:39:50 -0000 1.4
+++ _unistd.cpp 6 Oct 2004 09:41:34 -0000 1.5
@@ -20,7 +20,7 @@
*
*/
-#include "unistd.h"
+#include <unistd.h>
const Char *gUnistdCWD = NULL;
@@ -36,4 +36,4 @@
}
return copy;
-}
\ No newline at end of file
+}
More information about the Scummvm-git-logs
mailing list