]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Added apreq to NetWare build.
authorGuenter Knauf <fuankg@apache.org>
Mon, 14 Nov 2011 21:39:19 +0000 (21:39 +0000)
committerGuenter Knauf <fuankg@apache.org>
Mon, 14 Nov 2011 21:39:19 +0000 (21:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201918 13f79535-47bb-0310-9956-ffa450edef68

NWGNUmakefile
build/make_nw_export.awk
build/nw_export.inc
include/ap_config.h
include/apreq.h
include/apreq_error.h
include/apreq_parser.h
include/apreq_util.h
modules/NWGNUmakefile
modules/apreq/NWGNUmakefile [new file with mode: 0644]

index c52971a7eda9f7c90e6e5d0e74b40b4f0ff9f4ff..411d7755b3f73dd45b91c0175430ce4cd43f29f9 100644 (file)
@@ -226,6 +226,17 @@ TARGET_lib = \
 # Paths must all use the '/' character
 #
 FILES_nlm_objs = \
+       $(OBJDIR)/apreq_cookie.o \
+       $(OBJDIR)/apreq_error.o \
+       $(OBJDIR)/apreq_module.o \
+       $(OBJDIR)/apreq_module_cgi.o \
+       $(OBJDIR)/apreq_module_custom.o \
+       $(OBJDIR)/apreq_param.o \
+       $(OBJDIR)/apreq_parser.o \
+       $(OBJDIR)/apreq_parser_header.o \
+       $(OBJDIR)/apreq_parser_multipart.o \
+       $(OBJDIR)/apreq_parser_urlencoded.o \
+       $(OBJDIR)/apreq_util.o \
        $(OBJDIR)/buildmark.o \
        $(OBJDIR)/config.o \
        $(OBJDIR)/connection.o \
index 52f43e531c958eaa28860d5e97a425fde3343ab9..da2765d4a7554b49fb5e0d08d236a0fd4ed62654 100644 (file)
@@ -29,8 +29,8 @@ function add_symbol(sym_name) {
 #/ap_some_name/{next}
 /ap_mpm_pod_/{next}
 
-/^[ \t]*(AP|DAV)([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
-    sub("[ \t]*(AP|DAV)([RU]|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
+/^[ \t]*(AP|DAV)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)]([^ ]* )*[^(]+[(]/ {
+    sub("[ \t]*(AP|DAV)([RU]|REQ|_CORE)?_DECLARE[^(]*[(][^)]*[)][ \t]*", "")
     sub("[(].*", "")
     sub("([^ ]* (^([ \t]*[(])))+", "")
     add_symbol($0)
index 0d448ec77a80431f4f9bb1e5c7b554c4a23acd26..32c769b27fabd9845461813730533d1a18bd5aab 100644 (file)
 #define APR_DECLARE_OPTIONAL_FN    APR_DECLARE_OPTIONAL_FN
 #undef  APR_DECLARE_EXTERNAL_HOOK
 #define APR_DECLARE_EXTERNAL_HOOK  APR_DECLARE_EXTERNAL_HOOK
+#undef  APREQ_DECLARE
+#define APREQ_DECLARE              APREQ_DECLARE
+#undef  APREQ_DECLARE_NONSTD
+#define APREQ_DECLARE_NONSTD       APREQ_DECLARE_NONSTD
+#undef  APREQ_DECLARE_DATA
+#define APREQ_DECLARE_DATA         APREQ_DECLARE_DATA
 #undef  APACHE_OS_H
 
 #include "httpd.h"
 #include "ap_provider.h"
 #include "ap_release.h"
 #include "ap_expr.h"
+#include "apreq_cookie.h"
+#include "apreq_error.h"
+#include "apreq_module.h"
+#include "apreq_param.h"
+#include "apreq_parser.h"
+#include "apreq_util.h"
 #include "http_config.h"
 #include "http_connection.h"
 #include "http_core.h"
index 1a22329bf9d903b5cf4ae9c8c12f5d787cdda523..4f0500368e1782cb25fe25cf0dd95381270a3c26 100644 (file)
 #define AP_DECLARE_DATA             __declspec(dllimport)
 #endif
 
+#if !defined(WIN32)
+/**
+ * The public APREQ functions are declared with APREQ_DECLARE(), so they may
+ * use the most appropriate calling convention.  Public APR functions with 
+ * variable arguments must use APR_DECLARE_NONSTD().
+ *
+ * @remark Both the declaration and implementations must use the same macro.
+ */
+/** APREQ_DECLARE(rettype) apeq_func(args)
+ */
+#define APREQ_DECLARE(d)                APR_DECLARE(d)
+/**
+ * The public APEQ functions using variable arguments are declared with 
+ * APEQ_DECLARE_NONSTD(), as they must follow the C language calling convention.
+ * @see APEQ_DECLARE @see APEQ_DECLARE_DATA
+ * @remark Both the declaration and implementations must use the same macro.
+ * @example
+ */
+/** APEQ_DECLARE_NONSTD(rettype) apr_func(args, ...);
+ */
+#define APREQ_DECLARE_NONSTD(d)         APR_DECLARE_NONSTD(d)
+/**
+ * The public APREQ variables are declared with APREQ_DECLARE_DATA.
+ * This assures the appropriate indirection is invoked at compile time.
+ * @see APREQ_DECLARE @see APREQ_DECLARE_NONSTD
+ * @remark Note that the declaration and implementations use different forms,
+ * but both must include the macro.
+ */
+/** extern APREQ_DECLARE_DATA type apr_variable;\n
+ * APREQ_DECLARE_DATA type apr_variable = value;
+ */
+#define APREQ_DECLARE_DATA
+#elif defined (APREQ_DECLARE_STATIC)
+#define APREQ_DECLARE(type)             type __stdcall
+#define APREQ_DECLARE_NONSTD(type)      type
+#define APREQ_DECLARE_DATA
+#elif defined (APREQ_DECLARE_EXPORT)
+#define APREQ_DECLARE(type)             __declspec(dllexport) type __stdcall
+#define APREQ_DECLARE_NONSTD(type)      __declspec(dllexport) type
+#define APREQ_DECLARE_DATA              __declspec(dllexport)
+#else
+#define APREQ_DECLARE(type)             __declspec(dllimport) type __stdcall
+#define APREQ_DECLARE_NONSTD(type)      __declspec(dllimport) type
+#define APREQ_DECLARE_DATA              __declspec(dllimport)
+#endif
+
 #if !defined(WIN32) || defined(AP_MODULE_DECLARE_STATIC)
 /**
  * Declare a dso module's exported module structure as AP_MODULE_DECLARE_DATA.
index 2d1ba5eba0f0b43d249fe1821e5f7c5d854bb3a8..9faebdb0b776b9a2f4aaf6b2ddb379db1aaa999d 100644 (file)
@@ -22,6 +22,7 @@
 #include <assert.h>
 #endif
 
+#include "ap_config.h"
 #include "apr_tables.h"
 #include <stddef.h>
 
  * @brief Main header file...
  * @ingroup libapreq2
  *
- * Define the generic APREQ_ macros and common data structures.
+ * Define the common data structures.
  */
 
-#ifndef WIN32
-/**
- * The public APREQ functions are declared with APREQ_DECLARE(), so they may
- * use the most appropriate calling convention.  Public APR functions with 
- * variable arguments must use APR_DECLARE_NONSTD().
- *
- * @remark Both the declaration and implementations must use the same macro.
- */
-/** APREQ_DECLARE(rettype) apeq_func(args)
- */
-#define APREQ_DECLARE(d)                APR_DECLARE(d)
-/**
- * The public APEQ functions using variable arguments are declared with 
- * APEQ_DECLARE_NONSTD(), as they must follow the C language calling convention.
- * @see APEQ_DECLARE @see APEQ_DECLARE_DATA
- * @remark Both the declaration and implementations must use the same macro.
- * @example
- */
-/** APEQ_DECLARE_NONSTD(rettype) apr_func(args, ...);
- */
-#define APREQ_DECLARE_NONSTD(d)         APR_DECLARE_NONSTD(d)
-/**
- * The public APREQ variables are declared with APREQ_DECLARE_DATA.
- * This assures the appropriate indirection is invoked at compile time.
- * @see APREQ_DECLARE @see APREQ_DECLARE_NONSTD
- * @remark Note that the declaration and implementations use different forms,
- * but both must include the macro.
- */
-/** extern APREQ_DECLARE_DATA type apr_variable;\n
- * APREQ_DECLARE_DATA type apr_variable = value;
- */
-#define APREQ_DECLARE_DATA
-#elif defined (APREQ_DECLARE_STATIC)
-#define APREQ_DECLARE(type)             type __stdcall
-#define APREQ_DECLARE_NONSTD(type)      type
-#define APREQ_DECLARE_DATA
-#elif defined (APREQ_DECLARE_EXPORT)
-#define APREQ_DECLARE(type)             __declspec(dllexport) type __stdcall
-#define APREQ_DECLARE_NONSTD(type)      __declspec(dllexport) type
-#define APREQ_DECLARE_DATA              __declspec(dllexport)
-#else
-#define APREQ_DECLARE(type)             __declspec(dllimport) type __stdcall
-#define APREQ_DECLARE_NONSTD(type)      __declspec(dllimport) type
-#define APREQ_DECLARE_DATA              __declspec(dllimport)
-#endif
-
 /**
  * Read chucks of data in 64k blocks from the request 
  */
index b2de1fd2befd7500dc68795be20d5bef85a8a53b..d669b89cdfd3c04843615822ab016abaac6649b7 100644 (file)
@@ -29,8 +29,9 @@
  * apreq's wrapper around apr_strerror();
  * recognizes APREQ_ERROR_* status codes.
  */
-APREQ_DECLARE(char *)
-apreq_strerror(apr_status_t s, char *buf, apr_size_t bufsize);
+APREQ_DECLARE(char *) apreq_strerror(apr_status_t s,
+                                     char *buf,
+                                     apr_size_t bufsize);
 
 /**
  * @file apreq_error.h
index 1c9c36ce2367fdb8c5e77d230991cd6a3269d198..e719b8b019be8a2cf766b49fa305166580582849 100644 (file)
@@ -67,13 +67,13 @@ typedef apr_status_t (*apreq_hook_function_t)(APREQ_HOOK_ARGS);
  * Declares a API parser.
  */
 #define APREQ_DECLARE_PARSER(f) APREQ_DECLARE_NONSTD(apr_status_t) \
-                                (f) (APREQ_PARSER_ARGS)
+                                f (APREQ_PARSER_ARGS)
 
 /**
  * Declares an API hook.
  */
 #define APREQ_DECLARE_HOOK(f)   APREQ_DECLARE_NONSTD(apr_status_t) \
-                                (f) (APREQ_HOOK_ARGS)
+                                f (APREQ_HOOK_ARGS)
 
 /**
  * A hook is called by the parser whenever data arrives in a file
index feb2d396ce1d2487bca390b1d3726239c3a9e063..c8708f41d2f784d1db6f2b3c0519e1cb3e49bf42 100644 (file)
@@ -434,7 +434,7 @@ APREQ_DECLARE(apr_status_t) apreq_brigade_concat(apr_pool_t *pool,
  * @param bb the bucket brigade
  * @return the spool file, or NULL.
  */
-APREQ_DECLARE(apr_file_t *)apreq_brigade_spoolfile(apr_bucket_brigade *bb);
+APREQ_DECLARE(apr_file_t *) apreq_brigade_spoolfile(apr_bucket_brigade *bb);
 
 #ifdef __cplusplus
  }
index b929d01a541f7c4ffca875523768b4d3814807dd..0e87b42b2a9ed54f60ad1f7a1f26ac6f3f18a442 100644 (file)
@@ -27,6 +27,7 @@ endif
 
 SUBDIRS = \
        aaa \
+       apreq \
        cache \
        cluster \
        dav/main \
diff --git a/modules/apreq/NWGNUmakefile b/modules/apreq/NWGNUmakefile
new file mode 100644 (file)
index 0000000..0e46e3c
--- /dev/null
@@ -0,0 +1,250 @@
+#
+# Make sure all needed macro's are defined
+#
+
+#
+# Get the 'head' of the build environment if necessary.  This includes default
+# targets and paths to tools
+#
+
+ifndef EnvironmentDefined
+include $(AP_WORK)/build/NWGNUhead.inc
+endif
+
+#
+# These directories will be at the beginning of the include list, followed by
+# INCDIRS
+#
+XINCDIRS       += \
+                       $(APR)/include \
+                       $(APRUTIL)/include \
+                       $(AP_WORK)/include \
+                       $(NWOS) \
+                       $(EOLIST)
+
+#
+# These flags will come after CFLAGS
+#
+XCFLAGS                += \
+                       $(EOLIST)
+
+#
+# These defines will come after DEFINES
+#
+XDEFINES       += \
+                       $(EOLIST)
+
+#
+# These flags will be added to the link.opt file
+#
+XLFLAGS                += \
+                       $(EOLIST)
+
+#
+# These values will be appended to the correct variables based on the value of
+# RELEASE
+#
+ifeq "$(RELEASE)" "debug"
+XINCDIRS       += \
+                       $(EOLIST)
+
+XCFLAGS                += \
+                       $(EOLIST)
+
+XDEFINES       += \
+                       $(EOLIST)
+
+XLFLAGS                += \
+                       $(EOLIST)
+endif
+
+ifeq "$(RELEASE)" "noopt"
+XINCDIRS       += \
+                       $(EOLIST)
+
+XCFLAGS                += \
+                       $(EOLIST)
+
+XDEFINES       += \
+                       $(EOLIST)
+
+XLFLAGS                += \
+                       $(EOLIST)
+endif
+
+ifeq "$(RELEASE)" "release"
+XINCDIRS       += \
+                       $(EOLIST)
+
+XCFLAGS                += \
+                       $(EOLIST)
+
+XDEFINES       += \
+                       $(EOLIST)
+
+XLFLAGS                += \
+                       $(EOLIST)
+endif
+
+#
+# These are used by the link target if an NLM is being generated
+# This is used by the link 'name' directive to name the nlm.  If left blank
+# TARGET_nlm (see below) will be used.
+#
+NLM_NAME       = mod_apreq
+
+#
+# This is used by the link '-desc ' directive.
+# If left blank, NLM_NAME will be used.
+#
+NLM_DESCRIPTION        = Apache $(VERSION_STR) Request Filter Module
+
+#
+# This is used by the '-threadname' directive.  If left blank,
+# NLM_NAME Thread will be used.
+#
+NLM_THREAD_NAME        = apreq Module
+
+#
+# If this is specified, it will override VERSION value in
+# $(AP_WORK)/build/NWGNUenvironment.inc
+#
+NLM_VERSION    =
+
+#
+# If this is specified, it will override the default of 64K
+#
+NLM_STACK_SIZE = 8192
+
+
+#
+# If this is specified it will be used by the link '-entry' directive
+#
+NLM_ENTRY_SYM  =
+
+#
+# If this is specified it will be used by the link '-exit' directive
+#
+NLM_EXIT_SYM   =
+
+#
+# If this is specified it will be used by the link '-check' directive
+#
+NLM_CHECK_SYM  =
+
+#
+# If these are specified it will be used by the link '-flags' directive
+#
+NLM_FLAGS      =
+
+#
+# If this is specified it will be linked in with the XDCData option in the def
+# file instead of the default of $(NWOS)/apache.xdc.  XDCData can be disabled
+# by setting APACHE_UNIPROC in the environment
+#
+XDCDATA                =
+
+#
+# If there is an NLM target, put it here
+#
+TARGET_nlm = \
+       $(OBJDIR)/$(NLM_NAME).nlm \
+       $(EOLIST)
+
+#
+# If there is an LIB target, put it here
+#
+TARGET_lib = \
+       $(EOLIST)
+
+#
+# These are the OBJ files needed to create the NLM target above.
+# Paths must all use the '/' character
+#
+FILES_nlm_objs = \
+       $(OBJDIR)/filter.o \
+       $(OBJDIR)/handle.o \
+       $(EOLIST)
+
+#
+# These are the LIB files needed to create the NLM target above.
+# These will be added as a library command in the link.opt file.
+#
+FILES_nlm_libs = \
+       $(PRELUDE) \
+       $(EOLIST)
+
+#
+# These are the modules that the above NLM target depends on to load.
+# These will be added as a module command in the link.opt file.
+#
+FILES_nlm_modules = \
+       aprlib \
+       libc \
+       $(EOLIST)
+
+#
+# If the nlm has a msg file, put it's path here
+#
+FILE_nlm_msg =
+
+#
+# If the nlm has a hlp file put it's path here
+#
+FILE_nlm_hlp =
+
+#
+# If this is specified, it will override $(NWOS)\copyright.txt.
+#
+FILE_nlm_copyright =
+
+#
+# Any additional imports go here
+#
+FILES_nlm_Ximports = \
+       @aprlib.imp \
+       @httpd.imp \
+       @libc.imp \
+       $(EOLIST)
+
+#
+# Any symbols exported to here
+#
+FILES_nlm_exports = \
+       apreq_module \
+       $(EOLIST)
+
+#
+# These are the OBJ files needed to create the LIB target above.
+# Paths must all use the '/' character
+#
+FILES_lib_objs = \
+       $(EOLIST)
+
+#
+# implement targets and dependancies (leave this section alone)
+#
+
+libs :: $(OBJDIR) $(TARGET_lib)
+
+nlms :: libs $(TARGET_nlm)
+
+#
+# Updated this target to create necessary directories and copy files to the
+# correct place.  (See $(AP_WORK)/build/NWGNUhead.inc for examples)
+#
+install :: nlms FORCE
+       $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
+
+#
+# Any specialized rules here
+#
+
+#
+# Include the 'tail' makefile that has targets that depend on variables defined
+# in this makefile
+#
+
+include $(APBUILD)/NWGNUtail.inc
+
+