projects
/
org.ibex.core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2003/09/04 07:16:17
[org.ibex.core.git]
/
src
/
org
/
xwt
/
plat
/
GCJ.cc
diff --git
a/src/org/xwt/plat/GCJ.cc
b/src/org/xwt/plat/GCJ.cc
index
b35c94f
..
c1333e4
100644
(file)
--- a/
src/org/xwt/plat/GCJ.cc
+++ b/
src/org/xwt/plat/GCJ.cc
@@
-1,15
+1,26
@@
-#include <stdlib.h>
-#include <stdio.h>
+// Copyright 2002 Adam Megacz, see the COPYING file for licensing [LGPL]
+
+// Inclusions /////////////////////////////////////////////////////////
+
#include <gcj/cni.h>
#include <gcj/array.h>
#include <gcj/cni.h>
#include <gcj/array.h>
-#include "jpeglib.h"
+extern "C" {
+#include <stdlib.h>
+#include <stdio.h>
#include <setjmp.h>
#include <setjmp.h>
-
-#include <java/lang/RuntimeException.h>
+#include "jpeglib.h"
+}
+#include <org/xwt/plat/GCJ.h>
#include <java/io/InputStream.h>
#include <java/io/InputStream.h>
+#include <java/io/ByteArrayInputStream.h>
+#include <java/lang/RuntimeException.h>
#include <org/xwt/plat/GCJ.h>
#include <org/xwt/plat/GCJ$JPEG.h>
#include <org/xwt/plat/GCJ.h>
#include <org/xwt/plat/GCJ$JPEG.h>
+
+
+// JPEG ////////////////////////////////////////////////////////////////
+
#define INPUT_BUF_SIZE (1024 * 16)
typedef struct {
#define INPUT_BUF_SIZE (1024 * 16)
typedef struct {
@@
-97,4
+108,3
@@
void org::xwt::plat::GCJ$JPEG::nativeDecompress() {
jpeg_destroy_decompress(&cinfo);
}
jpeg_destroy_decompress(&cinfo);
}
-