grammar_police 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.DS_Store +0 -0
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/c/.DS_Store +0 -0
- data/c/link-grammar.c +65 -0
- data/c/link-grammar.h +60 -0
- data/c/link-grammar.o +0 -0
- data/c/link-grammar.so +0 -0
- data/c/link-grammar/.DS_Store +0 -0
- data/c/link-grammar/.deps/analyze-linkage.Plo +198 -0
- data/c/link-grammar/.deps/and.Plo +202 -0
- data/c/link-grammar/.deps/api.Plo +244 -0
- data/c/link-grammar/.deps/build-disjuncts.Plo +212 -0
- data/c/link-grammar/.deps/command-line.Plo +201 -0
- data/c/link-grammar/.deps/constituents.Plo +201 -0
- data/c/link-grammar/.deps/count.Plo +202 -0
- data/c/link-grammar/.deps/disjunct-utils.Plo +126 -0
- data/c/link-grammar/.deps/disjuncts.Plo +123 -0
- data/c/link-grammar/.deps/error.Plo +121 -0
- data/c/link-grammar/.deps/expand.Plo +133 -0
- data/c/link-grammar/.deps/extract-links.Plo +198 -0
- data/c/link-grammar/.deps/fast-match.Plo +200 -0
- data/c/link-grammar/.deps/idiom.Plo +200 -0
- data/c/link-grammar/.deps/jni-client.Plo +217 -0
- data/c/link-grammar/.deps/link-parser.Po +1 -0
- data/c/link-grammar/.deps/massage.Plo +202 -0
- data/c/link-grammar/.deps/post-process.Plo +202 -0
- data/c/link-grammar/.deps/pp_knowledge.Plo +202 -0
- data/c/link-grammar/.deps/pp_lexer.Plo +201 -0
- data/c/link-grammar/.deps/pp_linkset.Plo +200 -0
- data/c/link-grammar/.deps/prefix.Plo +102 -0
- data/c/link-grammar/.deps/preparation.Plo +202 -0
- data/c/link-grammar/.deps/print-util.Plo +200 -0
- data/c/link-grammar/.deps/print.Plo +201 -0
- data/c/link-grammar/.deps/prune.Plo +202 -0
- data/c/link-grammar/.deps/read-dict.Plo +223 -0
- data/c/link-grammar/.deps/read-regex.Plo +123 -0
- data/c/link-grammar/.deps/regex-morph.Plo +131 -0
- data/c/link-grammar/.deps/resources.Plo +203 -0
- data/c/link-grammar/.deps/spellcheck-aspell.Plo +1 -0
- data/c/link-grammar/.deps/spellcheck-hun.Plo +115 -0
- data/c/link-grammar/.deps/string-set.Plo +198 -0
- data/c/link-grammar/.deps/tokenize.Plo +160 -0
- data/c/link-grammar/.deps/utilities.Plo +222 -0
- data/c/link-grammar/.deps/word-file.Plo +201 -0
- data/c/link-grammar/.deps/word-utils.Plo +212 -0
- data/c/link-grammar/.libs/analyze-linkage.o +0 -0
- data/c/link-grammar/.libs/and.o +0 -0
- data/c/link-grammar/.libs/api.o +0 -0
- data/c/link-grammar/.libs/build-disjuncts.o +0 -0
- data/c/link-grammar/.libs/command-line.o +0 -0
- data/c/link-grammar/.libs/constituents.o +0 -0
- data/c/link-grammar/.libs/count.o +0 -0
- data/c/link-grammar/.libs/disjunct-utils.o +0 -0
- data/c/link-grammar/.libs/disjuncts.o +0 -0
- data/c/link-grammar/.libs/error.o +0 -0
- data/c/link-grammar/.libs/expand.o +0 -0
- data/c/link-grammar/.libs/extract-links.o +0 -0
- data/c/link-grammar/.libs/fast-match.o +0 -0
- data/c/link-grammar/.libs/idiom.o +0 -0
- data/c/link-grammar/.libs/jni-client.o +0 -0
- data/c/link-grammar/.libs/liblink-grammar-java-symbols.expsym +31 -0
- data/c/link-grammar/.libs/liblink-grammar-java.4.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar-java.4.dylib.dSYM/Contents/Info.plist +20 -0
- data/c/link-grammar/.libs/liblink-grammar-java.4.dylib.dSYM/Contents/Resources/DWARF/liblink-grammar-java.4.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar-java.a +0 -0
- data/c/link-grammar/.libs/liblink-grammar-java.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar-symbols.expsym +194 -0
- data/c/link-grammar/.libs/liblink-grammar.4.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar.4.dylib.dSYM/Contents/Info.plist +20 -0
- data/c/link-grammar/.libs/liblink-grammar.4.dylib.dSYM/Contents/Resources/DWARF/liblink-grammar.4.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar.a +0 -0
- data/c/link-grammar/.libs/liblink-grammar.dylib +0 -0
- data/c/link-grammar/.libs/liblink-grammar.la +41 -0
- data/c/link-grammar/.libs/liblink-grammar.lai +41 -0
- data/c/link-grammar/.libs/massage.o +0 -0
- data/c/link-grammar/.libs/post-process.o +0 -0
- data/c/link-grammar/.libs/pp_knowledge.o +0 -0
- data/c/link-grammar/.libs/pp_lexer.o +0 -0
- data/c/link-grammar/.libs/pp_linkset.o +0 -0
- data/c/link-grammar/.libs/prefix.o +0 -0
- data/c/link-grammar/.libs/preparation.o +0 -0
- data/c/link-grammar/.libs/print-util.o +0 -0
- data/c/link-grammar/.libs/print.o +0 -0
- data/c/link-grammar/.libs/prune.o +0 -0
- data/c/link-grammar/.libs/read-dict.o +0 -0
- data/c/link-grammar/.libs/read-regex.o +0 -0
- data/c/link-grammar/.libs/regex-morph.o +0 -0
- data/c/link-grammar/.libs/resources.o +0 -0
- data/c/link-grammar/.libs/spellcheck-aspell.o +0 -0
- data/c/link-grammar/.libs/spellcheck-hun.o +0 -0
- data/c/link-grammar/.libs/string-set.o +0 -0
- data/c/link-grammar/.libs/tokenize.o +0 -0
- data/c/link-grammar/.libs/utilities.o +0 -0
- data/c/link-grammar/.libs/word-file.o +0 -0
- data/c/link-grammar/.libs/word-utils.o +0 -0
- data/c/link-grammar/Makefile +900 -0
- data/c/link-grammar/Makefile.am +202 -0
- data/c/link-grammar/Makefile.in +900 -0
- data/c/link-grammar/analyze-linkage.c +1317 -0
- data/c/link-grammar/analyze-linkage.h +24 -0
- data/c/link-grammar/and.c +1603 -0
- data/c/link-grammar/and.h +27 -0
- data/c/link-grammar/api-structures.h +362 -0
- data/c/link-grammar/api-types.h +72 -0
- data/c/link-grammar/api.c +1887 -0
- data/c/link-grammar/api.h +96 -0
- data/c/link-grammar/autoit/.DS_Store +0 -0
- data/c/link-grammar/autoit/README +10 -0
- data/c/link-grammar/autoit/_LGTest.au3 +22 -0
- data/c/link-grammar/autoit/_LinkGrammar.au3 +545 -0
- data/c/link-grammar/build-disjuncts.c +487 -0
- data/c/link-grammar/build-disjuncts.h +21 -0
- data/c/link-grammar/command-line.c +458 -0
- data/c/link-grammar/command-line.h +15 -0
- data/c/link-grammar/constituents.c +1836 -0
- data/c/link-grammar/constituents.h +26 -0
- data/c/link-grammar/corpus/.DS_Store +0 -0
- data/c/link-grammar/corpus/.deps/cluster.Plo +1 -0
- data/c/link-grammar/corpus/.deps/corpus.Plo +1 -0
- data/c/link-grammar/corpus/Makefile +527 -0
- data/c/link-grammar/corpus/Makefile.am +46 -0
- data/c/link-grammar/corpus/Makefile.in +527 -0
- data/c/link-grammar/corpus/README +17 -0
- data/c/link-grammar/corpus/cluster.c +286 -0
- data/c/link-grammar/corpus/cluster.h +32 -0
- data/c/link-grammar/corpus/corpus.c +483 -0
- data/c/link-grammar/corpus/corpus.h +46 -0
- data/c/link-grammar/count.c +828 -0
- data/c/link-grammar/count.h +25 -0
- data/c/link-grammar/disjunct-utils.c +261 -0
- data/c/link-grammar/disjunct-utils.h +27 -0
- data/c/link-grammar/disjuncts.c +138 -0
- data/c/link-grammar/disjuncts.h +13 -0
- data/c/link-grammar/error.c +92 -0
- data/c/link-grammar/error.h +35 -0
- data/c/link-grammar/expand.c +67 -0
- data/c/link-grammar/expand.h +13 -0
- data/c/link-grammar/externs.h +22 -0
- data/c/link-grammar/extract-links.c +625 -0
- data/c/link-grammar/extract-links.h +16 -0
- data/c/link-grammar/fast-match.c +309 -0
- data/c/link-grammar/fast-match.h +17 -0
- data/c/link-grammar/idiom.c +373 -0
- data/c/link-grammar/idiom.h +15 -0
- data/c/link-grammar/jni-client.c +779 -0
- data/c/link-grammar/jni-client.h +236 -0
- data/c/link-grammar/liblink-grammar-java.la +42 -0
- data/c/link-grammar/liblink-grammar.la +41 -0
- data/c/link-grammar/link-features.h +37 -0
- data/c/link-grammar/link-features.h.in +37 -0
- data/c/link-grammar/link-grammar-java.def +31 -0
- data/c/link-grammar/link-grammar.def +194 -0
- data/c/link-grammar/link-includes.h +465 -0
- data/c/link-grammar/link-parser.c +849 -0
- data/c/link-grammar/massage.c +329 -0
- data/c/link-grammar/massage.h +13 -0
- data/c/link-grammar/post-process.c +1113 -0
- data/c/link-grammar/post-process.h +45 -0
- data/c/link-grammar/pp_knowledge.c +376 -0
- data/c/link-grammar/pp_knowledge.h +14 -0
- data/c/link-grammar/pp_lexer.c +1920 -0
- data/c/link-grammar/pp_lexer.h +19 -0
- data/c/link-grammar/pp_linkset.c +158 -0
- data/c/link-grammar/pp_linkset.h +20 -0
- data/c/link-grammar/prefix.c +482 -0
- data/c/link-grammar/prefix.h +139 -0
- data/c/link-grammar/preparation.c +412 -0
- data/c/link-grammar/preparation.h +20 -0
- data/c/link-grammar/print-util.c +87 -0
- data/c/link-grammar/print-util.h +32 -0
- data/c/link-grammar/print.c +1085 -0
- data/c/link-grammar/print.h +16 -0
- data/c/link-grammar/prune.c +1864 -0
- data/c/link-grammar/prune.h +17 -0
- data/c/link-grammar/read-dict.c +1785 -0
- data/c/link-grammar/read-dict.h +29 -0
- data/c/link-grammar/read-regex.c +161 -0
- data/c/link-grammar/read-regex.h +12 -0
- data/c/link-grammar/regex-morph.c +126 -0
- data/c/link-grammar/regex-morph.h +17 -0
- data/c/link-grammar/resources.c +180 -0
- data/c/link-grammar/resources.h +23 -0
- data/c/link-grammar/sat-solver/.DS_Store +0 -0
- data/c/link-grammar/sat-solver/.deps/fast-sprintf.Plo +1 -0
- data/c/link-grammar/sat-solver/.deps/sat-encoder.Plo +1 -0
- data/c/link-grammar/sat-solver/.deps/util.Plo +1 -0
- data/c/link-grammar/sat-solver/.deps/variables.Plo +1 -0
- data/c/link-grammar/sat-solver/.deps/word-tag.Plo +1 -0
- data/c/link-grammar/sat-solver/Makefile +527 -0
- data/c/link-grammar/sat-solver/Makefile.am +29 -0
- data/c/link-grammar/sat-solver/Makefile.in +527 -0
- data/c/link-grammar/sat-solver/clock.hpp +33 -0
- data/c/link-grammar/sat-solver/fast-sprintf.cpp +26 -0
- data/c/link-grammar/sat-solver/fast-sprintf.hpp +7 -0
- data/c/link-grammar/sat-solver/guiding.hpp +244 -0
- data/c/link-grammar/sat-solver/matrix-ut.hpp +79 -0
- data/c/link-grammar/sat-solver/sat-encoder.cpp +2811 -0
- data/c/link-grammar/sat-solver/sat-encoder.h +11 -0
- data/c/link-grammar/sat-solver/sat-encoder.hpp +381 -0
- data/c/link-grammar/sat-solver/trie.hpp +118 -0
- data/c/link-grammar/sat-solver/util.cpp +23 -0
- data/c/link-grammar/sat-solver/util.hpp +14 -0
- data/c/link-grammar/sat-solver/variables.cpp +5 -0
- data/c/link-grammar/sat-solver/variables.hpp +829 -0
- data/c/link-grammar/sat-solver/word-tag.cpp +159 -0
- data/c/link-grammar/sat-solver/word-tag.hpp +162 -0
- data/c/link-grammar/spellcheck-aspell.c +148 -0
- data/c/link-grammar/spellcheck-hun.c +136 -0
- data/c/link-grammar/spellcheck.h +34 -0
- data/c/link-grammar/string-set.c +169 -0
- data/c/link-grammar/string-set.h +16 -0
- data/c/link-grammar/structures.h +498 -0
- data/c/link-grammar/tokenize.c +1049 -0
- data/c/link-grammar/tokenize.h +15 -0
- data/c/link-grammar/utilities.c +847 -0
- data/c/link-grammar/utilities.h +281 -0
- data/c/link-grammar/word-file.c +124 -0
- data/c/link-grammar/word-file.h +15 -0
- data/c/link-grammar/word-utils.c +526 -0
- data/c/link-grammar/word-utils.h +152 -0
- data/data/.DS_Store +0 -0
- data/data/Makefile +511 -0
- data/data/Makefile.am +4 -0
- data/data/Makefile.in +511 -0
- data/data/de/.DS_Store +0 -0
- data/data/de/4.0.affix +7 -0
- data/data/de/4.0.dict +474 -0
- data/data/de/Makefile +387 -0
- data/data/de/Makefile.am +9 -0
- data/data/de/Makefile.in +387 -0
- data/data/en/.DS_Store +0 -0
- data/data/en/4.0.affix +26 -0
- data/data/en/4.0.batch +1002 -0
- data/data/en/4.0.biolg.batch +411 -0
- data/data/en/4.0.constituent-knowledge +127 -0
- data/data/en/4.0.dict +8759 -0
- data/data/en/4.0.dict.m4 +6928 -0
- data/data/en/4.0.enwiki.batch +14 -0
- data/data/en/4.0.fixes.batch +2776 -0
- data/data/en/4.0.knowledge +306 -0
- data/data/en/4.0.regex +225 -0
- data/data/en/4.0.voa.batch +114 -0
- data/data/en/Makefile +554 -0
- data/data/en/Makefile.am +19 -0
- data/data/en/Makefile.in +554 -0
- data/data/en/README +173 -0
- data/data/en/tiny.dict +157 -0
- data/data/en/words/.DS_Store +0 -0
- data/data/en/words/Makefile +456 -0
- data/data/en/words/Makefile.am +78 -0
- data/data/en/words/Makefile.in +456 -0
- data/data/en/words/currency +205 -0
- data/data/en/words/currency.p +28 -0
- data/data/en/words/entities.given-bisex.sing +39 -0
- data/data/en/words/entities.given-female.sing +4141 -0
- data/data/en/words/entities.given-male.sing +1633 -0
- data/data/en/words/entities.locations.sing +68 -0
- data/data/en/words/entities.national.sing +253 -0
- data/data/en/words/entities.organizations.sing +7 -0
- data/data/en/words/entities.us-states.sing +11 -0
- data/data/en/words/units.1 +45 -0
- data/data/en/words/units.1.dot +4 -0
- data/data/en/words/units.3 +2 -0
- data/data/en/words/units.4 +5 -0
- data/data/en/words/units.4.dot +1 -0
- data/data/en/words/words-medical.adv.1 +1191 -0
- data/data/en/words/words-medical.prep.1 +67 -0
- data/data/en/words/words-medical.v.4.1 +2835 -0
- data/data/en/words/words-medical.v.4.2 +2848 -0
- data/data/en/words/words-medical.v.4.3 +3011 -0
- data/data/en/words/words-medical.v.4.4 +3036 -0
- data/data/en/words/words-medical.v.4.5 +3050 -0
- data/data/en/words/words.adj.1 +6794 -0
- data/data/en/words/words.adj.2 +638 -0
- data/data/en/words/words.adj.3 +667 -0
- data/data/en/words/words.adv.1 +1573 -0
- data/data/en/words/words.adv.2 +67 -0
- data/data/en/words/words.adv.3 +157 -0
- data/data/en/words/words.adv.4 +80 -0
- data/data/en/words/words.n.1 +11464 -0
- data/data/en/words/words.n.1.wiki +264 -0
- data/data/en/words/words.n.2.s +2017 -0
- data/data/en/words/words.n.2.s.biolg +1 -0
- data/data/en/words/words.n.2.s.wiki +298 -0
- data/data/en/words/words.n.2.x +65 -0
- data/data/en/words/words.n.2.x.wiki +10 -0
- data/data/en/words/words.n.3 +5717 -0
- data/data/en/words/words.n.t +23 -0
- data/data/en/words/words.v.1.1 +1038 -0
- data/data/en/words/words.v.1.2 +1043 -0
- data/data/en/words/words.v.1.3 +1052 -0
- data/data/en/words/words.v.1.4 +1023 -0
- data/data/en/words/words.v.1.p +17 -0
- data/data/en/words/words.v.10.1 +14 -0
- data/data/en/words/words.v.10.2 +15 -0
- data/data/en/words/words.v.10.3 +88 -0
- data/data/en/words/words.v.10.4 +17 -0
- data/data/en/words/words.v.2.1 +1253 -0
- data/data/en/words/words.v.2.2 +1304 -0
- data/data/en/words/words.v.2.3 +1280 -0
- data/data/en/words/words.v.2.4 +1285 -0
- data/data/en/words/words.v.2.5 +1287 -0
- data/data/en/words/words.v.4.1 +2472 -0
- data/data/en/words/words.v.4.2 +2487 -0
- data/data/en/words/words.v.4.3 +2441 -0
- data/data/en/words/words.v.4.4 +2478 -0
- data/data/en/words/words.v.4.5 +2483 -0
- data/data/en/words/words.v.5.1 +98 -0
- data/data/en/words/words.v.5.2 +98 -0
- data/data/en/words/words.v.5.3 +103 -0
- data/data/en/words/words.v.5.4 +102 -0
- data/data/en/words/words.v.6.1 +388 -0
- data/data/en/words/words.v.6.2 +401 -0
- data/data/en/words/words.v.6.3 +397 -0
- data/data/en/words/words.v.6.4 +405 -0
- data/data/en/words/words.v.6.5 +401 -0
- data/data/en/words/words.v.8.1 +117 -0
- data/data/en/words/words.v.8.2 +118 -0
- data/data/en/words/words.v.8.3 +118 -0
- data/data/en/words/words.v.8.4 +119 -0
- data/data/en/words/words.v.8.5 +119 -0
- data/data/en/words/words.y +104 -0
- data/data/lt/.DS_Store +0 -0
- data/data/lt/4.0.affix +6 -0
- data/data/lt/4.0.constituent-knowledge +24 -0
- data/data/lt/4.0.dict +135 -0
- data/data/lt/4.0.knowledge +38 -0
- data/data/lt/Makefile +389 -0
- data/data/lt/Makefile.am +11 -0
- data/data/lt/Makefile.in +389 -0
- data/grammar_police.gemspec +23 -0
- data/lib/.DS_Store +0 -0
- data/lib/grammar_police.rb +11 -0
- data/lib/grammar_police/.DS_Store +0 -0
- data/lib/grammar_police/dictionary.rb +30 -0
- data/lib/grammar_police/linkage.rb +26 -0
- data/lib/grammar_police/parse_options.rb +32 -0
- data/lib/grammar_police/sentence.rb +44 -0
- data/lib/grammar_police/version.rb +3 -0
- data/tests/.DS_Store +0 -0
- data/tests/count_linkages.rb +29 -0
- data/tests/sentences.txt +86 -0
- metadata +408 -0
@@ -0,0 +1,152 @@
|
|
1
|
+
/*************************************************************************/
|
2
|
+
/* Copyright (c) 2004 */
|
3
|
+
/* Daniel Sleator, David Temperley, and John Lafferty */
|
4
|
+
/* All rights reserved */
|
5
|
+
/* */
|
6
|
+
/* Use of the link grammar parsing system is subject to the terms of the */
|
7
|
+
/* license set forth in the LICENSE file included with this software, */
|
8
|
+
/* and also available at http://www.link.cs.cmu.edu/link/license.html */
|
9
|
+
/* This license allows free redistribution and use in source and binary */
|
10
|
+
/* forms, with or without modification, subject to certain conditions. */
|
11
|
+
/* */
|
12
|
+
/*************************************************************************/
|
13
|
+
|
14
|
+
#ifndef _LINK_GRAMMAR_WORD_UTILS_H_
|
15
|
+
#define _LINK_GRAMMAR_WORD_UTILS_H_
|
16
|
+
|
17
|
+
//#include <link-grammar/api-types.h>
|
18
|
+
#include "api-types.h"
|
19
|
+
|
20
|
+
/* Exp utilities ... */
|
21
|
+
void free_Exp(Exp *);
|
22
|
+
void free_E_list(E_list *);
|
23
|
+
int size_of_expression(Exp *);
|
24
|
+
Exp * copy_Exp(Exp *);
|
25
|
+
/* int exp_compare(Exp * e1, Exp * e2); */
|
26
|
+
/* int exp_contains(Exp * super, Exp * sub); */
|
27
|
+
|
28
|
+
|
29
|
+
/* X_node utilities ... */
|
30
|
+
X_node * catenate_X_nodes(X_node *, X_node *);
|
31
|
+
void free_X_nodes(X_node *);
|
32
|
+
|
33
|
+
|
34
|
+
/* Connector utilities ... */
|
35
|
+
Connector * connector_new(void);
|
36
|
+
Connector * init_connector(Connector *c);
|
37
|
+
void free_connectors(Connector *);
|
38
|
+
void exfree_connectors(Connector *);
|
39
|
+
Connector * copy_connectors(Connector *);
|
40
|
+
Connector * excopy_connectors(Connector * c);
|
41
|
+
|
42
|
+
/* Link utilities ... */
|
43
|
+
Link * excopy_link(Link *);
|
44
|
+
void exfree_link(Link *);
|
45
|
+
|
46
|
+
|
47
|
+
/* Connector-set utilities ... */
|
48
|
+
Connector_set * connector_set_create(Exp *e);
|
49
|
+
void connector_set_delete(Connector_set * conset);
|
50
|
+
int match_in_connector_set(Sentence, Connector_set *conset, Connector * c, int d);
|
51
|
+
int word_has_connector(Dict_node *, const char *, int);
|
52
|
+
|
53
|
+
|
54
|
+
/* Dictionary utilities ... */
|
55
|
+
int word_contains(Dictionary dict, const char * word, const char * macro);
|
56
|
+
Dict_node * list_whole_dictionary(Dict_node *, Dict_node *);
|
57
|
+
|
58
|
+
static inline int string_hash(const char *s)
|
59
|
+
{
|
60
|
+
unsigned int i;
|
61
|
+
|
62
|
+
/* djb2 hash */
|
63
|
+
i = 5381;
|
64
|
+
while (*s)
|
65
|
+
{
|
66
|
+
i = ((i << 5) + i) + *s;
|
67
|
+
s++;
|
68
|
+
}
|
69
|
+
return i;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* This hash function only looks at the leading upper case letters of
|
74
|
+
* the connector string, and the label fields. This ensures that if two
|
75
|
+
* strings match (formally), then they must hash to the same place.
|
76
|
+
*/
|
77
|
+
static inline int connector_hash(Connector * c)
|
78
|
+
{
|
79
|
+
const char *s;
|
80
|
+
unsigned int i;
|
81
|
+
|
82
|
+
if (-1 != c->hash) return c->hash;
|
83
|
+
|
84
|
+
/* For most situations, both hashes are very nearly equal;
|
85
|
+
* sdbm seems to be about 5% faster than djb2, hard to say.
|
86
|
+
* In either case, realize that the connector string is
|
87
|
+
* very very short - usually one or two letters, so we have
|
88
|
+
* probably only 8 or 10 bits total entropy coming in! */
|
89
|
+
#if 0
|
90
|
+
/* djb2 hash */
|
91
|
+
i = 5381;
|
92
|
+
i = ((i << 5) + i) + (0xff & c->label);
|
93
|
+
s = c->string;
|
94
|
+
while (isupper((int) *s)) /* connector tables cannot contain UTF8, yet */
|
95
|
+
{
|
96
|
+
i = ((i << 5) + i) + *s;
|
97
|
+
s++;
|
98
|
+
}
|
99
|
+
i += i>>14;
|
100
|
+
|
101
|
+
#else
|
102
|
+
/* sdbm hash */
|
103
|
+
i = (0xff & c->label);
|
104
|
+
s = c->string;
|
105
|
+
while (isupper((int) *s)) /* connector tables cannot contain UTF8, yet */
|
106
|
+
{
|
107
|
+
i = *s + (i << 6) + (i << 16) - i;
|
108
|
+
s++;
|
109
|
+
}
|
110
|
+
#endif
|
111
|
+
|
112
|
+
c->prune_string = s;
|
113
|
+
c->hash = i;
|
114
|
+
return i;
|
115
|
+
}
|
116
|
+
|
117
|
+
/**
|
118
|
+
* hash function. Based on some tests, this seems to be an almost
|
119
|
+
* "perfect" hash, in that almost all hash buckets have the same size!
|
120
|
+
*/
|
121
|
+
static inline int pair_hash(int log2_table_size,
|
122
|
+
int lw, int rw,
|
123
|
+
const Connector *le, const Connector *re,
|
124
|
+
int cost)
|
125
|
+
{
|
126
|
+
int table_size = (1 << log2_table_size);
|
127
|
+
unsigned int i = 0;
|
128
|
+
|
129
|
+
#if 0
|
130
|
+
/* hash function. Based on some tests, this seems to be
|
131
|
+
* an almost "perfect" hash, in that almost all hash buckets
|
132
|
+
* have the same size! */
|
133
|
+
i += 1 << cost;
|
134
|
+
i += 1 << (lw % (log2_table_size-1));
|
135
|
+
i += 1 << (rw % (log2_table_size-1));
|
136
|
+
i += ((unsigned int) le) >> 2;
|
137
|
+
i += ((unsigned int) le) >> log2_table_size;
|
138
|
+
i += ((unsigned int) re) >> 2;
|
139
|
+
i += ((unsigned int) re) >> log2_table_size;
|
140
|
+
i += i >> log2_table_size;
|
141
|
+
#else
|
142
|
+
/* sdbm-based hash */
|
143
|
+
i = cost;
|
144
|
+
i = lw + (i << 6) + (i << 16) - i;
|
145
|
+
i = rw + (i << 6) + (i << 16) - i;
|
146
|
+
i = ((unsigned long) le) + (i << 6) + (i << 16) - i;
|
147
|
+
i = ((unsigned long) re) + (i << 6) + (i << 16) - i;
|
148
|
+
#endif
|
149
|
+
|
150
|
+
return i & (table_size-1);
|
151
|
+
}
|
152
|
+
#endif /* _LINK_GRAMMAR_WORD_UTILS_H_ */
|
data/data/.DS_Store
ADDED
Binary file
|
data/data/Makefile
ADDED
@@ -0,0 +1,511 @@
|
|
1
|
+
# Makefile.in generated by automake 1.10.2 from Makefile.am.
|
2
|
+
# data/Makefile. Generated from Makefile.in by configure.
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
6
|
+
# This Makefile.in is free software; the Free Software Foundation
|
7
|
+
# gives unlimited permission to copy and/or distribute it,
|
8
|
+
# with or without modifications, as long as this notice is preserved.
|
9
|
+
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
12
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
13
|
+
# PARTICULAR PURPOSE.
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
pkgdatadir = $(datadir)/link-grammar
|
18
|
+
pkglibdir = $(libdir)/link-grammar
|
19
|
+
pkgincludedir = $(includedir)/link-grammar
|
20
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
21
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
22
|
+
install_sh_PROGRAM = $(install_sh) -c
|
23
|
+
install_sh_SCRIPT = $(install_sh) -c
|
24
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
25
|
+
transform = $(program_transform_name)
|
26
|
+
NORMAL_INSTALL = :
|
27
|
+
PRE_INSTALL = :
|
28
|
+
POST_INSTALL = :
|
29
|
+
NORMAL_UNINSTALL = :
|
30
|
+
PRE_UNINSTALL = :
|
31
|
+
POST_UNINSTALL = :
|
32
|
+
build_triplet = i386-apple-darwin10.7.0
|
33
|
+
host_triplet = i386-apple-darwin10.7.0
|
34
|
+
subdir = data
|
35
|
+
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
36
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
37
|
+
am__aclocal_m4_deps = $(top_srcdir)/ac-helpers/binreloc.m4 \
|
38
|
+
$(top_srcdir)/configure.in
|
39
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
40
|
+
$(ACLOCAL_M4)
|
41
|
+
mkinstalldirs = $(install_sh) -d
|
42
|
+
CONFIG_CLEAN_FILES =
|
43
|
+
SOURCES =
|
44
|
+
DIST_SOURCES =
|
45
|
+
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
46
|
+
html-recursive info-recursive install-data-recursive \
|
47
|
+
install-dvi-recursive install-exec-recursive \
|
48
|
+
install-html-recursive install-info-recursive \
|
49
|
+
install-pdf-recursive install-ps-recursive install-recursive \
|
50
|
+
installcheck-recursive installdirs-recursive pdf-recursive \
|
51
|
+
ps-recursive uninstall-recursive
|
52
|
+
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
53
|
+
distclean-recursive maintainer-clean-recursive
|
54
|
+
ETAGS = etags
|
55
|
+
CTAGS = ctags
|
56
|
+
DIST_SUBDIRS = $(SUBDIRS)
|
57
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
58
|
+
ACLOCAL = aclocal-1.10
|
59
|
+
AMTAR = tar
|
60
|
+
AR = ar
|
61
|
+
AS = as
|
62
|
+
ASPELL_CFLAGS =
|
63
|
+
ASPELL_LIBS =
|
64
|
+
AUTOCONF = autoconf
|
65
|
+
AUTOHEADER = autoheader
|
66
|
+
AUTOMAKE = automake-1.10
|
67
|
+
AWK = awk
|
68
|
+
BINRELOC_CFLAGS =
|
69
|
+
BINRELOC_LIBS =
|
70
|
+
CC = gcc
|
71
|
+
CCDEPMODE = depmode=gcc3
|
72
|
+
CFLAGS = -g -O2 -std=c99 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
|
73
|
+
CPP = gcc -E
|
74
|
+
CPPFLAGS = -I /include -I /include/freebsd -I /include/linux -I /include/win32 -I /Headers -I /include -I /include/freebsd -I /include/linux -I /include/win32 -I /Headers -I/usr/include/classpath/ -I/usr/local/jdk1.6.0/include/ -I/usr/local/jdk1.6.0/include/freebsd -I/usr/local/jdk1.6.0/include/linux -I/usr/lib/jvm/java-6-sun/include/ -I/usr/lib/jvm/java-6-sun/include/freebsd -I/usr/lib/jvm/java-6-sun/include/linux -I/usr/lib/j2sdk1.6-ibm/include -I/usr/lib/j2sdk1.6-ibm/include/freebsd -I/usr/lib/j2sdk1.6-ibm/include/linux -I/opt/jdk1.5/include/ -I/opt/jdk1.5/include/freebsd -I/opt/jdk1.5/include/linux -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include/freebsd -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/include/linux -I/c/java/jdk1.6.0/include/ -I/c/java/jdk1.6.0/include/win32/ -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/JavaVM.framework/Headers/ -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaVM.framework/Headers/
|
75
|
+
CXX = g++
|
76
|
+
CXXCPP = g++ -E
|
77
|
+
CXXDEPMODE = depmode=gcc3
|
78
|
+
CXXFLAGS = -g -O2
|
79
|
+
CYGPATH_W = echo
|
80
|
+
DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"link-grammar\" -DVERSION=\"4.7.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_TOWUPPER=1 -DDEBUG_MEMORY=0 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_REGEXEC=1
|
81
|
+
DEPDIR = .deps
|
82
|
+
DLLTOOL = dlltool
|
83
|
+
DSYMUTIL = dsymutil
|
84
|
+
DUMPBIN =
|
85
|
+
ECHO_C = \c
|
86
|
+
ECHO_N =
|
87
|
+
ECHO_T =
|
88
|
+
EGREP = /usr/bin/grep -E
|
89
|
+
EXEEXT =
|
90
|
+
FGREP = /usr/bin/grep -F
|
91
|
+
GREP = /usr/bin/grep
|
92
|
+
HUNSPELL_CFLAGS =
|
93
|
+
HUNSPELL_LIBS =
|
94
|
+
INSTALL = /usr/bin/install -c
|
95
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
96
|
+
INSTALL_PROGRAM = ${INSTALL}
|
97
|
+
INSTALL_SCRIPT = ${INSTALL}
|
98
|
+
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
|
99
|
+
LD = /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
|
100
|
+
LDFLAGS =
|
101
|
+
LIBEDIT_CFLAGS =
|
102
|
+
LIBEDIT_LIBS =
|
103
|
+
LIBOBJS =
|
104
|
+
LIBS =
|
105
|
+
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
106
|
+
LINK_CFLAGS = -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing
|
107
|
+
LINK_MAJOR_VERSION = 4
|
108
|
+
LINK_MICRO_VERSION = 4
|
109
|
+
LINK_MINOR_VERSION = 7
|
110
|
+
LIPO = lipo
|
111
|
+
LN_S = ln -s
|
112
|
+
LTLIBOBJS =
|
113
|
+
MAINT = #
|
114
|
+
MAKEINFO = makeinfo
|
115
|
+
MKDIR_P = .././install-sh -c -d
|
116
|
+
NM = /usr/bin/nm
|
117
|
+
NMEDIT = nmedit
|
118
|
+
OBJDUMP = objdump
|
119
|
+
OBJEXT = o
|
120
|
+
OTOOL = otool
|
121
|
+
OTOOL64 = :
|
122
|
+
PACKAGE = link-grammar
|
123
|
+
PACKAGE_BUGREPORT =
|
124
|
+
PACKAGE_NAME =
|
125
|
+
PACKAGE_STRING =
|
126
|
+
PACKAGE_TARNAME =
|
127
|
+
PACKAGE_VERSION =
|
128
|
+
PATH_SEPARATOR = :
|
129
|
+
PKG_CONFIG = /opt/local/bin/pkg-config
|
130
|
+
RANLIB = ranlib
|
131
|
+
REGEX_LIBS =
|
132
|
+
SED = /usr/bin/sed
|
133
|
+
SET_MAKE =
|
134
|
+
SHELL = /bin/sh
|
135
|
+
SQLITE3_CFLAGS =
|
136
|
+
SQLITE3_LIBS =
|
137
|
+
STRIP = strip
|
138
|
+
VERSION = 4.7.4
|
139
|
+
VERSION_INFO = 11:4:7
|
140
|
+
abs_builddir = /Users/quannguyen/Desktop/link grammar/link-grammar-4.7.4/data
|
141
|
+
abs_srcdir = /Users/quannguyen/Desktop/link grammar/link-grammar-4.7.4/data
|
142
|
+
abs_top_builddir = /Users/quannguyen/Desktop/link grammar/link-grammar-4.7.4
|
143
|
+
abs_top_srcdir = /Users/quannguyen/Desktop/link grammar/link-grammar-4.7.4
|
144
|
+
ac_ct_CC = gcc
|
145
|
+
ac_ct_CXX = g++
|
146
|
+
ac_ct_DUMPBIN =
|
147
|
+
am__include = include
|
148
|
+
am__leading_dot = .
|
149
|
+
am__quote =
|
150
|
+
am__tar = ${AMTAR} chof - "$$tardir"
|
151
|
+
am__untar = ${AMTAR} xf -
|
152
|
+
bindir = ${exec_prefix}/bin
|
153
|
+
build = i386-apple-darwin10.7.0
|
154
|
+
build_alias =
|
155
|
+
build_cpu = i386
|
156
|
+
build_os = darwin10.7.0
|
157
|
+
build_vendor = apple
|
158
|
+
builddir = .
|
159
|
+
datadir = ${datarootdir}
|
160
|
+
datarootdir = ${prefix}/share
|
161
|
+
docdir = ${datarootdir}/doc/${PACKAGE}
|
162
|
+
dvidir = ${docdir}
|
163
|
+
exec_prefix = ${prefix}
|
164
|
+
host = i386-apple-darwin10.7.0
|
165
|
+
host_alias =
|
166
|
+
host_cpu = i386
|
167
|
+
host_os = darwin10.7.0
|
168
|
+
host_vendor = apple
|
169
|
+
htmldir = ${docdir}
|
170
|
+
includedir = ${prefix}/include
|
171
|
+
infodir = ${datarootdir}/info
|
172
|
+
install_sh = $(SHELL) /Users/quannguyen/Desktop/link grammar/link-grammar-4.7.4/install-sh
|
173
|
+
libdir = ${exec_prefix}/lib
|
174
|
+
libexecdir = ${exec_prefix}/libexec
|
175
|
+
localedir = ${datarootdir}/locale
|
176
|
+
localstatedir = ${prefix}/var
|
177
|
+
lt_ECHO = /bin/echo
|
178
|
+
mandir = ${datarootdir}/man
|
179
|
+
mkdir_p = $(top_builddir)/./install-sh -c -d
|
180
|
+
oldincludedir = /usr/include
|
181
|
+
pdfdir = ${docdir}
|
182
|
+
prefix = /usr/local
|
183
|
+
program_transform_name = s,x,x,
|
184
|
+
psdir = ${docdir}
|
185
|
+
sbindir = ${exec_prefix}/sbin
|
186
|
+
sharedstatedir = ${prefix}/com
|
187
|
+
srcdir = .
|
188
|
+
sysconfdir = ${prefix}/etc
|
189
|
+
target_alias =
|
190
|
+
top_build_prefix = ../
|
191
|
+
top_builddir = ..
|
192
|
+
top_srcdir = ..
|
193
|
+
SUBDIRS = de en lt
|
194
|
+
all: all-recursive
|
195
|
+
|
196
|
+
.SUFFIXES:
|
197
|
+
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
|
198
|
+
@for dep in $?; do \
|
199
|
+
case '$(am__configure_deps)' in \
|
200
|
+
*$$dep*) \
|
201
|
+
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
202
|
+
&& { if test -f $@; then exit 0; else break; fi; }; \
|
203
|
+
exit 1;; \
|
204
|
+
esac; \
|
205
|
+
done; \
|
206
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign data/Makefile'; \
|
207
|
+
cd $(top_srcdir) && \
|
208
|
+
$(AUTOMAKE) --foreign data/Makefile
|
209
|
+
.PRECIOUS: Makefile
|
210
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
211
|
+
@case '$?' in \
|
212
|
+
*config.status*) \
|
213
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
214
|
+
*) \
|
215
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
216
|
+
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
217
|
+
esac;
|
218
|
+
|
219
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
220
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
221
|
+
|
222
|
+
$(top_srcdir)/configure: # $(am__configure_deps)
|
223
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
224
|
+
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
225
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
226
|
+
|
227
|
+
mostlyclean-libtool:
|
228
|
+
-rm -f *.lo
|
229
|
+
|
230
|
+
clean-libtool:
|
231
|
+
-rm -rf .libs _libs
|
232
|
+
|
233
|
+
# This directory's subdirectories are mostly independent; you can cd
|
234
|
+
# into them and run `make' without going through this Makefile.
|
235
|
+
# To change the values of `make' variables: instead of editing Makefiles,
|
236
|
+
# (1) if the variable is set in `config.status', edit `config.status'
|
237
|
+
# (which will cause the Makefiles to be regenerated when you run `make');
|
238
|
+
# (2) otherwise, pass the desired values on the `make' command line.
|
239
|
+
$(RECURSIVE_TARGETS):
|
240
|
+
@failcom='exit 1'; \
|
241
|
+
for f in x $$MAKEFLAGS; do \
|
242
|
+
case $$f in \
|
243
|
+
*=* | --[!k]*);; \
|
244
|
+
*k*) failcom='fail=yes';; \
|
245
|
+
esac; \
|
246
|
+
done; \
|
247
|
+
dot_seen=no; \
|
248
|
+
target=`echo $@ | sed s/-recursive//`; \
|
249
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
250
|
+
echo "Making $$target in $$subdir"; \
|
251
|
+
if test "$$subdir" = "."; then \
|
252
|
+
dot_seen=yes; \
|
253
|
+
local_target="$$target-am"; \
|
254
|
+
else \
|
255
|
+
local_target="$$target"; \
|
256
|
+
fi; \
|
257
|
+
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
258
|
+
|| eval $$failcom; \
|
259
|
+
done; \
|
260
|
+
if test "$$dot_seen" = "no"; then \
|
261
|
+
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
262
|
+
fi; test -z "$$fail"
|
263
|
+
|
264
|
+
$(RECURSIVE_CLEAN_TARGETS):
|
265
|
+
@failcom='exit 1'; \
|
266
|
+
for f in x $$MAKEFLAGS; do \
|
267
|
+
case $$f in \
|
268
|
+
*=* | --[!k]*);; \
|
269
|
+
*k*) failcom='fail=yes';; \
|
270
|
+
esac; \
|
271
|
+
done; \
|
272
|
+
dot_seen=no; \
|
273
|
+
case "$@" in \
|
274
|
+
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
|
275
|
+
*) list='$(SUBDIRS)' ;; \
|
276
|
+
esac; \
|
277
|
+
rev=''; for subdir in $$list; do \
|
278
|
+
if test "$$subdir" = "."; then :; else \
|
279
|
+
rev="$$subdir $$rev"; \
|
280
|
+
fi; \
|
281
|
+
done; \
|
282
|
+
rev="$$rev ."; \
|
283
|
+
target=`echo $@ | sed s/-recursive//`; \
|
284
|
+
for subdir in $$rev; do \
|
285
|
+
echo "Making $$target in $$subdir"; \
|
286
|
+
if test "$$subdir" = "."; then \
|
287
|
+
local_target="$$target-am"; \
|
288
|
+
else \
|
289
|
+
local_target="$$target"; \
|
290
|
+
fi; \
|
291
|
+
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
292
|
+
|| eval $$failcom; \
|
293
|
+
done && test -z "$$fail"
|
294
|
+
tags-recursive:
|
295
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
296
|
+
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
297
|
+
done
|
298
|
+
ctags-recursive:
|
299
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
300
|
+
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
|
301
|
+
done
|
302
|
+
|
303
|
+
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
304
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
305
|
+
unique=`for i in $$list; do \
|
306
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
307
|
+
done | \
|
308
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
309
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
310
|
+
mkid -fID $$unique
|
311
|
+
tags: TAGS
|
312
|
+
|
313
|
+
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
314
|
+
$(TAGS_FILES) $(LISP)
|
315
|
+
tags=; \
|
316
|
+
here=`pwd`; \
|
317
|
+
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
|
318
|
+
include_option=--etags-include; \
|
319
|
+
empty_fix=.; \
|
320
|
+
else \
|
321
|
+
include_option=--include; \
|
322
|
+
empty_fix=; \
|
323
|
+
fi; \
|
324
|
+
list='$(SUBDIRS)'; for subdir in $$list; do \
|
325
|
+
if test "$$subdir" = .; then :; else \
|
326
|
+
test ! -f $$subdir/TAGS || \
|
327
|
+
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
|
328
|
+
fi; \
|
329
|
+
done; \
|
330
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
331
|
+
unique=`for i in $$list; do \
|
332
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
333
|
+
done | \
|
334
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
335
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
336
|
+
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
337
|
+
test -n "$$unique" || unique=$$empty_fix; \
|
338
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
339
|
+
$$tags $$unique; \
|
340
|
+
fi
|
341
|
+
ctags: CTAGS
|
342
|
+
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
343
|
+
$(TAGS_FILES) $(LISP)
|
344
|
+
tags=; \
|
345
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
346
|
+
unique=`for i in $$list; do \
|
347
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
348
|
+
done | \
|
349
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
350
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
351
|
+
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
352
|
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
353
|
+
$$tags $$unique
|
354
|
+
|
355
|
+
GTAGS:
|
356
|
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
357
|
+
&& cd $(top_srcdir) \
|
358
|
+
&& gtags -i $(GTAGS_ARGS) $$here
|
359
|
+
|
360
|
+
distclean-tags:
|
361
|
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
362
|
+
|
363
|
+
distdir: $(DISTFILES)
|
364
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
365
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
366
|
+
list='$(DISTFILES)'; \
|
367
|
+
dist_files=`for file in $$list; do echo $$file; done | \
|
368
|
+
sed -e "s|^$$srcdirstrip/||;t" \
|
369
|
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
370
|
+
case $$dist_files in \
|
371
|
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
372
|
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
373
|
+
sort -u` ;; \
|
374
|
+
esac; \
|
375
|
+
for file in $$dist_files; do \
|
376
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
377
|
+
if test -d $$d/$$file; then \
|
378
|
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
379
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
380
|
+
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
381
|
+
fi; \
|
382
|
+
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
383
|
+
else \
|
384
|
+
test -f $(distdir)/$$file \
|
385
|
+
|| cp -p $$d/$$file $(distdir)/$$file \
|
386
|
+
|| exit 1; \
|
387
|
+
fi; \
|
388
|
+
done
|
389
|
+
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
390
|
+
if test "$$subdir" = .; then :; else \
|
391
|
+
test -d "$(distdir)/$$subdir" \
|
392
|
+
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
393
|
+
|| exit 1; \
|
394
|
+
distdir=`$(am__cd) $(distdir) && pwd`; \
|
395
|
+
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
|
396
|
+
(cd $$subdir && \
|
397
|
+
$(MAKE) $(AM_MAKEFLAGS) \
|
398
|
+
top_distdir="$$top_distdir" \
|
399
|
+
distdir="$$distdir/$$subdir" \
|
400
|
+
am__remove_distdir=: \
|
401
|
+
am__skip_length_check=: \
|
402
|
+
distdir) \
|
403
|
+
|| exit 1; \
|
404
|
+
fi; \
|
405
|
+
done
|
406
|
+
check-am: all-am
|
407
|
+
check: check-recursive
|
408
|
+
all-am: Makefile
|
409
|
+
installdirs: installdirs-recursive
|
410
|
+
installdirs-am:
|
411
|
+
install: install-recursive
|
412
|
+
install-exec: install-exec-recursive
|
413
|
+
install-data: install-data-recursive
|
414
|
+
uninstall: uninstall-recursive
|
415
|
+
|
416
|
+
install-am: all-am
|
417
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
418
|
+
|
419
|
+
installcheck: installcheck-recursive
|
420
|
+
install-strip:
|
421
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
422
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
423
|
+
`test -z '$(STRIP)' || \
|
424
|
+
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
425
|
+
mostlyclean-generic:
|
426
|
+
|
427
|
+
clean-generic:
|
428
|
+
|
429
|
+
distclean-generic:
|
430
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
431
|
+
|
432
|
+
maintainer-clean-generic:
|
433
|
+
@echo "This command is intended for maintainers to use"
|
434
|
+
@echo "it deletes files that may require special tools to rebuild."
|
435
|
+
clean: clean-recursive
|
436
|
+
|
437
|
+
clean-am: clean-generic clean-libtool mostlyclean-am
|
438
|
+
|
439
|
+
distclean: distclean-recursive
|
440
|
+
-rm -f Makefile
|
441
|
+
distclean-am: clean-am distclean-generic distclean-tags
|
442
|
+
|
443
|
+
dvi: dvi-recursive
|
444
|
+
|
445
|
+
dvi-am:
|
446
|
+
|
447
|
+
html: html-recursive
|
448
|
+
|
449
|
+
info: info-recursive
|
450
|
+
|
451
|
+
info-am:
|
452
|
+
|
453
|
+
install-data-am:
|
454
|
+
|
455
|
+
install-dvi: install-dvi-recursive
|
456
|
+
|
457
|
+
install-exec-am:
|
458
|
+
|
459
|
+
install-html: install-html-recursive
|
460
|
+
|
461
|
+
install-info: install-info-recursive
|
462
|
+
|
463
|
+
install-man:
|
464
|
+
|
465
|
+
install-pdf: install-pdf-recursive
|
466
|
+
|
467
|
+
install-ps: install-ps-recursive
|
468
|
+
|
469
|
+
installcheck-am:
|
470
|
+
|
471
|
+
maintainer-clean: maintainer-clean-recursive
|
472
|
+
-rm -f Makefile
|
473
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
474
|
+
|
475
|
+
mostlyclean: mostlyclean-recursive
|
476
|
+
|
477
|
+
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
478
|
+
|
479
|
+
pdf: pdf-recursive
|
480
|
+
|
481
|
+
pdf-am:
|
482
|
+
|
483
|
+
ps: ps-recursive
|
484
|
+
|
485
|
+
ps-am:
|
486
|
+
|
487
|
+
uninstall-am:
|
488
|
+
|
489
|
+
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
|
490
|
+
install-strip
|
491
|
+
|
492
|
+
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
493
|
+
all all-am check check-am clean clean-generic clean-libtool \
|
494
|
+
ctags ctags-recursive distclean distclean-generic \
|
495
|
+
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
496
|
+
html-am info info-am install install-am install-data \
|
497
|
+
install-data-am install-dvi install-dvi-am install-exec \
|
498
|
+
install-exec-am install-html install-html-am install-info \
|
499
|
+
install-info-am install-man install-pdf install-pdf-am \
|
500
|
+
install-ps install-ps-am install-strip installcheck \
|
501
|
+
installcheck-am installdirs installdirs-am maintainer-clean \
|
502
|
+
maintainer-clean-generic mostlyclean mostlyclean-generic \
|
503
|
+
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
|
504
|
+
uninstall uninstall-am
|
505
|
+
|
506
|
+
|
507
|
+
# include the script in the tarball, but do not install it.
|
508
|
+
# EXTRA_DIST=insert.pl
|
509
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
510
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
511
|
+
.NOEXPORT:
|