#******************************************************************************
# @file Makefile.unix
#******************************************************************************
-OBJDIR ?= $(CURDIR)
SRCDIR ?= $(CURDIR)
-
VPATH := $(SRCDIR)
CC := gcc
-CFLAGS := -D_FILE_OFFSET_BITS=64 -I$(OBJDIR) -I$(SRCDIR)/include -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
+CFLAGS := -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
CSRC := as.c bin.c cstr.c elks.c eval.c expr.c fixup.c frag.c hashtab.c intel.c kwd.c lex.c lib.c list.c listing.c ll.c macro.c process.c report.c section.c symbol.c vector.c
#******************************************************************************
# @file Makefile.w32
#******************************************************************************
-OBJDIR ?= $(CURDIR)
SRCDIR ?= $(CURDIR)
-
VPATH := $(SRCDIR)
CC := gcc
-CFLAGS := -D_FILE_OFFSET_BITS=64 -I$(OBJDIR) -I$(SRCDIR)/include -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
+CFLAGS := -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
CSRC := as.c bin.c cstr.c elks.c eval.c expr.c fixup.c frag.c hashtab.c intel.c kwd.c lex.c lib.c list.c listing.c ll.c macro.c process.c report.c section.c symbol.c vector.c
(*pp)++;
}
- sprintf (caret, "%.*s", (int) (*pp - caret - 1), caret + 1);
+ memmove (caret, caret + 1, (*pp - caret) - 1);
+ *(caret + ((*pp - caret) - 1)) = '\0';
lhs = eval_unary (lhs, start, &caret);
lhs = eval_expr (lhs, start, &caret, 15);