-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcore.c
108 lines (79 loc) · 1.78 KB
/
core.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*****************************************************************************
* core - A library for creating Excel XLSX core files.
*
* Used in conjunction with the libxlsxwriter library.
*
* Copyright 2014-2019, John McNamara, jmcnamara@cpan.org. See LICENSE.txt.
*
*/
/*
* Wrapped for Harbour by Riztan Gutierrez, riztan@gmail.com
*
*/
#include "xlsxwriter/xmlwriter.h"
#include "xlsxwriter/core.h"
#include "xlsxwriter/utility.h"
#include "hbapi.h"
/*****************************************************************************
*
* Private functions.
*
****************************************************************************/
/*
* Create a new core object.
*/
/*
lxw_core *
lxw_core_new(void)
*/
HB_FUNC( LXW_CORE_NEW )
{
hb_retptr( lxw_core_new() );
}
/*
* Free a core object.
*/
/*
void
lxw_core_free(lxw_core *core)
*/
HB_FUNC( LXW_CORE_FREE )
{
lxw_core *core = hb_parptr( 1 ) ;
lxw_core_free(core) ;
}
/*
* Convert a time_t struct to a ISO 8601 style "2010-01-01T00:00:00Z" date.
*/
/*
static void
_datetime_to_iso8601_date(time_t *timer, char *str, size_t size)
*/
/*
(RIGC 2019-05-28) no se como manipular el tipo time_t
HB_FUNC( _DATETIME_TO_ISO8601_DATE )
{
time_t *timer = hb_parXX( 1 ) ;
char *str = hb_parcx( 2 ) ;
size_t size = hb_parXX( 3 ) ;
hb_retXX( _datetime_to_iso8601_date(timer, str, size) );
}
*/
/*****************************************************************************
*
* XML file assembly functions.
*
****************************************************************************/
/*
* Assemble and write the XML file.
*/
/*
void
lxw_core_assemble_xml_file(lxw_core *self)
*/
HB_FUNC( LXW_CORE_ASSEMBLE_XML_FILE )
{
lxw_core *self = hb_parptr( 1 ) ;
lxw_core_assemble_xml_file(self) ;
}
//eof