Skip to content

Commit

Permalink
fix header names in util/
Browse files Browse the repository at this point in the history
  • Loading branch information
redpony committed Oct 9, 2014
1 parent 8116635 commit 6ac91aa
Show file tree
Hide file tree
Showing 22 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions utils/alias_sampler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ALIAS_SAMPLER_H_
#define _ALIAS_SAMPLER_H_
#ifndef ALIAS_SAMPLER_H_
#define ALIAS_SAMPLER_H_

#include <vector>
#include <limits>
Expand Down
4 changes: 2 additions & 2 deletions utils/alignment_io.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _ALIGNMENT_IO_H_
#define _ALIGNMENT_IO_H_
#ifndef ALIGNMENT_IO_H_
#define ALIGNMENT_IO_H_

#include <string>
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions utils/b64tools.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _B64_TOOLS_H_
#define _B64_TOOLS_H_
#ifndef B64_TOOLS_H_
#define B64_TOOLS_H_

namespace B64 {
bool b64decode(const unsigned char* data, const size_t insize, char* out, const size_t outsize);
Expand Down
4 changes: 2 additions & 2 deletions utils/corpus_tools.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _CORPUS_TOOLS_H_
#define _CORPUS_TOOLS_H_
#ifndef CORPUS_TOOLS_H_
#define CORPUS_TOOLS_H_

#include <string>
#include <set>
Expand Down
4 changes: 2 additions & 2 deletions utils/exp_semiring.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EXP_SEMIRING_H_
#define _EXP_SEMIRING_H_
#ifndef EXP_SEMIRING_H_
#define EXP_SEMIRING_H_

#include <iostream>
#include "star.h"
Expand Down
4 changes: 2 additions & 2 deletions utils/fast_sparse_vector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FAST_SPARSE_VECTOR_H_
#define _FAST_SPARSE_VECTOR_H_
#ifndef FAST_SPARSE_VECTOR_H_
#define FAST_SPARSE_VECTOR_H_

// FastSparseVector<T> is a integer indexed unordered map that supports very fast
// (mathematical) vector operations when the sizes are very small, and reasonably
Expand Down
4 changes: 2 additions & 2 deletions utils/fdict.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FDICT_H_
#define _FDICT_H_
#ifndef FDICT_H_
#define FDICT_H_

#ifdef HAVE_CONFIG_H
#include "config.h"
Expand Down
4 changes: 2 additions & 2 deletions utils/feature_vector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FEATURE_VECTOR_H_
#define _FEATURE_VECTOR_H_
#ifndef FEATURE_VECTOR_H_
#define FEATURE_VECTOR_H_

#include <vector>
#include "sparse_vector.h"
Expand Down
4 changes: 2 additions & 2 deletions utils/filelib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FILELIB_H_
#define _FILELIB_H_
#ifndef FILELIB_H_
#define FILELIB_H_

#include <cassert>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions utils/kernel_string_subseq.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _KERNEL_STRING_SUBSEQ_H_
#define _KERNEL_STRING_SUBSEQ_H_
#ifndef KERNEL_STRING_SUBSEQ_H_
#define KERNEL_STRING_SUBSEQ_H_

#include <vector>
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions utils/m.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _M_H_
#define _M_H_
#ifndef M_H_HEADER_
#define M_H_HEADER_

#include <cassert>
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions utils/murmur_hash3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.

#ifndef _MURMURHASH3_H_
#define _MURMURHASH3_H_
#ifndef MURMURHASH3_H_
#define MURMURHASH3_H_

//-----------------------------------------------------------------------------
// Platform-specific functions and macros
Expand Down
4 changes: 2 additions & 2 deletions utils/perfect_hash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _PERFECT_HASH_MAP_H_
#define _PERFECT_HASH_MAP_H_
#ifndef PERFECT_HASH_MAP_H_
#define PERFECT_HASH_MAP_H_

#include <vector>
#include <boost/utility.hpp>
Expand Down
4 changes: 2 additions & 2 deletions utils/prob.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _PROB_H_
#define _PROB_H_
#ifndef PROB_H_
#define PROB_H_

#include "logval.h"

Expand Down
4 changes: 2 additions & 2 deletions utils/small_vector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _SMALL_VECTOR_H_
#define _SMALL_VECTOR_H_
#ifndef SMALL_VECTOR_H_
#define SMALL_VECTOR_H_

/* REQUIRES that T is POD (can be memcpy). won't work (yet) due to union with SMALL_VECTOR_POD==0 - may be possible to handle movable types that have ctor/dtor, by using explicit allocation, ctor/dtor calls. but for now JUST USE THIS FOR no-meaningful ctor/dtor POD types.
Expand Down
4 changes: 2 additions & 2 deletions utils/sparse_vector.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _SPARSE_VECTOR_H_
#define _SPARSE_VECTOR_H_
#ifndef SPARSE_VECTOR_H_
#define SPARSE_VECTOR_H_

#include "fast_sparse_vector.h"
#define SparseVector FastSparseVector
Expand Down
4 changes: 2 additions & 2 deletions utils/star.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _STAR_H_
#define _STAR_H_
#ifndef STAR_H_
#define STAR_H_

// star(x) computes the infinite sum x^0 + x^1 + x^2 + ...

Expand Down
4 changes: 2 additions & 2 deletions utils/tdict.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _TDICT_H_
#define _TDICT_H_
#ifndef TDICT_H_
#define TDICT_H_

#include <string>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions utils/timing_stats.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _TIMING_STATS_H_
#define _TIMING_STATS_H_
#ifndef TIMING_STATS_H_
#define TIMING_STATS_H_

#include <string>
#include <map>
Expand Down
4 changes: 2 additions & 2 deletions utils/verbose.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _VERBOSE_H_
#define _VERBOSE_H_
#ifndef VERBOSE_H_
#define VERBOSE_H_

extern bool SILENT;

Expand Down
4 changes: 2 additions & 2 deletions utils/weights.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _WEIGHTS_H_
#define _WEIGHTS_H_
#ifndef WEIGHTS_H_
#define WEIGHTS_H_

#include <string>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions utils/wordid.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _WORD_ID_H_
#define _WORD_ID_H_
#ifndef WORD_ID_H_
#define WORD_ID_H_

#include <limits>

Expand Down

0 comments on commit 6ac91aa

Please sign in to comment.