You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/31 09:20:30 UTC
svn commit: r809482 - in /commons/sandbox/runtime/trunk/src/main/native:
Makefile.in Makefile.msc.in shared/zip.c
Author: mturk
Date: Mon Aug 31 07:20:29 2009
New Revision: 809482
URL: http://svn.apache.org/viewvc?rev=809482&view=rev
Log:
Add zip code stub
Added:
commons/sandbox/runtime/trunk/src/main/native/shared/zip.c (with props)
Modified:
commons/sandbox/runtime/trunk/src/main/native/Makefile.in
commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in
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=809482&r1=809481&r2=809482&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/Makefile.in (original)
+++ commons/sandbox/runtime/trunk/src/main/native/Makefile.in Mon Aug 31 07:20:29 2009
@@ -108,6 +108,7 @@
$(SRCDIR)/shared/string.$(OBJ) \
$(SRCDIR)/shared/tables.$(OBJ) \
$(SRCDIR)/shared/xdr.$(OBJ) \
+ $(SRCDIR)/shared/zip.$(OBJ) \
$(SRCDIR)/shared/version.$(OBJ)
LINUX_OBJS= \
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=809482&r1=809481&r2=809482&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in (original)
+++ commons/sandbox/runtime/trunk/src/main/native/Makefile.msc.in Mon Aug 31 07:20:29 2009
@@ -97,6 +97,7 @@
$(SRCDIR)/shared/string.$(OBJ) \
$(SRCDIR)/shared/tables.$(OBJ) \
$(SRCDIR)/shared/xdr.$(OBJ) \
+ $(SRCDIR)/shared/zip.$(OBJ) \
$(SRCDIR)/shared/version.$(OBJ)
WINDOWS_OBJS= \
Added: commons/sandbox/runtime/trunk/src/main/native/shared/zip.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/zip.c?rev=809482&view=auto
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/zip.c (added)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/zip.c Mon Aug 31 07:20:29 2009
@@ -0,0 +1,38 @@
+/* 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 "zlib/zlib.h"
+#include "bzip2/bzlib.h"
+
+ACR_DECLARE(const char *) ACR_ZlibVersion()
+{
+ static char buf[ACR_SBUFF_SIZ] = "";
+
+ if (!buf[0]) {
+ snprintf("Zlib %s - %08x", ACR_SBUFF_LEN,
+ zlibVersion(),
+ zlibCompileFlags());
+ }
+ return buf;
+}
Propchange: commons/sandbox/runtime/trunk/src/main/native/shared/zip.c
------------------------------------------------------------------------------
svn:eol-style = native