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

Side by Side Diff: third_party/hunspell/src/parsers/firstparser.cxx

Issue 1135173004: Rename third_party/hunspell_new back to third_party/hunspell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 #include <cstdlib> 1 #include <cstdlib>
2 #include <cstring> 2 #include <cstring>
3 #include <cstdio> 3 #include <cstdio>
4 #include <ctype.h> 4 #include <ctype.h>
5 5
6 #include "../hunspell/csutil.hxx" 6 #include "../hunspell/csutil.hxx"
7 #include "firstparser.hxx" 7 #include "firstparser.hxx"
8 8
9 #ifndef W32 9 #ifndef W32
10 using namespace std; 10 using namespace std;
(...skipping 13 matching lines...) Expand all
24 char * tabpos = strchr(line[actual],'\t'); 24 char * tabpos = strchr(line[actual],'\t');
25 if ((tabpos) && (tabpos - line[actual]>token)) { 25 if ((tabpos) && (tabpos - line[actual]>token)) {
26 char * t = (char *) malloc(tabpos - line[actual] + 1); 26 char * t = (char *) malloc(tabpos - line[actual] + 1);
27 t[tabpos - line[actual]] = '\0'; 27 t[tabpos - line[actual]] = '\0';
28 token = tabpos - line[actual] +1; 28 token = tabpos - line[actual] +1;
29 if (t) return strncpy(t, line[actual], tabpos - line[actual]); 29 if (t) return strncpy(t, line[actual], tabpos - line[actual]);
30 fprintf(stderr,"Error - Insufficient Memory\n"); 30 fprintf(stderr,"Error - Insufficient Memory\n");
31 } 31 }
32 return NULL; 32 return NULL;
33 } 33 }
OLDNEW
« no previous file with comments | « third_party/hunspell/src/parsers/firstparser.hxx ('k') | third_party/hunspell/src/parsers/htmlparser.hxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698