From 65a66eba9bb7c20a36066ff147591473db339ef8 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Wed, 29 Nov 2017 14:55:27 +0800 Subject: [PATCH] rename http_parser.c(h) -> parser.c(h) Signed-off-by: Jianhui Zhao --- src/CMakeLists.txt | 4 ++-- src/include/uhttp/{http_parser.h => parser.h} | 4 ++-- src/include/uhttp/uhttp.h | 2 +- src/{http_parser.c => parser.c} | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/include/uhttp/{http_parser.h => parser.h} (99%) rename src/{http_parser.c => parser.c} (99%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b860985..8a27853 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,7 +10,7 @@ find_package(CyaSSL) include_directories(${LIBEV_INCLUDE_DIRS}) set(EXTRA_LIBS ${LIBEV_LIBRARIES}) -set(SOURCE_FILES uhttp.c log.c buf.c ssl.c http_parser.c) +set(SOURCE_FILES uhttp.c log.c buf.c ssl.c parser.c) set(UHTTP_DEBUG_CONFIG 0) option(UHTTP_DEBUG "Turn on debug" OFF) @@ -85,7 +85,7 @@ install( ${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/log.h ${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/buf.h ${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/str.h - ${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/http_parser.h + ${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/parser.h DESTINATION include/uhttp ) diff --git a/src/include/uhttp/http_parser.h b/src/include/uhttp/parser.h similarity index 99% rename from src/include/uhttp/http_parser.h rename to src/include/uhttp/parser.h index 0cafd1f..3770dda 100644 --- a/src/include/uhttp/http_parser.h +++ b/src/include/uhttp/parser.h @@ -18,8 +18,8 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#ifndef http_parser_h -#define http_parser_h +#ifndef _UHTTP_PARSER_H +#define _UHTTP_PARSER_H #ifdef __cplusplus extern "C" { #endif diff --git a/src/include/uhttp/uhttp.h b/src/include/uhttp/uhttp.h index 22551d1..38f631b 100755 --- a/src/include/uhttp/uhttp.h +++ b/src/include/uhttp/uhttp.h @@ -6,7 +6,7 @@ #include "uhttp/log.h" #include "uhttp/buf.h" #include "uhttp/str.h" -#include "uhttp/http_parser.h" +#include "uhttp/parser.h" struct uh_server; struct uh_connection; diff --git a/src/http_parser.c b/src/parser.c similarity index 99% rename from src/http_parser.c rename to src/parser.c index d64167e..b8865f6 100644 --- a/src/http_parser.c +++ b/src/parser.c @@ -18,7 +18,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include "http_parser.h" +#include "parser.h" #include #include #include