ReactOS  0.4.15-dev-439-g292f67a
precomp.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS TXT to NLS Converter
3  * LICENSE: GNU General Public License Version 2.0 or any later version
4  * FILE: devutils/txt2nls/precomp.h
5  * COPYRIGHT: Copyright 2016 Dmitry Chapyshev <dmitry@reactos.org>
6  */
7 
8 #ifndef __PRECOMP_H
9 #define __PRECOMP_H
10 
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <stdint.h>
14 #include <string.h>
15 #include <ctype.h>
16 #include <memory.h>
17 
18 #define LOBYTE(w) ((uint8_t)((uint32_t)(w) & 0xff))
19 
20 #define MAXIMUM_LEADBYTES 12
21 
22 typedef struct
23 {
33 
34 /* nls.c */
35 int
36 nls_from_txt(const char *txt_file_path, const char *nls_file_path);
37 
38 /* bestfit.c */
39 int
41 
42 uint16_t*
43 txt_get_mb_table(const char *file_path, uint16_t uni_default_char);
44 
45 uint16_t*
46 txt_get_wc_table(const char *file_path, uint16_t default_char, int is_dbcs);
47 
48 uint16_t*
49 txt_get_glyph_table(const char *file_path, uint16_t uni_default_char);
50 
51 #endif
uint16_t HeaderSize
Definition: precomp.h:24
int nls_from_txt(const char *txt_file_path, const char *nls_file_path)
Definition: nls.c:104
uint16_t DefaultChar
Definition: precomp.h:27
#define MAXIMUM_LEADBYTES
Definition: precomp.h:20
uint16_t MaximumCharacterSize
Definition: precomp.h:26
uint16_t * txt_get_mb_table(const char *file_path, uint16_t uni_default_char)
Definition: txt.c:133
unsigned short int uint16_t
Definition: acefiex.h:54
int txt_get_header(const char *file_path, NLS_FILE_HEADER *header)
Definition: txt.c:11
struct _NLS_FILE_HEADER NLS_FILE_HEADER
uint16_t UniDefaultChar
Definition: precomp.h:28
uint16_t TransUniDefaultChar
Definition: precomp.h:30
uint16_t * txt_get_glyph_table(const char *file_path, uint16_t uni_default_char)
Definition: txt.c:386
uint16_t CodePage
Definition: precomp.h:25
uint16_t * txt_get_wc_table(const char *file_path, uint16_t default_char, int is_dbcs)
Definition: txt.c:247
uint16_t TransDefaultChar
Definition: precomp.h:29
BYTE uint8_t
Definition: msvideo1.c:66
TCHAR file_path[MAX_PATH]
Definition: sndrec32.cpp:57