Skip to content

Instantly share code, notes, and snippets.

@fumi
Created April 22, 2015 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fumi/138d53c2986c7d36f4d5 to your computer and use it in GitHub Desktop.
Save fumi/138d53c2986c7d36f4d5 to your computer and use it in GitHub Desktop.
Index: compute-accuracy.c
===================================================================
--- compute-accuracy.c (revision 42)
+++ compute-accuracy.c (working copy)
@@ -16,7 +16,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <ctype.h>
const long long max_size = 2000; // max length of strings
Index: distance.c
===================================================================
--- distance.c (revision 42)
+++ distance.c (working copy)
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
-#include <malloc.h>
+#include <stdlib.h>
const long long max_size = 2000; // max length of strings
const long long N = 40; // number of closest words that will be shown
Index: word-analogy.c
===================================================================
--- word-analogy.c (revision 42)
+++ word-analogy.c (working copy)
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
-#include <malloc.h>
+#include <stdlib.h>
const long long max_size = 2000; // max length of strings
const long long N = 40; // number of closest words that will be shown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment