rename http_parser.c(h) -> parser.c(h)

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
main
Jianhui Zhao 2017-11-29 14:55:27 +08:00
parent b0c3acbc13
commit 65a66eba9b
4 changed files with 6 additions and 6 deletions

View File

@ -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
)

View File

@ -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

View File

@ -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;

View File

@ -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 <assert.h>
#include <stddef.h>
#include <ctype.h>