$(srcdir)/init.h | ./makedoc -c | cat Madmuttrc.head - > Madmuttrc
touch $@
-include $(top_builddir)/tools/cpkg2c.mk
--include $(top_buildir)/tools/cflags.mk
+include tools/cpkg2c.mk
+-include tools/cflags.mk
wc:
@sloccount $(wildcard *.h *.c) $(wildcard lib-*/) lib imap nntp pop | grep 'ansic[=:]'
void charset_hook(rx_t local, const string_t alias) {
rx_set_template(local, alias);
rx_list_append(&charset_hooks, local);
+ RETURN();
};
void iconv_hook(rx_t local, const string_t alias) {
rx_set_template(local, alias);
rx_list_append(&iconv_hooks, local);
+ RETURN();
};
};
return 0;
while (*p == ':')
- *p++;
+ p++;
q = m_strchrnul(p, ':');
m_strncpy(fromcode, sizeof(fromcode), p, q - p);
CFLAGS += -Wsign-compare
# warn about unused declared stuff
CFLAGS += -Wunused
+CFLAGS += -Wno-unused-parameter
# warn about variable use before initialization
CFLAGS += -Wuninitialized
# warn about variables which are initialized with themselves
) 0 fn.args);
printf "\n#define RAISE(s) luaL_error(L, (s))\n";
if fn.rettype = [] then (
- printf "#define RETURN return luaM_ret_%s_%s(L)\n" pkg.name fn.fname
+ printf "#define RETURN() return luaM_ret_%s_%s(L)\n" pkg.name fn.fname
) else (
printf "#define RETURN(luaM_x1";
for i = 2 to retlen do printf ", luaM_x%d" i done;