removed unneeded code
This commit is contained in:
parent
1aeee25ac6
commit
aa8f8fac2d
@ -24,16 +24,13 @@ LIBADD_COMMON += $(DL_LIBS)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
bin_PROGRAMS = hcl
|
bin_PROGRAMS = hcl
|
||||||
hcl_SOURCES = main.c ../lib/cb-impl.h ../lib/cb-impl.c
|
hcl_SOURCES = main.c
|
||||||
hcl_CPPFLAGS = $(CPPFLAGS_COMMON)
|
hcl_CPPFLAGS = $(CPPFLAGS_COMMON)
|
||||||
hcl_LDFLAGS = $(LDFLAGS_COMMON)
|
hcl_LDFLAGS = $(LDFLAGS_COMMON)
|
||||||
hcl_LDADD = ../lib/libhcl.la $(LIBADD_COMMON)
|
hcl_LDADD = ../lib/libhcl.la $(LIBADD_COMMON)
|
||||||
|
|
||||||
if ENABLE_HCLX
|
if ENABLE_HCLX
|
||||||
|
|
||||||
## cb-impl.c is included in libhclx.
|
|
||||||
## so ../lib/cb-impl.h and ../lib/cb-impl.c are not listed as sources
|
|
||||||
|
|
||||||
bin_PROGRAMS += hcls
|
bin_PROGRAMS += hcls
|
||||||
hcls_SOURCES = main-s.c
|
hcls_SOURCES = main-s.c
|
||||||
hcls_CPPFLAGS = $(CPPFLAGS_COMMON)
|
hcls_CPPFLAGS = $(CPPFLAGS_COMMON)
|
||||||
|
@ -114,8 +114,7 @@ CONFIG_CLEAN_VPATH_FILES =
|
|||||||
@ENABLE_HCLX_TRUE@ hclj$(EXEEXT)
|
@ENABLE_HCLX_TRUE@ hclj$(EXEEXT)
|
||||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||||
PROGRAMS = $(bin_PROGRAMS)
|
PROGRAMS = $(bin_PROGRAMS)
|
||||||
am__dirstamp = $(am__leading_dot)dirstamp
|
am_hcl_OBJECTS = hcl-main.$(OBJEXT)
|
||||||
am_hcl_OBJECTS = hcl-main.$(OBJEXT) ../lib/hcl-cb-impl.$(OBJEXT)
|
|
||||||
hcl_OBJECTS = $(am_hcl_OBJECTS)
|
hcl_OBJECTS = $(am_hcl_OBJECTS)
|
||||||
am__DEPENDENCIES_1 =
|
am__DEPENDENCIES_1 =
|
||||||
@ENABLE_LIBLTDL_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
|
@ENABLE_LIBLTDL_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
|
||||||
@ -168,9 +167,9 @@ am__v_at_1 =
|
|||||||
DEFAULT_INCLUDES =
|
DEFAULT_INCLUDES =
|
||||||
depcomp = $(SHELL) $(top_srcdir)/ac/depcomp
|
depcomp = $(SHELL) $(top_srcdir)/ac/depcomp
|
||||||
am__maybe_remake_depfiles = depfiles
|
am__maybe_remake_depfiles = depfiles
|
||||||
am__depfiles_remade = ../lib/$(DEPDIR)/hcl-cb-impl.Po \
|
am__depfiles_remade = ./$(DEPDIR)/hcl-main.Po \
|
||||||
./$(DEPDIR)/hcl-main.Po ./$(DEPDIR)/hclc-main-c.Po \
|
./$(DEPDIR)/hclc-main-c.Po ./$(DEPDIR)/hclj-main-j.Po \
|
||||||
./$(DEPDIR)/hclj-main-j.Po ./$(DEPDIR)/hcls-main-s.Po
|
./$(DEPDIR)/hcls-main-s.Po
|
||||||
am__mv = mv -f
|
am__mv = mv -f
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
@ -366,7 +365,7 @@ CPPFLAGS_COMMON = \
|
|||||||
CFLAGS_COMMON =
|
CFLAGS_COMMON =
|
||||||
LDFLAGS_COMMON = -L$(abs_builddir)/../lib -L$(libdir)
|
LDFLAGS_COMMON = -L$(abs_builddir)/../lib -L$(libdir)
|
||||||
LIBADD_COMMON = $(am__append_1) $(am__append_2)
|
LIBADD_COMMON = $(am__append_1) $(am__append_2)
|
||||||
hcl_SOURCES = main.c ../lib/cb-impl.h ../lib/cb-impl.c
|
hcl_SOURCES = main.c
|
||||||
hcl_CPPFLAGS = $(CPPFLAGS_COMMON)
|
hcl_CPPFLAGS = $(CPPFLAGS_COMMON)
|
||||||
hcl_LDFLAGS = $(LDFLAGS_COMMON)
|
hcl_LDFLAGS = $(LDFLAGS_COMMON)
|
||||||
hcl_LDADD = ../lib/libhcl.la $(LIBADD_COMMON)
|
hcl_LDADD = ../lib/libhcl.la $(LIBADD_COMMON)
|
||||||
@ -464,14 +463,6 @@ clean-binPROGRAMS:
|
|||||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||||
echo " rm -f" $$list; \
|
echo " rm -f" $$list; \
|
||||||
rm -f $$list
|
rm -f $$list
|
||||||
../lib/$(am__dirstamp):
|
|
||||||
@$(MKDIR_P) ../lib
|
|
||||||
@: > ../lib/$(am__dirstamp)
|
|
||||||
../lib/$(DEPDIR)/$(am__dirstamp):
|
|
||||||
@$(MKDIR_P) ../lib/$(DEPDIR)
|
|
||||||
@: > ../lib/$(DEPDIR)/$(am__dirstamp)
|
|
||||||
../lib/hcl-cb-impl.$(OBJEXT): ../lib/$(am__dirstamp) \
|
|
||||||
../lib/$(DEPDIR)/$(am__dirstamp)
|
|
||||||
|
|
||||||
hcl$(EXEEXT): $(hcl_OBJECTS) $(hcl_DEPENDENCIES) $(EXTRA_hcl_DEPENDENCIES)
|
hcl$(EXEEXT): $(hcl_OBJECTS) $(hcl_DEPENDENCIES) $(EXTRA_hcl_DEPENDENCIES)
|
||||||
@rm -f hcl$(EXEEXT)
|
@rm -f hcl$(EXEEXT)
|
||||||
@ -491,12 +482,10 @@ hcls$(EXEEXT): $(hcls_OBJECTS) $(hcls_DEPENDENCIES) $(EXTRA_hcls_DEPENDENCIES)
|
|||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.$(OBJEXT)
|
-rm -f *.$(OBJEXT)
|
||||||
-rm -f ../lib/*.$(OBJEXT)
|
|
||||||
|
|
||||||
distclean-compile:
|
distclean-compile:
|
||||||
-rm -f *.tab.c
|
-rm -f *.tab.c
|
||||||
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@../lib/$(DEPDIR)/hcl-cb-impl.Po@am__quote@ # am--include-marker
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcl-main.Po@am__quote@ # am--include-marker
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcl-main.Po@am__quote@ # am--include-marker
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hclc-main-c.Po@am__quote@ # am--include-marker
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hclc-main-c.Po@am__quote@ # am--include-marker
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hclj-main-j.Po@am__quote@ # am--include-marker
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hclj-main-j.Po@am__quote@ # am--include-marker
|
||||||
@ -546,20 +535,6 @@ hcl-main.obj: main.c
|
|||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hcl-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hcl-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
|
||||||
|
|
||||||
../lib/hcl-cb-impl.o: ../lib/cb-impl.c
|
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ../lib/hcl-cb-impl.o -MD -MP -MF ../lib/$(DEPDIR)/hcl-cb-impl.Tpo -c -o ../lib/hcl-cb-impl.o `test -f '../lib/cb-impl.c' || echo '$(srcdir)/'`../lib/cb-impl.c
|
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../lib/$(DEPDIR)/hcl-cb-impl.Tpo ../lib/$(DEPDIR)/hcl-cb-impl.Po
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../lib/cb-impl.c' object='../lib/hcl-cb-impl.o' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ../lib/hcl-cb-impl.o `test -f '../lib/cb-impl.c' || echo '$(srcdir)/'`../lib/cb-impl.c
|
|
||||||
|
|
||||||
../lib/hcl-cb-impl.obj: ../lib/cb-impl.c
|
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT ../lib/hcl-cb-impl.obj -MD -MP -MF ../lib/$(DEPDIR)/hcl-cb-impl.Tpo -c -o ../lib/hcl-cb-impl.obj `if test -f '../lib/cb-impl.c'; then $(CYGPATH_W) '../lib/cb-impl.c'; else $(CYGPATH_W) '$(srcdir)/../lib/cb-impl.c'; fi`
|
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../lib/$(DEPDIR)/hcl-cb-impl.Tpo ../lib/$(DEPDIR)/hcl-cb-impl.Po
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../lib/cb-impl.c' object='../lib/hcl-cb-impl.obj' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hcl_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o ../lib/hcl-cb-impl.obj `if test -f '../lib/cb-impl.c'; then $(CYGPATH_W) '../lib/cb-impl.c'; else $(CYGPATH_W) '$(srcdir)/../lib/cb-impl.c'; fi`
|
|
||||||
|
|
||||||
hclc-main-c.o: main-c.c
|
hclc-main-c.o: main-c.c
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hclc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hclc-main-c.o -MD -MP -MF $(DEPDIR)/hclc-main-c.Tpo -c -o hclc-main-c.o `test -f 'main-c.c' || echo '$(srcdir)/'`main-c.c
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hclc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hclc-main-c.o -MD -MP -MF $(DEPDIR)/hclc-main-c.Tpo -c -o hclc-main-c.o `test -f 'main-c.c' || echo '$(srcdir)/'`main-c.c
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hclc-main-c.Tpo $(DEPDIR)/hclc-main-c.Po
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hclc-main-c.Tpo $(DEPDIR)/hclc-main-c.Po
|
||||||
@ -726,8 +701,6 @@ clean-generic:
|
|||||||
distclean-generic:
|
distclean-generic:
|
||||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||||
-rm -f ../lib/$(DEPDIR)/$(am__dirstamp)
|
|
||||||
-rm -f ../lib/$(am__dirstamp)
|
|
||||||
|
|
||||||
maintainer-clean-generic:
|
maintainer-clean-generic:
|
||||||
@echo "This command is intended for maintainers to use"
|
@echo "This command is intended for maintainers to use"
|
||||||
@ -737,7 +710,6 @@ clean: clean-am
|
|||||||
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
-rm -f ../lib/$(DEPDIR)/hcl-cb-impl.Po
|
|
||||||
-rm -f ./$(DEPDIR)/hcl-main.Po
|
-rm -f ./$(DEPDIR)/hcl-main.Po
|
||||||
-rm -f ./$(DEPDIR)/hclc-main-c.Po
|
-rm -f ./$(DEPDIR)/hclc-main-c.Po
|
||||||
-rm -f ./$(DEPDIR)/hclj-main-j.Po
|
-rm -f ./$(DEPDIR)/hclj-main-j.Po
|
||||||
@ -787,7 +759,6 @@ install-ps-am:
|
|||||||
installcheck-am:
|
installcheck-am:
|
||||||
|
|
||||||
maintainer-clean: maintainer-clean-am
|
maintainer-clean: maintainer-clean-am
|
||||||
-rm -f ../lib/$(DEPDIR)/hcl-cb-impl.Po
|
|
||||||
-rm -f ./$(DEPDIR)/hcl-main.Po
|
-rm -f ./$(DEPDIR)/hcl-main.Po
|
||||||
-rm -f ./$(DEPDIR)/hclc-main-c.Po
|
-rm -f ./$(DEPDIR)/hclc-main-c.Po
|
||||||
-rm -f ./$(DEPDIR)/hclj-main-j.Po
|
-rm -f ./$(DEPDIR)/hclj-main-j.Po
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include "hcl-prv.h"
|
#include "hcl-prv.h"
|
||||||
#include "hcl-opt.h"
|
#include "hcl-opt.h"
|
||||||
#include "cb-impl.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include "hcl-c.h"
|
#include "hcl-c.h"
|
||||||
#include "hcl-prv.h"
|
#include "hcl-prv.h"
|
||||||
#include "cb-impl.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -288,6 +288,19 @@
|
|||||||
#define HCL_HASH_MORE_UCSTR(hv, ptr) HCL_HASH_MORE_VPTR(hv, ptr, const hcl_uch_t)
|
#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)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include "hcl-json.h"
|
#include "hcl-json.h"
|
||||||
#include "hcl-prv.h"
|
#include "hcl-prv.h"
|
||||||
#include "cb-impl.h"
|
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user