mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Cleanup headers
Change-Id: I9124366b2000cad54966fb6936bb4691bbf115a3
This commit is contained in:
parent
71c472ed8c
commit
f1008c5501
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "jni.h"
|
||||
#include "jni_common.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <cmath>
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -17,8 +17,6 @@
|
||||
#ifndef LATINIME_JNI_COMMON_H
|
||||
#define LATINIME_JNI_COMMON_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "jni.h"
|
||||
|
||||
namespace latinime {
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <cstring>
|
||||
|
||||
#define LOG_TAG "LatinIME: bigram_dictionary.cpp"
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
namespace latinime {
|
||||
|
||||
class Dictionary;
|
||||
class BigramDictionary {
|
||||
public:
|
||||
BigramDictionary(const unsigned char *dict, int maxWordLength, int maxPredictions);
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace latinime {
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#ifndef LATINIME_CORRECTION_H
|
||||
#define LATINIME_CORRECTION_H
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "correction_state.h"
|
||||
|
@ -14,8 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define LOG_TAG "LatinIME: dictionary.cpp"
|
||||
|
||||
#include "binary_format.h"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
#include <cstring> // for memcpy()
|
||||
#include <iostream>
|
||||
#include <queue>
|
||||
|
||||
#include "correction.h"
|
||||
#include "defines.h"
|
||||
|
||||
namespace latinime {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user