Skip to content

Commit

Permalink
Changing of the (header) guards kpu#15
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Feb 19, 2014
1 parent 7ea8fb5 commit 9a9f7d8
Show file tree
Hide file tree
Showing 82 changed files with 245 additions and 241 deletions.
6 changes: 3 additions & 3 deletions lm/bhiksha.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Currently only used for next pointers.
*/

#ifndef LM_BHIKSHA__
#define LM_BHIKSHA__
#ifndef LM_BHIKSHA_H
#define LM_BHIKSHA_H

#include <stdint.h>
#include <assert.h>
Expand Down Expand Up @@ -109,4 +109,4 @@ class ArrayBhiksha {
} // namespace ngram
} // namespace lm

#endif // LM_BHIKSHA__
#endif // LM_BHIKSHA_H
6 changes: 3 additions & 3 deletions lm/binary_format.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BINARY_FORMAT__
#define LM_BINARY_FORMAT__
#ifndef LM_BINARY_FORMAT_H
#define LM_BINARY_FORMAT_H

#include "lm/config.hh"
#include "lm/model_type.hh"
Expand Down Expand Up @@ -103,4 +103,4 @@ bool IsBinaryFormat(int fd);

} // namespace ngram
} // namespace lm
#endif // LM_BINARY_FORMAT__
#endif // LM_BINARY_FORMAT_H
6 changes: 3 additions & 3 deletions lm/blank.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BLANK__
#define LM_BLANK__
#ifndef LM_BLANK_H
#define LM_BLANK_H

#include <limits>

Expand Down Expand Up @@ -40,4 +40,4 @@ inline bool HasExtension(const float &backoff) {

} // namespace ngram
} // namespace lm
#endif // LM_BLANK__
#endif // LM_BLANK_H
6 changes: 3 additions & 3 deletions lm/builder/adjust_counts.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_ADJUST_COUNTS__
#define LM_BUILDER_ADJUST_COUNTS__
#ifndef LM_BUILDER_ADJUST_COUNTS_H
#define LM_BUILDER_ADJUST_COUNTS_H

#include "lm/builder/discount.hh"
#include "util/exception.hh"
Expand Down Expand Up @@ -40,5 +40,5 @@ class AdjustCounts {
} // namespace builder
} // namespace lm

#endif // LM_BUILDER_ADJUST_COUNTS__
#endif // LM_BUILDER_ADJUST_COUNTS_H

6 changes: 3 additions & 3 deletions lm/builder/corpus_count.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_CORPUS_COUNT__
#define LM_BUILDER_CORPUS_COUNT__
#ifndef LM_BUILDER_CORPUS_COUNT_H
#define LM_BUILDER_CORPUS_COUNT_H

#include "lm/lm_exception.hh"
#include "lm/word_index.hh"
Expand Down Expand Up @@ -47,4 +47,4 @@ class CorpusCount {

} // namespace builder
} // namespace lm
#endif // LM_BUILDER_CORPUS_COUNT__
#endif // LM_BUILDER_CORPUS_COUNT_H
6 changes: 3 additions & 3 deletions lm/builder/discount.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BUILDER_DISCOUNT__
#define BUILDER_DISCOUNT__
#ifndef LM_BUILDER_DISCOUNT_H
#define LM_BUILDER_DISCOUNT_H

#include <algorithm>

Expand All @@ -23,4 +23,4 @@ struct Discount {
} // namespace builder
} // namespace lm

#endif // BUILDER_DISCOUNT__
#endif // LM_BUILDER_DISCOUNT_H
4 changes: 2 additions & 2 deletions lm/builder/header_info.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_HEADER_INFO__
#define LM_BUILDER_HEADER_INFO__
#ifndef LM_BUILDER_HEADER_INFO_H
#define LM_BUILDER_HEADER_INFO_H

#include <string>
#include <stdint.h>
Expand Down
6 changes: 3 additions & 3 deletions lm/builder/initial_probabilities.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_INITIAL_PROBABILITIES__
#define LM_BUILDER_INITIAL_PROBABILITIES__
#ifndef LM_BUILDER_INITIAL_PROBABILITIES_H
#define LM_BUILDER_INITIAL_PROBABILITIES_H

#include "lm/builder/discount.hh"
#include "util/stream/config.hh"
Expand Down Expand Up @@ -31,4 +31,4 @@ void InitialProbabilities(const InitialProbabilitiesConfig &config, const std::v
} // namespace builder
} // namespace lm

#endif // LM_BUILDER_INITIAL_PROBABILITIES__
#endif // LM_BUILDER_INITIAL_PROBABILITIES_H
6 changes: 3 additions & 3 deletions lm/builder/interpolate.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_INTERPOLATE__
#define LM_BUILDER_INTERPOLATE__
#ifndef LM_BUILDER_INTERPOLATE_H
#define LM_BUILDER_INTERPOLATE_H

#include <stdint.h>

Expand All @@ -26,4 +26,4 @@ class Interpolate {
};

}} // namespaces
#endif // LM_BUILDER_INTERPOLATE__
#endif // LM_BUILDER_INTERPOLATE_H
6 changes: 3 additions & 3 deletions lm/builder/joint_order.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_JOINT_ORDER__
#define LM_BUILDER_JOINT_ORDER__
#ifndef LM_BUILDER_JOINT_ORDER_H
#define LM_BUILDER_JOINT_ORDER_H

#include "lm/builder/multi_stream.hh"
#include "lm/lm_exception.hh"
Expand Down Expand Up @@ -40,4 +40,4 @@ template <class Callback, class Compare> void JointOrder(const ChainPositions &p

}} // namespaces

#endif // LM_BUILDER_JOINT_ORDER__
#endif // LM_BUILDER_JOINT_ORDER_H
6 changes: 3 additions & 3 deletions lm/builder/multi_stream.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_MULTI_STREAM__
#define LM_BUILDER_MULTI_STREAM__
#ifndef LM_BUILDER_MULTI_STREAM_H
#define LM_BUILDER_MULTI_STREAM_H

#include "lm/builder/ngram_stream.hh"
#include "util/scoped.hh"
Expand Down Expand Up @@ -177,4 +177,4 @@ inline Chains &operator>>(Chains &chains, NGramStreams &streams) {
}

}} // namespaces
#endif // LM_BUILDER_MULTI_STREAM__
#endif // LM_BUILDER_MULTI_STREAM_H
6 changes: 3 additions & 3 deletions lm/builder/ngram.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_NGRAM__
#define LM_BUILDER_NGRAM__
#ifndef LM_BUILDER_NGRAM_H
#define LM_BUILDER_NGRAM_H

#include "lm/weights.hh"
#include "lm/word_index.hh"
Expand Down Expand Up @@ -81,4 +81,4 @@ const WordIndex kEOS = 2;
} // namespace builder
} // namespace lm

#endif // LM_BUILDER_NGRAM__
#endif // LM_BUILDER_NGRAM_H
6 changes: 3 additions & 3 deletions lm/builder/ngram_stream.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_NGRAM_STREAM__
#define LM_BUILDER_NGRAM_STREAM__
#ifndef LM_BUILDER_NGRAM_STREAM_H
#define LM_BUILDER_NGRAM_STREAM_H

#include "lm/builder/ngram.hh"
#include "util/stream/chain.hh"
Expand Down Expand Up @@ -52,4 +52,4 @@ inline util::stream::Chain &operator>>(util::stream::Chain &chain, NGramStream &
}

}} // namespaces
#endif // LM_BUILDER_NGRAM_STREAM__
#endif // LM_BUILDER_NGRAM_STREAM_H
6 changes: 3 additions & 3 deletions lm/builder/pipeline.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_PIPELINE__
#define LM_BUILDER_PIPELINE__
#ifndef LM_BUILDER_PIPELINE_H
#define LM_BUILDER_PIPELINE_H

#include "lm/builder/initial_probabilities.hh"
#include "lm/builder/header_info.hh"
Expand Down Expand Up @@ -57,4 +57,4 @@ struct PipelineConfig {
void Pipeline(PipelineConfig config, int text_file, int out_arpa);

}} // namespaces
#endif // LM_BUILDER_PIPELINE__
#endif // LM_BUILDER_PIPELINE_H
6 changes: 3 additions & 3 deletions lm/builder/print.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_PRINT__
#define LM_BUILDER_PRINT__
#ifndef LM_BUILDER_PRINT_H
#define LM_BUILDER_PRINT_H

#include "lm/builder/ngram.hh"
#include "lm/builder/multi_stream.hh"
Expand Down Expand Up @@ -100,4 +100,4 @@ class PrintARPA {
};

}} // namespaces
#endif // LM_BUILDER_PRINT__
#endif // LM_BUILDER_PRINT_H
6 changes: 3 additions & 3 deletions lm/builder/sort.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_BUILDER_SORT__
#define LM_BUILDER_SORT__
#ifndef LM_BUILDER_SORT_H
#define LM_BUILDER_SORT_H

#include "lm/builder/multi_stream.hh"
#include "lm/builder/ngram.hh"
Expand Down Expand Up @@ -100,4 +100,4 @@ template <class Compare> class Sorts : public FixedArray<util::stream::Sort<Comp
} // namespace builder
} // namespace lm

#endif // LM_BUILDER_SORT__
#endif // LM_BUILDER_SORT_H
6 changes: 3 additions & 3 deletions lm/config.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_CONFIG__
#define LM_CONFIG__
#ifndef LM_CONFIG_H
#define LM_CONFIG_H

#include "lm/lm_exception.hh"
#include "util/mmap.hh"
Expand Down Expand Up @@ -120,4 +120,4 @@ struct Config {

} /* namespace ngram */ } /* namespace lm */

#endif // LM_CONFIG__
#endif // LM_CONFIG_H
6 changes: 3 additions & 3 deletions lm/enumerate_vocab.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_ENUMERATE_VOCAB__
#define LM_ENUMERATE_VOCAB__
#ifndef LM_ENUMERATE_VOCAB_H
#define LM_ENUMERATE_VOCAB_H

#include "lm/word_index.hh"
#include "util/string_piece.hh"
Expand All @@ -24,5 +24,5 @@ class EnumerateVocab {

} // namespace lm

#endif // LM_ENUMERATE_VOCAB__
#endif // LM_ENUMERATE_VOCAB_H

6 changes: 3 additions & 3 deletions lm/facade.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FACADE__
#define LM_FACADE__
#ifndef LM_FACADE_H
#define LM_FACADE_H

#include "lm/virtual_interface.hh"
#include "util/string_piece.hh"
Expand Down Expand Up @@ -70,4 +70,4 @@ template <class Child, class StateT, class VocabularyT> class ModelFacade : publ
} // mamespace base
} // namespace lm

#endif // LM_FACADE__
#endif // LM_FACADE_H
6 changes: 3 additions & 3 deletions lm/filter/arpa_io.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_ARPA_IO__
#define LM_FILTER_ARPA_IO__
#ifndef LM_FILTER_ARPA_IO_H
#define LM_FILTER_ARPA_IO_H
/* Input and output for ARPA format language model files.
*/
#include "lm/read_arpa.hh"
Expand Down Expand Up @@ -111,4 +111,4 @@ template <class Output> void ReadARPA(util::FilePiece &in_lm, Output &out) {

} // namespace lm

#endif // LM_FILTER_ARPA_IO__
#endif // LM_FILTER_ARPA_IO_H
6 changes: 3 additions & 3 deletions lm/filter/count_io.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_COUNT_IO__
#define LM_FILTER_COUNT_IO__
#ifndef LM_FILTER_COUNT_IO_H
#define LM_FILTER_COUNT_IO_H

#include <fstream>
#include <iostream>
Expand Down Expand Up @@ -86,4 +86,4 @@ template <class Output> void ReadCount(util::FilePiece &in_file, Output &out) {

} // namespace lm

#endif // LM_FILTER_COUNT_IO__
#endif // LM_FILTER_COUNT_IO_H
6 changes: 3 additions & 3 deletions lm/filter/format.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_FORMAT_H__
#define LM_FILTER_FORMAT_H__
#ifndef LM_FILTER_FORMAT_H
#define LM_FILTER_FORMAT_H

#include "lm/filter/arpa_io.hh"
#include "lm/filter/count_io.hh"
Expand Down Expand Up @@ -247,4 +247,4 @@ class MultipleOutputBuffer {

} // namespace lm

#endif // LM_FILTER_FORMAT_H__
#endif // LM_FILTER_FORMAT_H
6 changes: 3 additions & 3 deletions lm/filter/phrase.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_PHRASE_H__
#define LM_FILTER_PHRASE_H__
#ifndef LM_FILTER_PHRASE_H
#define LM_FILTER_PHRASE_H

#include "util/murmur_hash.hh"
#include "util/string_piece.hh"
Expand Down Expand Up @@ -165,4 +165,4 @@ class Multiple : public detail::ConditionCommon {

} // namespace phrase
} // namespace lm
#endif // LM_FILTER_PHRASE_H__
#endif // LM_FILTER_PHRASE_H
6 changes: 3 additions & 3 deletions lm/filter/thread.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_THREAD_H__
#define LM_FILTER_THREAD_H__
#ifndef LM_FILTER_THREAD_H
#define LM_FILTER_THREAD_H

#include "util/thread_pool.hh"

Expand Down Expand Up @@ -164,4 +164,4 @@ template <class Filter, class OutputBuffer, class RealOutput> class Controller :

} // namespace lm

#endif // LM_FILTER_THREAD_H__
#endif // LM_FILTER_THREAD_H
6 changes: 3 additions & 3 deletions lm/filter/vocab.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_VOCAB_H__
#define LM_FILTER_VOCAB_H__
#ifndef LM_FILTER_VOCAB_H
#define LM_FILTER_VOCAB_H

// Vocabulary-based filters for language models.

Expand Down Expand Up @@ -130,4 +130,4 @@ class Multiple {
} // namespace vocab
} // namespace lm

#endif // LM_FILTER_VOCAB_H__
#endif // LM_FILTER_VOCAB_H
6 changes: 3 additions & 3 deletions lm/filter/wrapper.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_FILTER_WRAPPER_H__
#define LM_FILTER_WRAPPER_H__
#ifndef LM_FILTER_WRAPPER_H
#define LM_FILTER_WRAPPER_H

#include "util/string_piece.hh"

Expand Down Expand Up @@ -53,4 +53,4 @@ template <class FilterT> class ContextFilter {

} // namespace lm

#endif // LM_FILTER_WRAPPER_H__
#endif // LM_FILTER_WRAPPER_H
6 changes: 3 additions & 3 deletions lm/left.hh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* phrase, even if hypotheses are generated left-to-right.
*/

#ifndef LM_LEFT__
#define LM_LEFT__
#ifndef LM_LEFT_H
#define LM_LEFT_H

#include "lm/max_order.hh"
#include "lm/state.hh"
Expand Down Expand Up @@ -213,4 +213,4 @@ template <class M> class RuleScore {
} // namespace ngram
} // namespace lm

#endif // LM_LEFT__
#endif // LM_LEFT_H
4 changes: 2 additions & 2 deletions lm/lm_exception.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef LM_LM_EXCEPTION__
#define LM_LM_EXCEPTION__
#ifndef LM_LM_EXCEPTION_H
#define LM_LM_EXCEPTION_H

// Named to avoid conflict with util/exception.hh.

Expand Down
Loading

0 comments on commit 9a9f7d8

Please sign in to comment.