OSDN Git Service

Update copyright for 2021.
[ludiafuncs/ludia_funcs.git] / ludia_tp.c
1 /*-------------------------------------------------------------------------
2  *
3  * Copyright (c) 2016-2021, ludia_funcs Development Group
4  * Copyright (c) 2006-2015, NTT DATA Corporation
5  * All rights reserved.
6  *
7  * Changelog:
8  *   2013/01/09
9  *   Update Ludia functions so that they are available with PostgreSQL9.1.
10  *   Author: NTT DATA Corporation
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifdef TEXTPORTER
15 #include "ludia_funcs.h"
16
17 #include <string.h>
18 #include <text_oem.h>
19
20 int
21 ExecTextPorter(unsigned char *Appfile, unsigned char *Txtfile,
22                            unsigned char *GroupName, unsigned char *DefLangName,
23                            int bBigEndian, unsigned int Option,
24                            unsigned int Option1, long Size, unsigned short Csv_c)
25 {
26         DMC_TEXTINFO_V5 textinfo;
27
28         strncpy((char *)textinfo.GroupName, (const char *)GroupName, MAX_GROUP_NAME);
29         strncpy((char *)textinfo.DefLangName, (const char *)DefLangName, MAX_LANG_NAME);
30         textinfo.bBigEndian = bBigEndian;
31         textinfo.Option = Option;
32         textinfo.Option1 = Option1;
33         textinfo.Size = Size;
34         textinfo.Csv_c = Csv_c;
35
36         return DMC_GetText_V5((Byte *)Appfile, (Byte *)Txtfile,
37                                                   &textinfo, NULL);
38 }
39
40 #endif  /* TEXTPORTER */