Unescape backslash chars in ?e and add osx-qt-mingw32 toolchain support

This commit is contained in:
pancake 2015-06-28 10:35:43 +02:00
parent f430d1d5df
commit 9eb4ef5197
3 changed files with 29 additions and 1 deletions

View File

@ -370,8 +370,9 @@ static int cmd_help(void *data, const char *input) {
case 'e': // echo
{
const char *msg = r_str_chop_ro (input+1);
char *newmsg = filter_flags (core, msg);
// TODO: replace all ${flagname} by its value in hexa
char *newmsg = filter_flags (core, msg);
r_str_unescape (newmsg);
r_cons_printf ("%s\n", newmsg);
free (newmsg);
}

21
mk/i586-mingw32-gcc.mk Normal file
View File

@ -0,0 +1,21 @@
ifeq (${_INCLUDE_MK_GCC_},)
_INCLUDE_MK_GCC_=1
CC=i586-mingw32-gcc
RANLIB=i586-mingw32-ranlib
ONELIB=0
OSTYPE=windows
LINK=
CC_AR=i586-mingw32-ar -r ${LIBAR}
PICFLAGS=
CFLAGS+=${PICFLAGS} -MD -D__WINDOWS__=1
CC_LIB=${CC} -shared -o
CFLAGS_INCLUDE=-I
LDFLAGS+=-static-libgcc
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
CFLAGS_OPT1=-O1
CFLAGS_OPT2=-O2
CFLAGS_OPT3=-O3
CFLAGS_DEBUG=-g
endif

View File

@ -11,6 +11,11 @@ unset LDFLAGS
CFGFLAGS="--with-ostype=windows"
type i586-mingw32-gcc
if [ $? = 0 ]; then
C=i586-mingw32-gcc
H=i586-unknown-windows
else
type i686-pc-mingw32-gcc >/dev/null 2>&1
if [ $? = 0 ]; then
C=i686-pc-mingw32-gcc
@ -31,6 +36,7 @@ else
echo "arch/opensuse/ubuntu/debian mingw32 package required."
exit 1
fi
fi
make mrproper