Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: tests/spec2k/197.parser/diff

Issue 2244023002: Fix bugs with SPEC2k for WebAssembly (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Specify function pointer types to fix 188.ammp Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/spec2k/188.ammp/diff.README ('k') | tests/spec2k/197.parser/diff.README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/spec2k/197.parser/diff
diff --git a/tests/spec2k/197.parser/diff b/tests/spec2k/197.parser/diff
new file mode 100644
index 0000000000000000000000000000000000000000..6ce4cf8cb61641506e5d2ff10910eb423324e72f
--- /dev/null
+++ b/tests/spec2k/197.parser/diff
@@ -0,0 +1,41 @@
+diff -Naurb src2/header.h src/header.h
+--- src2/header.h 2016-08-12 18:09:40.819477666 -0700
++++ src/header.h 2016-08-12 18:07:15.157315463 -0700
+@@ -23,7 +23,9 @@
+ #include <sys/resource.h> /* ditto */
+ #endif
+
++#ifndef __EMSCRIPTEN__
+ int strncasecmp(const char *s1, const char *s2, size_t);
Derek Schuff 2016/08/15 17:57:45 This declaration is the same as the one for strnca
ddchen 2016/08/16 04:58:51 Done.
++#endif
+ void mark_allocation_point(void);
+ void reset_allocation_point(void);
+ void initialize_memory(void);
+diff -Naurb src2/strncasecmp.c src/strncasecmp.c
+--- src2/strncasecmp.c 2016-08-12 18:09:40.819477666 -0700
++++ src/strncasecmp.c 2016-08-12 18:09:14.667089431 -0700
+@@ -3,7 +3,9 @@
+
+ #ifdef TEST
+ #include <stdio.h>
++#ifndef __EMSCRIPTEN__
+ int strncasecmp(const char *s1, const char *s2, size_t n);
++#endif
+
+ int main (int argc, char *argv[]) {
+ if (argc != 4) {
+@@ -15,6 +17,7 @@
+ }
+ #endif
+
++#ifndef __EMSCRIPTEN__
+ int strncasecmp(const char *s1, const char *s2, size_t n)
+ {
+
+@@ -35,5 +38,6 @@
+ if (*j) return 1;
+ return 0;
+ }
++#endif
+
+
« no previous file with comments | « tests/spec2k/188.ammp/diff.README ('k') | tests/spec2k/197.parser/diff.README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698