rename http_parser.c(h) -> parser.c(h)
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>main
parent
b0c3acbc13
commit
65a66eba9b
|
@ -10,7 +10,7 @@ find_package(CyaSSL)
|
||||||
|
|
||||||
include_directories(${LIBEV_INCLUDE_DIRS})
|
include_directories(${LIBEV_INCLUDE_DIRS})
|
||||||
set(EXTRA_LIBS ${LIBEV_LIBRARIES})
|
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)
|
set(UHTTP_DEBUG_CONFIG 0)
|
||||||
option(UHTTP_DEBUG "Turn on debug" OFF)
|
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/log.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/buf.h
|
${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/buf.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/uhttp/str.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
|
DESTINATION
|
||||||
include/uhttp
|
include/uhttp
|
||||||
)
|
)
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#ifndef http_parser_h
|
#ifndef _UHTTP_PARSER_H
|
||||||
#define http_parser_h
|
#define _UHTTP_PARSER_H
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
|
@ -6,7 +6,7 @@
|
||||||
#include "uhttp/log.h"
|
#include "uhttp/log.h"
|
||||||
#include "uhttp/buf.h"
|
#include "uhttp/buf.h"
|
||||||
#include "uhttp/str.h"
|
#include "uhttp/str.h"
|
||||||
#include "uhttp/http_parser.h"
|
#include "uhttp/parser.h"
|
||||||
|
|
||||||
struct uh_server;
|
struct uh_server;
|
||||||
struct uh_connection;
|
struct uh_connection;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include "http_parser.h"
|
#include "parser.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
Loading…
Reference in New Issue