Commit 0d48140dda4ccfa3797610c1a2a349745670df0f
1 parent
91dda964
- zmiana nazwy MorfeuszInternal --> MorfeuszImpl
git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/trunk@247 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing
9 changed files
with
91 additions
and
104 deletions
morfeusz/CMakeLists.txt
morfeusz/Morfeusz.cpp
1 | 1 | |
2 | 2 | #include <string> |
3 | 3 | #include "morfeusz2.h" |
4 | -#include "MorfeuszInternal.hpp" | |
4 | +#include "MorfeuszImpl.hpp" | |
5 | 5 | |
6 | 6 | namespace morfeusz { |
7 | 7 | |
... | ... | @@ -13,7 +13,7 @@ namespace morfeusz { |
13 | 13 | } |
14 | 14 | |
15 | 15 | Morfeusz* Morfeusz::createInstance() { |
16 | - return new MorfeuszInternal(); | |
16 | + return new MorfeuszImpl(); | |
17 | 17 | } |
18 | 18 | |
19 | 19 | Morfeusz::~Morfeusz() { |
... | ... |
morfeusz/MorfeuszInternal.cpp renamed to morfeusz/MorfeuszImpl.cpp
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | #include "fsa/fsa.hpp" |
13 | 13 | #include "utils.hpp" |
14 | 14 | #include "data/default_fsa.hpp" |
15 | -#include "MorfeuszInternal.hpp" | |
15 | +#include "MorfeuszImpl.hpp" | |
16 | 16 | #include "deserialization/morphInterps/InterpretedChunksDecoder.hpp" |
17 | 17 | #include "charset/CharsetConverter.hpp" |
18 | 18 | #include "charset/charset_utils.hpp" |
... | ... | @@ -113,7 +113,7 @@ namespace morfeusz { |
113 | 113 | return ic; |
114 | 114 | } |
115 | 115 | |
116 | - MorfeuszInternal::MorfeuszInternal() | |
116 | + MorfeuszImpl::MorfeuszImpl() | |
117 | 117 | : analyzerEnv(DEFAULT_MORFEUSZ_CHARSET, ANALYZER, DEFAULT_FSA), |
118 | 118 | generatorEnv(DEFAULT_MORFEUSZ_CHARSET, GENERATOR, DEFAULT_SYNTH_FSA), |
119 | 119 | options(createDefaultOptions()), |
... | ... | @@ -125,15 +125,15 @@ namespace morfeusz { |
125 | 125 | generatorEnv.setCaseSensitive(false); |
126 | 126 | } |
127 | 127 | |
128 | - void MorfeuszInternal::setAnalyzerDictionary(const string& filename) { | |
128 | + void MorfeuszImpl::setAnalyzerDictionary(const string& filename) { | |
129 | 129 | this->analyzerEnv.setDictionaryFile(filename); |
130 | 130 | } |
131 | 131 | |
132 | - void MorfeuszInternal::setGeneratorDictionary(const string& filename) { | |
132 | + void MorfeuszImpl::setGeneratorDictionary(const string& filename) { | |
133 | 133 | this->generatorEnv.setDictionaryFile(filename); |
134 | 134 | } |
135 | 135 | |
136 | - MorfeuszInternal::~MorfeuszInternal() { | |
136 | + MorfeuszImpl::~MorfeuszImpl() { | |
137 | 137 | } |
138 | 138 | |
139 | 139 | const char* getWordEndPtr(const TextReader& reader, const Environment& env) { |
... | ... | @@ -144,7 +144,7 @@ namespace morfeusz { |
144 | 144 | return tmpReader.getCurrPtr(); |
145 | 145 | } |
146 | 146 | |
147 | - bool MorfeuszInternal::handleWhitespacesAtBeginning( | |
147 | + bool MorfeuszImpl::handleWhitespacesAtBeginning( | |
148 | 148 | const Environment& env, |
149 | 149 | TextReader& reader, |
150 | 150 | int startNodeNum, |
... | ... | @@ -179,7 +179,7 @@ namespace morfeusz { |
179 | 179 | return false; |
180 | 180 | } |
181 | 181 | |
182 | - const char* MorfeuszInternal::handleWhitespacesAtEnd( | |
182 | + const char* MorfeuszImpl::handleWhitespacesAtEnd( | |
183 | 183 | const Environment& env, |
184 | 184 | TextReader& reader) const { |
185 | 185 | if (env.getProcessorType() == ANALYZER |
... | ... | @@ -189,7 +189,7 @@ namespace morfeusz { |
189 | 189 | return reader.getCurrPtr(); |
190 | 190 | } |
191 | 191 | |
192 | - void MorfeuszInternal::processOneWord( | |
192 | + void MorfeuszImpl::processOneWord( | |
193 | 193 | const Environment& env, |
194 | 194 | TextReader& reader, |
195 | 195 | int startNodeNum, |
... | ... | @@ -255,7 +255,7 @@ namespace morfeusz { |
255 | 255 | } |
256 | 256 | } |
257 | 257 | |
258 | - void MorfeuszInternal::doProcessOneWord( | |
258 | + void MorfeuszImpl::doProcessOneWord( | |
259 | 259 | const Environment& env, |
260 | 260 | TextReader& reader, |
261 | 261 | const SegrulesState& segrulesState) const { |
... | ... | @@ -285,7 +285,7 @@ namespace morfeusz { |
285 | 285 | } |
286 | 286 | } |
287 | 287 | |
288 | - void MorfeuszInternal::processInterpsGroup( | |
288 | + void MorfeuszImpl::processInterpsGroup( | |
289 | 289 | const Environment& env, |
290 | 290 | const TextReader& reader, |
291 | 291 | bool isAtWhitespace, |
... | ... | @@ -323,7 +323,7 @@ namespace morfeusz { |
323 | 323 | } |
324 | 324 | } |
325 | 325 | |
326 | - void MorfeuszInternal::processInterpretedChunk( | |
326 | + void MorfeuszImpl::processInterpretedChunk( | |
327 | 327 | const Environment& env, |
328 | 328 | const TextReader& reader, |
329 | 329 | bool isAtWhitespace, |
... | ... | @@ -356,7 +356,7 @@ namespace morfeusz { |
356 | 356 | } |
357 | 357 | } |
358 | 358 | |
359 | - void MorfeuszInternal::processWhitespacesChunk( | |
359 | + void MorfeuszImpl::processWhitespacesChunk( | |
360 | 360 | TextReader& reader, |
361 | 361 | int startNodeNum, |
362 | 362 | std::vector<MorphInterpretation>& results) const { |
... | ... | @@ -364,7 +364,7 @@ namespace morfeusz { |
364 | 364 | results.push_back(MorphInterpretation::createWhitespace(startNodeNum, startNodeNum + 1, orth)); |
365 | 365 | } |
366 | 366 | |
367 | - void MorfeuszInternal::handleIgnChunk( | |
367 | + void MorfeuszImpl::handleIgnChunk( | |
368 | 368 | const Environment& env, |
369 | 369 | const ChunkBounds& chunkBounds, |
370 | 370 | int startNodeNum, |
... | ... | @@ -430,7 +430,7 @@ namespace morfeusz { |
430 | 430 | } |
431 | 431 | } |
432 | 432 | |
433 | - void MorfeuszInternal::appendIgnotiumToResults( | |
433 | + void MorfeuszImpl::appendIgnotiumToResults( | |
434 | 434 | const Environment& env, |
435 | 435 | const ChunkBounds& chunkBounds, |
436 | 436 | int startNodeNum, |
... | ... | @@ -440,7 +440,7 @@ namespace morfeusz { |
440 | 440 | results.push_back(MorphInterpretation::createIgn(startNodeNum, startNodeNum + 1, orth, lemma)); |
441 | 441 | } |
442 | 442 | |
443 | - void MorfeuszInternal::analyseOneWord( | |
443 | + void MorfeuszImpl::analyseOneWord( | |
444 | 444 | TextReader& reader, |
445 | 445 | vector<MorphInterpretation>& results) const { |
446 | 446 | this->processOneWord(this->analyzerEnv, reader, nextNodeNum, results); |
... | ... | @@ -449,20 +449,20 @@ namespace morfeusz { |
449 | 449 | } |
450 | 450 | } |
451 | 451 | |
452 | - void MorfeuszInternal::adjustTokensCounter() const { | |
452 | + void MorfeuszImpl::adjustTokensCounter() const { | |
453 | 453 | if (options.tokenNumbering == SEPARATE_NUMBERING) { |
454 | 454 | nextNodeNum = 0; |
455 | 455 | } |
456 | 456 | } |
457 | 457 | |
458 | - ResultsIterator* MorfeuszInternal::analyse(const string& text) const { | |
458 | + ResultsIterator* MorfeuszImpl::analyse(const string& text) const { | |
459 | 459 | adjustTokensCounter(); |
460 | 460 | char* textCopy = new char[text.length() + 1]; |
461 | 461 | strcpy(textCopy, text.c_str()); |
462 | 462 | return new ResultsIteratorImpl(*this, textCopy, textCopy + text.length(), true); |
463 | 463 | } |
464 | 464 | |
465 | - ResultsIterator* MorfeuszInternal::analyseWithCopy(const char* text) const { | |
465 | + ResultsIterator* MorfeuszImpl::analyseWithCopy(const char* text) const { | |
466 | 466 | adjustTokensCounter(); |
467 | 467 | long n = strlen(text); |
468 | 468 | char* textCopy = new char[n + 1]; |
... | ... | @@ -470,12 +470,12 @@ namespace morfeusz { |
470 | 470 | return new ResultsIteratorImpl(*this, textCopy, textCopy + n, true); |
471 | 471 | } |
472 | 472 | |
473 | - ResultsIterator* MorfeuszInternal::analyse(const char* text) const { | |
473 | + ResultsIterator* MorfeuszImpl::analyse(const char* text) const { | |
474 | 474 | adjustTokensCounter(); |
475 | 475 | return new ResultsIteratorImpl(*this, text, text + strlen(text), false); |
476 | 476 | } |
477 | 477 | |
478 | - void MorfeuszInternal::analyse(const string& text, vector<MorphInterpretation>& results) const { | |
478 | + void MorfeuszImpl::analyse(const string& text, vector<MorphInterpretation>& results) const { | |
479 | 479 | adjustTokensCounter(); |
480 | 480 | TextReader reader(text, this->analyzerEnv); |
481 | 481 | while (!reader.isAtEnd()) { |
... | ... | @@ -483,7 +483,7 @@ namespace morfeusz { |
483 | 483 | } |
484 | 484 | } |
485 | 485 | |
486 | - void MorfeuszInternal::generate(const string& lemma, vector<MorphInterpretation>& results) const { | |
486 | + void MorfeuszImpl::generate(const string& lemma, vector<MorphInterpretation>& results) const { | |
487 | 487 | const char* input = lemma.c_str(); |
488 | 488 | const char* inputEnd = input + lemma.length(); |
489 | 489 | int startNode = 0; |
... | ... | @@ -494,7 +494,7 @@ namespace morfeusz { |
494 | 494 | } |
495 | 495 | } |
496 | 496 | |
497 | - void MorfeuszInternal::generate(const std::string& lemma, int tagId, vector<MorphInterpretation>& result) const { | |
497 | + void MorfeuszImpl::generate(const std::string& lemma, int tagId, vector<MorphInterpretation>& result) const { | |
498 | 498 | vector<MorphInterpretation> partRes; |
499 | 499 | this->generate(lemma, partRes); |
500 | 500 | for (unsigned int i = 0; i < partRes.size(); i++) { |
... | ... | @@ -505,48 +505,48 @@ namespace morfeusz { |
505 | 505 | } |
506 | 506 | } |
507 | 507 | |
508 | - void MorfeuszInternal::setCharset(Charset charset) { | |
508 | + void MorfeuszImpl::setCharset(Charset charset) { | |
509 | 509 | this->options.encoding = charset; |
510 | 510 | this->analyzerEnv.setCharset(charset); |
511 | 511 | this->generatorEnv.setCharset(charset); |
512 | 512 | } |
513 | 513 | |
514 | - void MorfeuszInternal::setAggl(const std::string& aggl) { | |
514 | + void MorfeuszImpl::setAggl(const std::string& aggl) { | |
515 | 515 | this->analyzerEnv.setSegrulesOption("aggl", aggl); |
516 | 516 | this->generatorEnv.setSegrulesOption("aggl", aggl); |
517 | 517 | } |
518 | 518 | |
519 | - void MorfeuszInternal::setPraet(const std::string& praet) { | |
519 | + void MorfeuszImpl::setPraet(const std::string& praet) { | |
520 | 520 | this->analyzerEnv.setSegrulesOption("praet", praet); |
521 | 521 | this->generatorEnv.setSegrulesOption("praet", praet); |
522 | 522 | } |
523 | 523 | |
524 | - void MorfeuszInternal::setCaseHandling(CaseHandling caseHandling) { | |
524 | + void MorfeuszImpl::setCaseHandling(CaseHandling caseHandling) { | |
525 | 525 | this->analyzerEnv.setCaseSensitive(caseHandling != IGNORE_CASE); |
526 | 526 | } |
527 | 527 | |
528 | - void MorfeuszInternal::setTokenNumbering(TokenNumbering tokenNumbering) { | |
528 | + void MorfeuszImpl::setTokenNumbering(TokenNumbering tokenNumbering) { | |
529 | 529 | this->options.tokenNumbering = tokenNumbering; |
530 | 530 | nextNodeNum = 0; |
531 | 531 | } |
532 | 532 | |
533 | - void MorfeuszInternal::setWhitespaceHandling(WhitespaceHandling whitespaceHandling) { | |
533 | + void MorfeuszImpl::setWhitespaceHandling(WhitespaceHandling whitespaceHandling) { | |
534 | 534 | this->options.whitespaceHandling = whitespaceHandling; |
535 | 535 | } |
536 | 536 | |
537 | - void MorfeuszInternal::setDebug(bool debug) { | |
537 | + void MorfeuszImpl::setDebug(bool debug) { | |
538 | 538 | this->options.debug = debug; |
539 | 539 | } |
540 | 540 | |
541 | - const IdResolver& MorfeuszInternal::getDefaultAnalyzerTagset() const { | |
541 | + const IdResolver& MorfeuszImpl::getDefaultAnalyzerTagset() const { | |
542 | 542 | return this->generatorEnv.getTagset(); |
543 | 543 | } |
544 | 544 | |
545 | - const IdResolver& MorfeuszInternal::getDefaultGeneratorTagset() const { | |
545 | + const IdResolver& MorfeuszImpl::getDefaultGeneratorTagset() const { | |
546 | 546 | return this->analyzerEnv.getTagset(); |
547 | 547 | } |
548 | 548 | |
549 | - const IdResolver& MorfeuszInternal::getIdResolver() const { | |
549 | + const IdResolver& MorfeuszImpl::getIdResolver() const { | |
550 | 550 | return this->analyzerEnv.getTagset(); |
551 | 551 | } |
552 | 552 | } |
... | ... |
morfeusz/MorfeuszInternal.hpp renamed to morfeusz/MorfeuszImpl.hpp
... | ... | @@ -37,7 +37,7 @@ |
37 | 37 | |
38 | 38 | namespace morfeusz { |
39 | 39 | |
40 | - class MorfeuszInternal; | |
40 | + class MorfeuszImpl; | |
41 | 41 | class MorphInterpretation; |
42 | 42 | class ResultsIterator; |
43 | 43 | // class ResultsIteratorImpl; |
... | ... | @@ -50,15 +50,15 @@ namespace morfeusz { |
50 | 50 | * It is NOT thread-safe |
51 | 51 | * but it is possible to use separate Morfeusz instance for each concurrent thread. |
52 | 52 | */ |
53 | - class MorfeuszInternal : public Morfeusz { | |
53 | + class MorfeuszImpl : public Morfeusz { | |
54 | 54 | public: |
55 | - MorfeuszInternal(); | |
55 | + MorfeuszImpl(); | |
56 | 56 | |
57 | 57 | void setAnalyzerDictionary(const std::string& filename); |
58 | 58 | |
59 | 59 | void setGeneratorDictionary(const std::string& filename); |
60 | 60 | |
61 | - virtual ~MorfeuszInternal(); | |
61 | + virtual ~MorfeuszImpl(); | |
62 | 62 | |
63 | 63 | ResultsIterator* analyse(const std::string& text) const; |
64 | 64 | |
... | ... |
morfeusz/ResultsIteratorImpl.cpp
... | ... | @@ -6,13 +6,12 @@ |
6 | 6 | */ |
7 | 7 | |
8 | 8 | #include "ResultsIteratorImpl.hpp" |
9 | -#include "MorfeuszInternal.hpp" | |
10 | 9 | |
11 | 10 | #include <cstring> |
12 | 11 | |
13 | 12 | namespace morfeusz { |
14 | 13 | |
15 | - ResultsIteratorImpl::ResultsIteratorImpl(const MorfeuszInternal& morfeusz, const char* text, const char* textEnd, bool isOwnerOfText) | |
14 | + ResultsIteratorImpl::ResultsIteratorImpl(const MorfeuszImpl& morfeusz, const char* text, const char* textEnd, bool isOwnerOfText) | |
16 | 15 | : |
17 | 16 | morfeusz(morfeusz), |
18 | 17 | text(text), |
... | ... |
morfeusz/ResultsIteratorImpl.hpp
... | ... | @@ -12,17 +12,17 @@ |
12 | 12 | #include <vector> |
13 | 13 | |
14 | 14 | #include "morfeusz2.h" |
15 | -//#include "MorfeuszInternal.hpp" | |
15 | +#include "MorfeuszImpl.hpp" | |
16 | 16 | #include "charset/TextReader.hpp" |
17 | 17 | |
18 | 18 | namespace morfeusz { |
19 | 19 | |
20 | - class MorfeuszInternal; | |
20 | + class MorfeuszImpl; | |
21 | 21 | |
22 | 22 | class ResultsIteratorImpl: public ResultsIterator { |
23 | 23 | public: |
24 | 24 | |
25 | - ResultsIteratorImpl(const MorfeuszInternal& morfeusz, const char* text, const char* textEnd, bool isOwnerOfText); | |
25 | + ResultsIteratorImpl(const MorfeuszImpl& morfeusz, const char* text, const char* textEnd, bool isOwnerOfText); | |
26 | 26 | |
27 | 27 | ~ResultsIteratorImpl(); |
28 | 28 | |
... | ... | @@ -33,7 +33,7 @@ namespace morfeusz { |
33 | 33 | MorphInterpretation next(); |
34 | 34 | |
35 | 35 | private: |
36 | - const MorfeuszInternal& morfeusz; | |
36 | + const MorfeuszImpl& morfeusz; | |
37 | 37 | const char* text; |
38 | 38 | bool isOwnerOfText; |
39 | 39 | TextReader reader; |
... | ... |
morfeusz/wrappers/morfeusz.i
morfeusz/wrappers/morfeusz_common.i
... | ... | @@ -33,7 +33,7 @@ namespace morfeusz { |
33 | 33 | |
34 | 34 | %extend morfeusz::Morfeusz { |
35 | 35 | morfeusz::ResultsIterator* morfeusz::Morfeusz::analyseAsIterator(const char* text) const { |
36 | - return dynamic_cast<const morfeusz::MorfeuszInternal*>($self)->analyseWithCopy(text); | |
36 | + return dynamic_cast<const morfeusz::MorfeuszImpl*>($self)->analyseWithCopy(text); | |
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
... | ... |
nbproject/configurations.xml
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 | <in>IdResolverImpl.cpp</in> |
69 | 69 | <in>InflexionGraph.cpp</in> |
70 | 70 | <in>Morfeusz.cpp</in> |
71 | - <in>MorfeuszInternal.cpp</in> | |
71 | + <in>MorfeuszImpl.cpp</in> | |
72 | 72 | <in>MorphInterpretation.cpp</in> |
73 | 73 | <in>Qualifiers.cpp</in> |
74 | 74 | <in>ResultsIteratorImpl.cpp</in> |
... | ... | @@ -164,9 +164,8 @@ |
164 | 164 | <rebuildPropChanged>false</rebuildPropChanged> |
165 | 165 | </toolsSet> |
166 | 166 | <flagsDictionary> |
167 | - <element flagsID="0" commonFlags="-std=c++98"/> | |
167 | + <element flagsID="0" commonFlags="-std=c++98 -O3"/> | |
168 | 168 | <element flagsID="1" commonFlags="-std=c++98 -O3 -fPIC"/> |
169 | - <element flagsID="2" commonFlags="-std=c++98 -fPIC"/> | |
170 | 169 | </flagsDictionary> |
171 | 170 | <codeAssistance> |
172 | 171 | </codeAssistance> |
... | ... | @@ -187,7 +186,6 @@ |
187 | 186 | <pElem>build/fsa</pElem> |
188 | 187 | </incDir> |
189 | 188 | <preprocessorList> |
190 | - <Elem>NDEBUG</Elem> | |
191 | 189 | <Elem>_OPTIMIZE__=1</Elem> |
192 | 190 | <Elem>__PIC__=2</Elem> |
193 | 191 | <Elem>__pic__=2</Elem> |
... | ... | @@ -208,7 +206,6 @@ |
208 | 206 | <pElem>build/fsa</pElem> |
209 | 207 | </incDir> |
210 | 208 | <preprocessorList> |
211 | - <Elem>NDEBUG</Elem> | |
212 | 209 | <Elem>_OPTIMIZE__=1</Elem> |
213 | 210 | <Elem>__PIC__=2</Elem> |
214 | 211 | <Elem>__pic__=2</Elem> |
... | ... | @@ -221,7 +218,7 @@ |
221 | 218 | </ccTool> |
222 | 219 | </item> |
223 | 220 | <item path="build/morfeusz/default_fsa.cpp" ex="false" tool="1" flavor2="4"> |
224 | - <ccTool flags="2"> | |
221 | + <ccTool flags="1"> | |
225 | 222 | <incDir> |
226 | 223 | <pElem>morfeusz</pElem> |
227 | 224 | </incDir> |
... | ... | @@ -235,7 +232,7 @@ |
235 | 232 | ex="false" |
236 | 233 | tool="1" |
237 | 234 | flavor2="4"> |
238 | - <ccTool flags="2"> | |
235 | + <ccTool flags="1"> | |
239 | 236 | <incDir> |
240 | 237 | <pElem>morfeusz</pElem> |
241 | 238 | </incDir> |
... | ... | @@ -261,7 +258,6 @@ |
261 | 258 | <pElem>build/morfeusz/java</pElem> |
262 | 259 | </incDir> |
263 | 260 | <preprocessorList> |
264 | - <Elem>NDEBUG</Elem> | |
265 | 261 | <Elem>_OPTIMIZE__=1</Elem> |
266 | 262 | <Elem>__PIC__=2</Elem> |
267 | 263 | <Elem>__pic__=2</Elem> |
... | ... | @@ -288,7 +284,6 @@ |
288 | 284 | <pElem>build/morfeusz/perl</pElem> |
289 | 285 | </incDir> |
290 | 286 | <preprocessorList> |
291 | - <Elem>NDEBUG</Elem> | |
292 | 287 | <Elem>_OPTIMIZE__=1</Elem> |
293 | 288 | <Elem>morfeusz_perl_EXPORTS</Elem> |
294 | 289 | </preprocessorList> |
... | ... | @@ -311,7 +306,6 @@ |
311 | 306 | <pElem>build/morfeusz/python</pElem> |
312 | 307 | </incDir> |
313 | 308 | <preprocessorList> |
314 | - <Elem>NDEBUG</Elem> | |
315 | 309 | <Elem>_OPTIMIZE__=1</Elem> |
316 | 310 | <Elem>__PIC__=2</Elem> |
317 | 311 | <Elem>__pic__=2</Elem> |
... | ... | @@ -333,14 +327,14 @@ |
333 | 327 | ex="false" |
334 | 328 | tool="1" |
335 | 329 | flavor2="4"> |
336 | - <ccTool flags="2"> | |
330 | + <ccTool flags="1"> | |
337 | 331 | </ccTool> |
338 | 332 | </item> |
339 | 333 | <item path="build/morfeusz/wrappers/morfeuszPERL_wrap.cxx" |
340 | 334 | ex="false" |
341 | 335 | tool="1" |
342 | 336 | flavor2="4"> |
343 | - <ccTool flags="2"> | |
337 | + <ccTool flags="1"> | |
344 | 338 | <incDir> |
345 | 339 | <pElem>/usr/lib/perl/5.14/CORE</pElem> |
346 | 340 | <pElem>build/morfeusz/wrappers/perl</pElem> |
... | ... | @@ -362,7 +356,6 @@ |
362 | 356 | <pElem>morfeusz/build/morfeusz</pElem> |
363 | 357 | </incDir> |
364 | 358 | <preprocessorList> |
365 | - <Elem>NDEBUG</Elem> | |
366 | 359 | <Elem>_OPTIMIZE__=1</Elem> |
367 | 360 | </preprocessorList> |
368 | 361 | <undefinedList> |
... | ... | @@ -380,7 +373,6 @@ |
380 | 373 | <pElem>morfeusz/build/morfeusz</pElem> |
381 | 374 | </incDir> |
382 | 375 | <preprocessorList> |
383 | - <Elem>NDEBUG</Elem> | |
384 | 376 | <Elem>_OPTIMIZE__=1</Elem> |
385 | 377 | </preprocessorList> |
386 | 378 | <undefinedList> |
... | ... | @@ -397,6 +389,7 @@ |
397 | 389 | <preprocessorList> |
398 | 390 | <Elem>BUILDING_MORFEUSZ</Elem> |
399 | 391 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
392 | + <Elem>NDEBUG</Elem> | |
400 | 393 | <Elem>libmorfeusz_EXPORTS</Elem> |
401 | 394 | </preprocessorList> |
402 | 395 | </ccTool> |
... | ... | @@ -410,6 +403,7 @@ |
410 | 403 | <preprocessorList> |
411 | 404 | <Elem>BUILDING_MORFEUSZ</Elem> |
412 | 405 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
406 | + <Elem>NDEBUG</Elem> | |
413 | 407 | <Elem>libmorfeusz_EXPORTS</Elem> |
414 | 408 | </preprocessorList> |
415 | 409 | </ccTool> |
... | ... | @@ -423,6 +417,7 @@ |
423 | 417 | <preprocessorList> |
424 | 418 | <Elem>BUILDING_MORFEUSZ</Elem> |
425 | 419 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
420 | + <Elem>NDEBUG</Elem> | |
426 | 421 | <Elem>libmorfeusz_EXPORTS</Elem> |
427 | 422 | </preprocessorList> |
428 | 423 | </ccTool> |
... | ... | @@ -436,6 +431,7 @@ |
436 | 431 | <preprocessorList> |
437 | 432 | <Elem>BUILDING_MORFEUSZ</Elem> |
438 | 433 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
434 | + <Elem>NDEBUG</Elem> | |
439 | 435 | <Elem>libmorfeusz_EXPORTS</Elem> |
440 | 436 | </preprocessorList> |
441 | 437 | </ccTool> |
... | ... | @@ -449,6 +445,7 @@ |
449 | 445 | <preprocessorList> |
450 | 446 | <Elem>BUILDING_MORFEUSZ</Elem> |
451 | 447 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
448 | + <Elem>NDEBUG</Elem> | |
452 | 449 | <Elem>libmorfeusz_EXPORTS</Elem> |
453 | 450 | </preprocessorList> |
454 | 451 | </ccTool> |
... | ... | @@ -462,6 +459,7 @@ |
462 | 459 | <preprocessorList> |
463 | 460 | <Elem>BUILDING_MORFEUSZ</Elem> |
464 | 461 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
462 | + <Elem>NDEBUG</Elem> | |
465 | 463 | <Elem>libmorfeusz_EXPORTS</Elem> |
466 | 464 | </preprocessorList> |
467 | 465 | </ccTool> |
... | ... | @@ -475,6 +473,7 @@ |
475 | 473 | <preprocessorList> |
476 | 474 | <Elem>BUILDING_MORFEUSZ</Elem> |
477 | 475 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
476 | + <Elem>NDEBUG</Elem> | |
478 | 477 | <Elem>libmorfeusz_EXPORTS</Elem> |
479 | 478 | </preprocessorList> |
480 | 479 | </ccTool> |
... | ... | @@ -608,6 +607,13 @@ |
608 | 607 | <output>${TESTDIR}/TestFiles/f9</output> |
609 | 608 | </linkerTool> |
610 | 609 | </folder> |
610 | + <folder path="build"> | |
611 | + <ccTool> | |
612 | + <preprocessorList> | |
613 | + <Elem>NDEBUG</Elem> | |
614 | + </preprocessorList> | |
615 | + </ccTool> | |
616 | + </folder> | |
611 | 617 | <folder path="build/morfeusz"> |
612 | 618 | <ccTool> |
613 | 619 | <incDir> |
... | ... | @@ -653,6 +659,7 @@ |
653 | 659 | <folder path="morfeusz"> |
654 | 660 | <ccTool> |
655 | 661 | <preprocessorList> |
662 | + <Elem>NDEBUG</Elem> | |
656 | 663 | <Elem>libmorfeusz_EXPORTS</Elem> |
657 | 664 | </preprocessorList> |
658 | 665 | </ccTool> |
... | ... | @@ -667,7 +674,6 @@ |
667 | 674 | <pElem>/usr/lib/jvm/default-java/include</pElem> |
668 | 675 | </incDir> |
669 | 676 | <preprocessorList> |
670 | - <Elem>NDEBUG</Elem> | |
671 | 677 | <Elem>_OPTIMIZE__=1</Elem> |
672 | 678 | <Elem>libjmorfeusz_EXPORTS</Elem> |
673 | 679 | </preprocessorList> |
... | ... | @@ -684,7 +690,7 @@ |
684 | 690 | </ccTool> |
685 | 691 | </folder> |
686 | 692 | <item path="morfeusz/Environment.cpp" ex="false" tool="1" flavor2="4"> |
687 | - <ccTool flags="2"> | |
693 | + <ccTool flags="1"> | |
688 | 694 | <incDir> |
689 | 695 | <pElem>morfeusz</pElem> |
690 | 696 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -692,12 +698,13 @@ |
692 | 698 | <preprocessorList> |
693 | 699 | <Elem>BUILDING_MORFEUSZ</Elem> |
694 | 700 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
701 | + <Elem>NDEBUG</Elem> | |
695 | 702 | <Elem>libmorfeusz_EXPORTS</Elem> |
696 | 703 | </preprocessorList> |
697 | 704 | </ccTool> |
698 | 705 | </item> |
699 | 706 | <item path="morfeusz/IdResolverImpl.cpp" ex="false" tool="1" flavor2="4"> |
700 | - <ccTool flags="2"> | |
707 | + <ccTool flags="1"> | |
701 | 708 | <incDir> |
702 | 709 | <pElem>morfeusz</pElem> |
703 | 710 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -705,12 +712,13 @@ |
705 | 712 | <preprocessorList> |
706 | 713 | <Elem>BUILDING_MORFEUSZ</Elem> |
707 | 714 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
715 | + <Elem>NDEBUG</Elem> | |
708 | 716 | <Elem>libmorfeusz_EXPORTS</Elem> |
709 | 717 | </preprocessorList> |
710 | 718 | </ccTool> |
711 | 719 | </item> |
712 | 720 | <item path="morfeusz/InflexionGraph.cpp" ex="false" tool="1" flavor2="4"> |
713 | - <ccTool flags="2"> | |
721 | + <ccTool flags="1"> | |
714 | 722 | <incDir> |
715 | 723 | <pElem>morfeusz</pElem> |
716 | 724 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -718,12 +726,13 @@ |
718 | 726 | <preprocessorList> |
719 | 727 | <Elem>BUILDING_MORFEUSZ</Elem> |
720 | 728 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
729 | + <Elem>NDEBUG</Elem> | |
721 | 730 | <Elem>libmorfeusz_EXPORTS</Elem> |
722 | 731 | </preprocessorList> |
723 | 732 | </ccTool> |
724 | 733 | </item> |
725 | 734 | <item path="morfeusz/Morfeusz.cpp" ex="false" tool="1" flavor2="4"> |
726 | - <ccTool flags="2"> | |
735 | + <ccTool flags="1"> | |
727 | 736 | <incDir> |
728 | 737 | <pElem>morfeusz</pElem> |
729 | 738 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -731,12 +740,13 @@ |
731 | 740 | <preprocessorList> |
732 | 741 | <Elem>BUILDING_MORFEUSZ</Elem> |
733 | 742 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
743 | + <Elem>NDEBUG</Elem> | |
734 | 744 | <Elem>libmorfeusz_EXPORTS</Elem> |
735 | 745 | </preprocessorList> |
736 | 746 | </ccTool> |
737 | 747 | </item> |
738 | - <item path="morfeusz/MorfeuszInternal.cpp" ex="false" tool="1" flavor2="4"> | |
739 | - <ccTool flags="2"> | |
748 | + <item path="morfeusz/MorfeuszImpl.cpp" ex="false" tool="1" flavor2="4"> | |
749 | + <ccTool flags="1"> | |
740 | 750 | <incDir> |
741 | 751 | <pElem>morfeusz</pElem> |
742 | 752 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -744,12 +754,13 @@ |
744 | 754 | <preprocessorList> |
745 | 755 | <Elem>BUILDING_MORFEUSZ</Elem> |
746 | 756 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
757 | + <Elem>NDEBUG</Elem> | |
747 | 758 | <Elem>libmorfeusz_EXPORTS</Elem> |
748 | 759 | </preprocessorList> |
749 | 760 | </ccTool> |
750 | 761 | </item> |
751 | 762 | <item path="morfeusz/MorphInterpretation.cpp" ex="false" tool="1" flavor2="4"> |
752 | - <ccTool flags="2"> | |
763 | + <ccTool flags="1"> | |
753 | 764 | <incDir> |
754 | 765 | <pElem>morfeusz</pElem> |
755 | 766 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -757,6 +768,7 @@ |
757 | 768 | <preprocessorList> |
758 | 769 | <Elem>BUILDING_MORFEUSZ</Elem> |
759 | 770 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
771 | + <Elem>NDEBUG</Elem> | |
760 | 772 | <Elem>libmorfeusz_EXPORTS</Elem> |
761 | 773 | </preprocessorList> |
762 | 774 | </ccTool> |
... | ... | @@ -775,7 +787,7 @@ |
775 | 787 | </ccTool> |
776 | 788 | </item> |
777 | 789 | <item path="morfeusz/ResultsIteratorImpl.cpp" ex="false" tool="1" flavor2="4"> |
778 | - <ccTool flags="2"> | |
790 | + <ccTool flags="1"> | |
779 | 791 | <incDir> |
780 | 792 | <pElem>morfeusz</pElem> |
781 | 793 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -783,53 +795,38 @@ |
783 | 795 | <preprocessorList> |
784 | 796 | <Elem>BUILDING_MORFEUSZ</Elem> |
785 | 797 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
798 | + <Elem>NDEBUG</Elem> | |
786 | 799 | <Elem>libmorfeusz_EXPORTS</Elem> |
787 | 800 | </preprocessorList> |
788 | 801 | </ccTool> |
789 | 802 | </item> |
790 | 803 | <item path="morfeusz/c_api/ResultsManager.cpp" ex="false" tool="1" flavor2="4"> |
791 | - <ccTool flags="2"> | |
792 | - </ccTool> | |
793 | 804 | </item> |
794 | 805 | <item path="morfeusz/case/CaseConverter.cpp" ex="false" tool="1" flavor2="4"> |
795 | - <ccTool flags="2"> | |
796 | - </ccTool> | |
797 | 806 | </item> |
798 | 807 | <item path="morfeusz/case/CasePatternHelper.cpp" |
799 | 808 | ex="false" |
800 | 809 | tool="1" |
801 | 810 | flavor2="4"> |
802 | - <ccTool flags="2"> | |
803 | - </ccTool> | |
804 | 811 | </item> |
805 | 812 | <item path="morfeusz/case/caseconv.cpp" ex="false" tool="1" flavor2="4"> |
806 | - <ccTool flags="2"> | |
807 | - </ccTool> | |
808 | 813 | </item> |
809 | 814 | <item path="morfeusz/charset/CharsetConverter.cpp" |
810 | 815 | ex="false" |
811 | 816 | tool="1" |
812 | 817 | flavor2="4"> |
813 | - <ccTool flags="2"> | |
814 | - </ccTool> | |
815 | 818 | </item> |
816 | 819 | <item path="morfeusz/charset/TextReader.cpp" ex="false" tool="1" flavor2="4"> |
817 | - <ccTool flags="2"> | |
818 | - </ccTool> | |
819 | 820 | </item> |
820 | 821 | <item path="morfeusz/charset/conversion_tables.cpp" |
821 | 822 | ex="false" |
822 | 823 | tool="1" |
823 | 824 | flavor2="4"> |
824 | - <ccTool flags="2"> | |
825 | - </ccTool> | |
826 | 825 | </item> |
827 | 826 | <item path="morfeusz/cli/cli.cpp" ex="false" tool="1" flavor2="4"> |
828 | - <ccTool flags="2"> | |
829 | - </ccTool> | |
830 | 827 | </item> |
831 | 828 | <item path="morfeusz/const.cpp" ex="false" tool="1" flavor2="4"> |
832 | - <ccTool flags="2"> | |
829 | + <ccTool flags="1"> | |
833 | 830 | <incDir> |
834 | 831 | <pElem>morfeusz</pElem> |
835 | 832 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -837,6 +834,7 @@ |
837 | 834 | <preprocessorList> |
838 | 835 | <Elem>BUILDING_MORFEUSZ</Elem> |
839 | 836 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
837 | + <Elem>NDEBUG</Elem> | |
840 | 838 | <Elem>libmorfeusz_EXPORTS</Elem> |
841 | 839 | </preprocessorList> |
842 | 840 | </ccTool> |
... | ... | @@ -845,43 +843,31 @@ |
845 | 843 | ex="false" |
846 | 844 | tool="1" |
847 | 845 | flavor2="4"> |
848 | - <ccTool flags="2"> | |
849 | - </ccTool> | |
850 | 846 | </item> |
851 | 847 | <item path="morfeusz/deserialization/MorphDeserializer.cpp" |
852 | 848 | ex="false" |
853 | 849 | tool="1" |
854 | 850 | flavor2="4"> |
855 | - <ccTool flags="2"> | |
856 | - </ccTool> | |
857 | 851 | </item> |
858 | 852 | <item path="morfeusz/deserialization/morphInterps/InterpretedChunksDecoder.cpp" |
859 | 853 | ex="false" |
860 | 854 | tool="1" |
861 | 855 | flavor2="4"> |
862 | - <ccTool flags="2"> | |
863 | - </ccTool> | |
864 | 856 | </item> |
865 | 857 | <item path="morfeusz/deserialization/morphInterps/InterpretedChunksDecoder4Analyzer.cpp" |
866 | 858 | ex="false" |
867 | 859 | tool="1" |
868 | 860 | flavor2="4"> |
869 | - <ccTool flags="2"> | |
870 | - </ccTool> | |
871 | 861 | </item> |
872 | 862 | <item path="morfeusz/deserialization/morphInterps/InterpretedChunksDecoder4Generator.cpp" |
873 | 863 | ex="false" |
874 | 864 | tool="1" |
875 | 865 | flavor2="4"> |
876 | - <ccTool flags="2"> | |
877 | - </ccTool> | |
878 | 866 | </item> |
879 | 867 | <item path="morfeusz/fsa/const.cpp" ex="false" tool="1" flavor2="4"> |
880 | - <ccTool flags="2"> | |
881 | - </ccTool> | |
882 | 868 | </item> |
883 | 869 | <item path="morfeusz/morfeusz2_c.cpp" ex="false" tool="1" flavor2="4"> |
884 | - <ccTool flags="2"> | |
870 | + <ccTool flags="1"> | |
885 | 871 | <incDir> |
886 | 872 | <pElem>morfeusz</pElem> |
887 | 873 | <pElem>build/morfeusz</pElem> |
... | ... | @@ -889,6 +875,7 @@ |
889 | 875 | <preprocessorList> |
890 | 876 | <Elem>BUILDING_MORFEUSZ</Elem> |
891 | 877 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
878 | + <Elem>NDEBUG</Elem> | |
892 | 879 | <Elem>libmorfeusz_EXPORTS</Elem> |
893 | 880 | </preprocessorList> |
894 | 881 | </ccTool> |
... | ... | @@ -902,6 +889,7 @@ |
902 | 889 | <preprocessorList> |
903 | 890 | <Elem>BUILDING_MORFEUSZ</Elem> |
904 | 891 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
892 | + <Elem>NDEBUG</Elem> | |
905 | 893 | </preprocessorList> |
906 | 894 | </ccTool> |
907 | 895 | </item> |
... | ... | @@ -914,16 +902,13 @@ |
914 | 902 | <preprocessorList> |
915 | 903 | <Elem>BUILDING_MORFEUSZ</Elem> |
916 | 904 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
905 | + <Elem>NDEBUG</Elem> | |
917 | 906 | </preprocessorList> |
918 | 907 | </ccTool> |
919 | 908 | </item> |
920 | 909 | <item path="morfeusz/segrules/SegrulesFSA.cpp" ex="false" tool="1" flavor2="4"> |
921 | - <ccTool flags="2"> | |
922 | - </ccTool> | |
923 | 910 | </item> |
924 | 911 | <item path="morfeusz/segrules/segrules.cpp" ex="false" tool="1" flavor2="4"> |
925 | - <ccTool flags="2"> | |
926 | - </ccTool> | |
927 | 912 | </item> |
928 | 913 | <item path="morfeusz/test_runner.cpp" ex="false" tool="1" flavor2="4"> |
929 | 914 | <ccTool flags="0"> |
... | ... | @@ -934,6 +919,7 @@ |
934 | 919 | <preprocessorList> |
935 | 920 | <Elem>BUILDING_MORFEUSZ</Elem> |
936 | 921 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
922 | + <Elem>NDEBUG</Elem> | |
937 | 923 | </preprocessorList> |
938 | 924 | </ccTool> |
939 | 925 | </item> |
... | ... | @@ -948,6 +934,7 @@ |
948 | 934 | <preprocessorList> |
949 | 935 | <Elem>BUILDING_MORFEUSZ</Elem> |
950 | 936 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
937 | + <Elem>NDEBUG</Elem> | |
951 | 938 | </preprocessorList> |
952 | 939 | </ccTool> |
953 | 940 | </item> |
... | ... | @@ -960,6 +947,7 @@ |
960 | 947 | <preprocessorList> |
961 | 948 | <Elem>BUILDING_MORFEUSZ</Elem> |
962 | 949 | <Elem>MORFEUSZ2_VERSION="2.0.0"</Elem> |
950 | + <Elem>NDEBUG</Elem> | |
963 | 951 | </preprocessorList> |
964 | 952 | </ccTool> |
965 | 953 | </item> |
... | ... |