fixed fprintf(fh, "") error

This commit is contained in:
lexborisov 2016-08-29 01:37:43 +04:00
parent 3ebddad1ce
commit 4d4f319026
3 changed files with 5 additions and 4 deletions

View File

@ -38,7 +38,7 @@ SRCS :=
HDRS :=
EXTDIRS := examples
all: shared static
all: create shared static
for f in $(EXTDIRS); do $(MAKE) -C $$f all; done
include $(TARGET)/myhtml/Makefile.mk
@ -53,6 +53,9 @@ shared: $(OBJS) $(HDRS)
static: shared
$(AR) crus $(LIB_TMP)/lib$(LIBNAME)$(LIBSTATIC_POSTFIX).a $(OBJS)
create:
mkdir -p lib bin
clean:
for f in $(EXTDIRS); do $(MAKE) -C $$f clean; done
rm -f $(OBJS)
@ -62,7 +65,7 @@ clean:
clean_include:
rm -rf $(INCLUDE_TMP)
clone: clean_include myhtml_clone mycss_clone modest_clone
clone: create clean_include myhtml_clone mycss_clone modest_clone
find include -name "*.h" -exec sed -i '.bak' -E 's/^[ \t]*#[ \t]*include[ \t]*"([^"]+)"/#include <\1>/g' {} \;
find include -name "*.h.bak" -exec rm -f {} \;

View File

@ -425,8 +425,6 @@ void mycss_selectors_print_chain(mycss_selectors_t* selectors, mycss_selectors_e
while(selector) {
if(selector->combinator == MyCSS_SELECTORS_COMBINATOR_DESCENDANT)
fprintf(fh, " ");
else if(selector->combinator == MyCSS_SELECTORS_COMBINATOR_UNDEF)
fprintf(fh, "");
else
fprintf(fh, " %s ", mycss_selectors_resource_combinator_names_map[ selector->combinator ]);