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

Unified Diff: third_party/hunspell_new/src/parsers/testparser.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 side-by-side diff with in-line comments
Download patch
Index: third_party/hunspell_new/src/parsers/testparser.cxx
diff --git a/third_party/hunspell_new/src/parsers/testparser.cxx b/third_party/hunspell_new/src/parsers/testparser.cxx
deleted file mode 100644
index 0774ee9f592b922bc712c712f53c3976b5b4ad72..0000000000000000000000000000000000000000
--- a/third_party/hunspell_new/src/parsers/testparser.cxx
+++ /dev/null
@@ -1,53 +0,0 @@
-#include <cstring>
-#include <cstdlib>
-#include <cstdio>
-
-#include "textparser.hxx"
-#include "htmlparser.hxx"
-#include "latexparser.hxx"
-
-#ifndef W32
-using namespace std;
-#endif
-
-int
-main(int argc, char** argv)
-{
- FILE * f;
- /* first parse the command line options */
-
- if (argc < 2) {
- fprintf(stderr,"correct syntax is:\n");
- fprintf(stderr,"testparser file\n");
- fprintf(stderr,"example: testparser /dev/stdin\n");
- exit(1);
- }
-
- /* open the words to check list */
- f = fopen(argv[1],"r");
- if (!f) {
- fprintf(stderr,"Error - could not open file of words to check\n");
- exit(1);
- }
-
- TextParser * p = new LaTeXParser("qwertzuiopasdfghjklyxcvbnméáúõûóüöíQWERTZUIOPASDFGHJKLYXCVBNMÍÉÁÕÚÖÜÓÛ");
-
- char buf[MAXLNLEN];
- char * next;
-
- while(fgets(buf,MAXLNLEN,f)) {
- fprintf(stdout,"---------------------------------------\n");
- p->put_line(buf);
- fprintf(stderr, "x:%s\n", buf);
- p->set_url_checking(1);
- while ((next=p->next_token())) {
- fprintf(stdout,"token: %s\n",next);
- free(next);
- }
- }
-
- delete p;
- fclose(f);
- return 0;
-}
-
« no previous file with comments | « third_party/hunspell_new/src/parsers/manparser.cxx ('k') | third_party/hunspell_new/src/parsers/textparser.hxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698