commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r809358 - in /commons/sandbox/runtime/trunk/src/main/native: Makefile.in Makefile.msc.in shared/bzip2.c test/testsuite.c
Date Sun, 30 Aug 2009 15:40:32 GMT
Author: mturk
Date: Sun Aug 30 15:40:31 2009
New Revision: 809358

URL: http://svn.apache.org/viewvc?rev=809358&view=rev
Log:
Add bzip2 stub

Added:
    commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c   (with props)
Modified:
    commons/sandbox/runtime/trunk/src/main/native/Makefile.in
    commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in
    commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c

Modified: commons/sandbox/runtime/trunk/src/main/native/Makefile.in
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/Makefile.in?rev=809358&r1=809357&r2=809358&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/Makefile.in (original)
+++ commons/sandbox/runtime/trunk/src/main/native/Makefile.in Sun Aug 30 15:40:31 2009
@@ -80,6 +80,7 @@
 
 COMMON_OBJS=\
 	$(SRCDIR)/shared/buildmark.$(OBJ) \
+	$(SRCDIR)/shared/bzip2.$(OBJ) \
 	$(SRCDIR)/shared/clazz.$(OBJ) \
 	$(SRCDIR)/shared/cmnfile.$(OBJ) \
 	$(SRCDIR)/shared/constp.$(OBJ) \

Modified: commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in?rev=809358&r1=809357&r2=809358&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in (original)
+++ commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in Sun Aug 30 15:40:31 2009
@@ -69,6 +69,7 @@
 
 COMMON_OBJS=\
 	$(SRCDIR)/shared/buildmark.$(OBJ) \
+	$(SRCDIR)/shared/bzip2.$(OBJ) \
 	$(SRCDIR)/shared/clazz.$(OBJ) \
 	$(SRCDIR)/shared/cmnfile.$(OBJ) \
 	$(SRCDIR)/shared/constp.$(OBJ) \

Added: commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c?rev=809358&view=auto
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c (added)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c Sun Aug 30 15:40:31 2009
@@ -0,0 +1,34 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "acr.h"
+#include "acr_arch.h"
+#include "acr_private.h"
+#include "acr_error.h"
+#include "acr_string.h"
+#include "acr_clazz.h"
+#include "acr_crypto.h"
+
+#include "bzip2/bzlib.h"
+
+void acr_bz_internal_error(int errorcode)
+{
+    /* TODO: Make this as configurable callback
+     * So that those messages can pop up in Java loggers.
+     */
+    fprintf(stderr, "Internal bzlib error=(%d)\n", errorcode);
+    fflush(stderr);
+}

Propchange: commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c?rev=809358&r1=809357&r2=809358&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c Sun Aug 30 15:40:31 2009
@@ -69,12 +69,6 @@
     {NULL,                                 0,   NULL,     0, NULL }
 };
 
-void acr_bz_internal_error(int errorcode)
-{
-    fprintf(stderr, "Internal bzlib error :%d\n", errorcode);
-    fflush(stderr);
-}
-
 static int test_getenv(int argc, const char *const argv[])
 {
     int failed = 0;



Mime
View raw message