fixed some undefined symbol issues
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fe2b9456f4
commit
ceaa977d12
@ -80,8 +80,11 @@
|
|||||||
# undef HAVE_SNPRINTF
|
# undef HAVE_SNPRINTF
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_QUADMATH_H)
|
#if defined(HAVE_QUADMATH_H)
|
||||||
# include <quadmath.h> /* for quadmath_snprintf() */
|
# include <quadmath.h> /* for quadmath_snprintf() */
|
||||||
|
#elif defined(HAVE_QUADMATH_SNPRINTF)
|
||||||
|
extern int quadmath_snprintf (const char *str, size_t size, const char *format, ...);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -316,7 +316,7 @@ static const hcl_bch_t* get_base_name (const hcl_bch_t* path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static HCL_INLINE int open_input (hcl_t* hcl, hcl_iosrarg_t* arg)
|
static HCL_INLINE int open_read_stream (hcl_t* hcl, hcl_iosrarg_t* arg)
|
||||||
{
|
{
|
||||||
worker_hcl_xtn_t* xtn = (worker_hcl_xtn_t*)hcl_getxtn(hcl);
|
worker_hcl_xtn_t* xtn = (worker_hcl_xtn_t*)hcl_getxtn(hcl);
|
||||||
bb_t* bb = HCL_NULL;
|
bb_t* bb = HCL_NULL;
|
||||||
@ -412,7 +412,7 @@ oops:
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HCL_INLINE int close_input (hcl_t* hcl, hcl_iosrarg_t* arg)
|
static HCL_INLINE int close_read_stream (hcl_t* hcl, hcl_iosrarg_t* arg)
|
||||||
{
|
{
|
||||||
worker_hcl_xtn_t* xtn = (worker_hcl_xtn_t*)hcl_getxtn(hcl);
|
worker_hcl_xtn_t* xtn = (worker_hcl_xtn_t*)hcl_getxtn(hcl);
|
||||||
bb_t* bb;
|
bb_t* bb;
|
||||||
@ -545,10 +545,10 @@ static int read_handler (hcl_t* hcl, hcl_iocmd_t cmd, void* arg)
|
|||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case HCL_IO_OPEN:
|
case HCL_IO_OPEN:
|
||||||
return open_input(hcl, (hcl_iosrarg_t*)arg);
|
return open_read_stream(hcl, (hcl_iosrarg_t*)arg);
|
||||||
|
|
||||||
case HCL_IO_CLOSE:
|
case HCL_IO_CLOSE:
|
||||||
return close_input(hcl, (hcl_iosrarg_t*)arg);
|
return close_read_stream(hcl, (hcl_iosrarg_t*)arg);
|
||||||
|
|
||||||
case HCL_IO_READ:
|
case HCL_IO_READ:
|
||||||
return read_input(hcl, (hcl_iosrarg_t*)arg);
|
return read_input(hcl, (hcl_iosrarg_t*)arg);
|
||||||
|
12
lib/hcl-s.h
12
lib/hcl-s.h
@ -204,6 +204,18 @@ HCL_EXPORT int hcl_server_proto_feed_reply (
|
|||||||
int escape
|
int escape
|
||||||
);
|
);
|
||||||
|
|
||||||
|
HCL_EXPORT int hcl_server_proto_feed_reply_bytes (
|
||||||
|
hcl_server_proto_t* proto,
|
||||||
|
const hcl_bch_t* ptr,
|
||||||
|
hcl_oow_t len,
|
||||||
|
int escape
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
HCL_EXPORT int hcl_server_proto_handle_request (
|
||||||
|
hcl_server_proto_t* proto
|
||||||
|
);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user