Cleanup headers

Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
main
Ken Wakasa 2012-07-31 17:56:40 +09:00
parent 71c472ed8c
commit f1008c5501
18 changed files with 33 additions and 40 deletions

View File

@ -21,10 +21,10 @@
#include "jni_common.h"
#include "proximity_info.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string>
#include <cassert>
#include <cerrno>
#include <cstdio>
#include <cstring>
namespace latinime {

View File

@ -25,9 +25,9 @@
#include "jni_common.h"
#include "proximity_info.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <cassert>
#include <cerrno>
#include <cstdio>
#ifdef USE_MMAP_FOR_DICTIONARY
#include <sys/mman.h>
@ -36,7 +36,7 @@
#include <fcntl.h>
#include <unistd.h>
#else // USE_MMAP_FOR_DICTIONARY
#include <stdlib.h>
#include <cstdlib>
#endif // USE_MMAP_FOR_DICTIONARY
namespace latinime {

View File

@ -18,7 +18,7 @@
#include "jni.h"
#include "jni_common.h"
#include <math.h>
#include <cmath>
namespace latinime {

View File

@ -23,9 +23,9 @@
#include "jni.h"
#include "proximity_info.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <cassert>
#include <cerrno>
#include <cstdio>
using namespace latinime;

View File

@ -17,8 +17,6 @@
#ifndef LATINIME_JNI_COMMON_H
#define LATINIME_JNI_COMMON_H
#include <stdlib.h>
#include "jni.h"
namespace latinime {

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include <string.h>
#include <cstring>
#define LOG_TAG "LatinIME: bigram_dictionary.cpp"

View File

@ -24,7 +24,6 @@
namespace latinime {
class Dictionary;
class BigramDictionary {
public:
BigramDictionary(const unsigned char *dict, int maxWordLength, int maxPredictions);

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include <stdlib.h>
#include <cstdlib>
namespace latinime {

View File

@ -14,11 +14,10 @@
* limitations under the License.
*/
#include <assert.h>
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstring>
#define LOG_TAG "LatinIME: correction.cpp"

View File

@ -17,7 +17,7 @@
#ifndef LATINIME_CORRECTION_H
#define LATINIME_CORRECTION_H
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include "correction_state.h"

View File

@ -14,8 +14,6 @@
* limitations under the License.
*/
#include <stdio.h>
#define LOG_TAG "LatinIME: dictionary.cpp"
#include "binary_format.h"

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <cassert>
#include <cmath>
#include <cstring>
#include <string>
#define LOG_TAG "LatinIME: proximity_info.cpp"

View File

@ -14,9 +14,8 @@
* limitations under the License.
*/
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <string>
#define LOG_TAG "LatinIME: proximity_info_state.cpp"

View File

@ -17,7 +17,7 @@
#ifndef LATINIME_PROXIMITY_INFO_STATE_H
#define LATINIME_PROXIMITY_INFO_STATE_H
#include <assert.h>
#include <cassert>
#include <stdint.h>
#include <string>

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#include <assert.h>
#include <string.h>
#include <cassert>
#include <cstring>
#define LOG_TAG "LatinIME: unigram_dictionary.cpp"

View File

@ -19,16 +19,15 @@
#include <map>
#include <stdint.h>
#include "correction.h"
#include "correction_state.h"
#include "defines.h"
#include "proximity_info.h"
#include "words_priority_queue.h"
#include "words_priority_queue_pool.h"
namespace latinime {
class Correction;
class ProximityInfo;
class TerminalAttributes;
class WordsPriorityQueuePool;
class UnigramDictionary {
typedef struct { int first; int second; int replacement; } digraph_t;

View File

@ -20,6 +20,8 @@
#include <cstring> // for memcpy()
#include <iostream>
#include <queue>
#include "correction.h"
#include "defines.h"
namespace latinime {

View File

@ -17,8 +17,7 @@
#ifndef LATINIME_WORDS_PRIORITY_QUEUE_POOL_H
#define LATINIME_WORDS_PRIORITY_QUEUE_POOL_H
#include <assert.h>
#include <new>
#include <cassert>
#include "words_priority_queue.h"
namespace latinime {