1:1 source port of the engine and game code; Windows build and system layer; docs. No game files or SDK headers.
This commit is contained in:
parent
c3b032a45a
commit
0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions
45
tools/port/thirdparty/jasper-1.900.1-playground.patch
vendored
Normal file
45
tools/port/thirdparty/jasper-1.900.1-playground.patch
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
diff --color -ru ../src/jasper-1.900.1/src/libjasper/base/jas_stream.c jasper-1.900.1/src/libjasper/base/jas_stream.c
|
||||
--- ../src/jasper-1.900.1/src/libjasper/base/jas_stream.c 2007-01-20 05:43:05
|
||||
+++ jasper-1.900.1/src/libjasper/base/jas_stream.c 2026-10-15 22:33:46
|
||||
@@ -95,10 +95,11 @@
|
||||
* Local function prototypes.
|
||||
\******************************************************************************/
|
||||
|
||||
-static int jas_strtoopenmode(const char *s);
|
||||
-static void jas_stream_destroy(jas_stream_t *stream);
|
||||
+/* Playground: jas_strtoopenmode, jas_stream_destroy and jas_stream_initbuf are external (called by pflib ezjp2.cpp) */
|
||||
+int jas_strtoopenmode(const char *s);
|
||||
+void jas_stream_destroy(jas_stream_t *stream);
|
||||
static jas_stream_t *jas_stream_create(void);
|
||||
-static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
+void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
int bufsize);
|
||||
|
||||
static int mem_read(jas_stream_obj_t *obj, char *buf, int cnt);
|
||||
@@ -446,7 +447,7 @@
|
||||
return stream;
|
||||
}
|
||||
|
||||
-static void jas_stream_destroy(jas_stream_t *stream)
|
||||
+void jas_stream_destroy(jas_stream_t *stream)
|
||||
{
|
||||
/* If the memory for the buffer was allocated with malloc, free
|
||||
this memory. */
|
||||
@@ -693,7 +694,7 @@
|
||||
* Buffer initialization code.
|
||||
\******************************************************************************/
|
||||
|
||||
-static void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
+void jas_stream_initbuf(jas_stream_t *stream, int bufmode, char *buf,
|
||||
int bufsize)
|
||||
{
|
||||
/* If this function is being called, the buffer should not have been
|
||||
@@ -840,7 +841,7 @@
|
||||
* Miscellaneous code.
|
||||
\******************************************************************************/
|
||||
|
||||
-static int jas_strtoopenmode(const char *s)
|
||||
+int jas_strtoopenmode(const char *s)
|
||||
{
|
||||
int openmode = 0;
|
||||
while (*s != '\0') {
|
||||
Loading…
Add table
Add a link
Reference in a new issue