]> Nishi Git Mirror - gwion.git/commitdiff
:shirt: Clean
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 10 Mar 2019 16:19:12 +0000 (17:19 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 10 Mar 2019 16:19:12 +0000 (17:19 +0100)
config.mk.orig
src/emit/emit.c
src/vm/vm.c

index ec1a3640068db314400f408b9aaa9f9579c46749..aa91a37895dd9572335e72efbe7933f5af67db12 100644 (file)
@@ -1,33 +1,15 @@
 # handle base options
 PRG ?=gwion
-CC ?=gcc
-YACC ?=yacc
-LEX ?=flex
 PREFIX ?=/usr/local
-SOUNDPIPE_LIB ?=-lsoundpipe
-SOUNDPIPE_INC ?=
-LDFLAGS += -lm -ldl -rdynamic -lpthread
-CFLAGS += -Iinclude -Iutil/include -Iast/include -std=c99 -D_GNU_SOURCE
-CFLAGS += -mtune=native
-#-O3 -mfpmath=sse -mtune=native -fstrict-aliasing 
-#CFLAGS += -Iinclude -std=c99 -m32 -fstrict-aliasing -D_GNU_SOURCE
-# compiler warnings
-#CFLAGS += -Wall -Wextra 
-#-pedantic
-#CFLAGS += -fPIC
+LDFLAGS += -lm -ldl
+CFLAGS += -Iinclude -Iutil/include -Iast/include -D_GNU_SOURCE
 
 # handle boolean options
-USE_DOUBLE     = 0
-USE_COVERAGE  ?= 0
 USE_OPTIMIZE  ?= 0
 USE_VMBENCH   ?= 0
 USE_NOMEMOIZE ?= 0
-# handle definitions
-D_FUNC       ?= dummy_driver
 
 # base plugin directories
 GWPLUG_DIR   ?= $(shell echo ~/.gwplug)
 
 DEBUG_STACK  ?= 0
-#COLOR        ?= 1
-#CFLAGS+= -DCOLOR
index fe808ee08113a9b55402523d0fc52a9922d8c269..a2ab4dac35626226a7cf7a6039ff2ac2fd330ba4 100644 (file)
@@ -717,7 +717,7 @@ static inline m_bool push_func_code(const Emitter emit, const Func f) {
     size_t len = strlen(f->name);
     size_t sz = len - strlen(f->value_ref->owner_class->name);
     char c[sz + 1];
-    strncpy(c, f->name, sz);
+    memcpy(c, f->name, sz);
     c[sz] = '\0';
     struct dottmpl_ *dt = mp_alloc(dottmpl);
     dt->name = s_name(insert_symbol(c));
index b2c5b1d6766e30206495c4d6a725dee3269c8173..2f4a59b20e90d36b8942d0b159079a187e9060ef 100644 (file)
@@ -729,9 +729,8 @@ gcadd:
   vector_add(&shred->gc, *(vtype*)(reg-SZ_INT));
   DISPATCH();
 gcend:
-  while((a.obj = (M_Object)vector_pop(&shred->gc))) {
+  while((a.obj = (M_Object)vector_pop(&shred->gc)))
     _release(a.obj, shred);
-  }
   DISPATCH()
 gack:
   gack(reg, instr);