removed unneeded code

This commit is contained in:
2021-02-08 15:50:53 +00:00
parent 1aeee25ac6
commit aa8f8fac2d
6 changed files with 21 additions and 43 deletions

View File

@ -26,7 +26,6 @@
#include "hcl-c.h"
#include "hcl-prv.h"
#include "cb-impl.h"
#include <string.h>
#include <errno.h>

View File

@ -288,6 +288,19 @@
#define HCL_HASH_MORE_UCSTR(hv, ptr) HCL_HASH_MORE_VPTR(hv, ptr, const hcl_uch_t)
/* =========================================================================
* PATH-RELATED MACROS
* ========================================================================= */
#if defined(_WIN32) || defined(__OS2__) || defined(__DOS__)
# define HCL_IS_PATH_SEP(c) ((c) == '/' || (c) == '\\')
#else
# define HCL_IS_PATH_SEP(c) ((c) == '/')
#endif
/* TODO: handle path with a drive letter or in the UNC notation */
#define HCL_IS_PATH_ABSOLUTE(x) HCL_IS_PATH_SEP(x[0])
#if defined(__cplusplus)
extern "C" {
#endif

View File

@ -26,7 +26,6 @@
#include "hcl-json.h"
#include "hcl-prv.h"
#include "cb-impl.h"
#include <string.h>
#include <errno.h>