| OLD | NEW |
| 1 diff --git a/src/Makefile b/src/Makefile | 1 diff --git a/src/Makefile b/src/Makefile |
| 2 --- a/src/Makefile | 2 --- a/src/Makefile |
| 3 +++ b/src/Makefile | 3 +++ b/src/Makefile |
| 4 @@ -1737,7 +1737,7 @@ $(VIMTARGET): auto/config.mk objects $(OBJ) version.c vers
ion.h | 4 @@ -1737,7 +1737,7 @@ $(VIMTARGET): auto/config.mk objects $(OBJ) version.c vers
ion.h |
| 5 sh $(srcdir)/link.sh | 5 sh $(srcdir)/link.sh |
| 6 | 6 |
| 7 xxd/xxd$(EXEEXT): xxd/xxd.c | 7 xxd/xxd$(EXEEXT): xxd/xxd.c |
| 8 - cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ | 8 - cd xxd; CC="$(CC)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ |
| 9 + cd xxd; CC="$(CC)" EXEEXT="$(EXEEXT)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDF
LAGS="$(LDFLAGS)" \ | 9 + cd xxd; CC="$(CC)" EXEEXT="$(EXEEXT)" CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDF
LAGS="$(LDFLAGS)" \ |
| 10 $(MAKE) -f Makefile | 10 $(MAKE) -f Makefile |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 +# else | 36 +# else |
| 37 +# { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 37 +# { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38 +#$as_echo "no" >&6; } | 38 +#$as_echo "no" >&6; } |
| 39 +# fi | 39 +# fi |
| 40 fi | 40 fi |
| 41 | 41 |
| 42 | 42 |
| 43 diff --git a/src/main.c b/src/main.c | 43 diff --git a/src/main.c b/src/main.c |
| 44 --- a/src/main.c | 44 --- a/src/main.c |
| 45 +++ b/src/main.c | 45 +++ b/src/main.c |
| 46 @@ -14,6 +14,11 @@ | 46 @@ -14,6 +14,10 @@ |
| 47 # include <spawno.h> /* special MS-DOS swapping library */ | 47 # include <spawno.h> /* special MS-DOS swapping library */ |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 +#ifdef __native_client__ | 50 +#ifdef __native_client__ |
| 51 +#include <nacl_main.h> | 51 +#include <nacl_main.h> |
| 52 +#define main nacl_main | |
| 53 +#endif | 52 +#endif |
| 54 + | 53 + |
| 55 #ifdef __CYGWIN__ | 54 #ifdef __CYGWIN__ |
| 56 # ifndef WIN32 | 55 # ifndef WIN32 |
| 57 # include <cygwin/version.h> | 56 # include <cygwin/version.h> |
| 58 @@ -165,6 +170,11 @@ main | 57 @@ -165,6 +169,11 @@ main |
| 59 int argc; | 58 int argc; |
| 60 char **argv; | 59 char **argv; |
| 61 { | 60 { |
| 62 +#ifdef __native_client__ | 61 +#ifdef __native_client__ |
| 63 + if (nacl_startup_untar(argv[0], "vim.tar", "/")) | 62 + if (nacl_startup_untar(argv[0], "vim.tar", "/")) |
| 64 + return 1; | 63 + return 1; |
| 65 +#endif | 64 +#endif |
| 66 + | 65 + |
| 67 char_u *fname = NULL; /* file name from command line */ | 66 char_u *fname = NULL; /* file name from command line */ |
| 68 mparm_T params; /* various parameters passed between | 67 mparm_T params; /* various parameters passed between |
| (...skipping 17 matching lines...) Expand all Loading... |
| 86 @@ -1,7 +1,7 @@ | 85 @@ -1,7 +1,7 @@ |
| 87 # The most simplistic Makefile | 86 # The most simplistic Makefile |
| 88 | 87 |
| 89 -xxd: xxd.c | 88 -xxd: xxd.c |
| 90 - $(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd xxd.c | 89 - $(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd xxd.c |
| 91 +xxd$(EXEEXT): xxd.c | 90 +xxd$(EXEEXT): xxd.c |
| 92 + $(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd$(EXEEXT) xxd.c | 91 + $(CC) $(CFLAGS) $(LDFLAGS) -DUNIX -o xxd$(EXEEXT) xxd.c |
| 93 | 92 |
| 94 clean: | 93 clean: |
| 95 rm -f xxd xxd.o | 94 rm -f xxd xxd.o |
| OLD | NEW |