Revision: 14663
Author: adrian.chadd
Date: Sun May 16 01:20:07 2010
Log:
Move the header parser test routine out of core.c ; it belongs in a http core file.


http://code.google.com/p/lusca-cache/source/detail?r=14663

Modified:
 /branches/LUSCA_HEAD/test-suite/atf/core.c
 /branches/LUSCA_HEAD/test-suite/atf/core.h
 /branches/LUSCA_HEAD/test-suite/atf/libhttp.c

=======================================
--- /branches/LUSCA_HEAD/test-suite/atf/core.c  Thu May 13 02:30:17 2010
+++ /branches/LUSCA_HEAD/test-suite/atf/core.c  Sun May 16 01:20:07 2010
@@ -58,12 +58,3 @@
        memStringInit();
 }

-int
-test_core_parse_header(HttpHeader *hdr, const char *hdrs)
-{
-        const char *hdr_start = hdrs;
-        const char *hdr_end = hdr_start + strlen(hdrs);
-
-        httpHeaderInit(hdr, hoRequest);
-       return httpHeaderParse(hdr, hdr_start, hdr_end);
-}
=======================================
--- /branches/LUSCA_HEAD/test-suite/atf/core.h  Wed May 12 21:26:39 2010
+++ /branches/LUSCA_HEAD/test-suite/atf/core.h  Sun May 16 01:20:07 2010
@@ -2,6 +2,5 @@
 #define        __TEST_CORE_H__

 extern void test_core_init(void);
-extern int test_core_parse_header(HttpHeader *hdr, const char *hdrs);

 #endif
=======================================
--- /branches/LUSCA_HEAD/test-suite/atf/libhttp.c       Thu May 13 06:05:03 2010
+++ /branches/LUSCA_HEAD/test-suite/atf/libhttp.c       Sun May 16 01:20:07 2010
@@ -51,6 +51,16 @@
 #include "core.h"

extern int hh_check_content_length(HttpHeader *hdr, const char *val, int vlen);
+
+static int
+test_core_parse_header(HttpHeader *hdr, const char *hdrs)
+{
+        const char *hdr_start = hdrs;
+        const char *hdr_end = hdr_start + strlen(hdrs);
+
+        httpHeaderInit(hdr, hoRequest);
+        return httpHeaderParse(hdr, hdr_start, hdr_end);
+}

 static void
 libhttp_test_parser(const char *str, int ret)
@@ -76,8 +86,6 @@

        httpHeaderClean(&hdr);
 }
-
-extern int hh_check_content_length(HttpHeader *hdr, const char *val, int vlen);

 static int
 test_http_content_length(HttpHeader *hdr, const char *str)

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to