75
76
77
78
79
80
81
82
83
84
85
86
87
88
....
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
|
#else
#include "config.h"
#endif
#include "freexl.h"
#include "freexl_internals.h"
#if defined(_WIN32) && !defined(__MINGW32__)
/* MSVC compiler doesn't support lround() at all */
static double
round (double num)
{
double integer = ceil (num);
if (num > 0)
................................................................................
if (((workbook->p_in + workbook->record_size) - workbook->sector_buf) >
workbook->sector_end)
{
/* the current record spans on the following sector(s) */
unsigned int already_done;
unsigned int chunk =
workbook->sector_end - (workbook->p_in - workbook->sector_buf);
if (workbook->sector_end <= (workbook->p_in - workbook->sector_buf))
return -1;
memcpy (workbook->record, workbook->p_in, chunk);
workbook->p_in += chunk;
already_done = chunk;
while (already_done < workbook->record_size)
{
|
|
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
....
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
|
#else
#include "config.h"
#endif
#include "freexl.h"
#include "freexl_internals.h"
const char *freexlversion = VERSION;
FREEXL_DECLARE const char *
freexl_version (void)
{
/* return the library version number */
return freexlversion;
}
#if defined(_WIN32) && !defined(__MINGW32__)
/* MSVC compiler doesn't support lround() at all */
static double
round (double num)
{
double integer = ceil (num);
if (num > 0)
................................................................................
if (((workbook->p_in + workbook->record_size) - workbook->sector_buf) >
workbook->sector_end)
{
/* the current record spans on the following sector(s) */
unsigned int already_done;
unsigned int chunk =
workbook->sector_end - (workbook->p_in - workbook->sector_buf);
if (workbook->sector_end < (workbook->p_in - workbook->sector_buf))
return -1;
memcpy (workbook->record, workbook->p_in, chunk);
workbook->p_in += chunk;
already_done = chunk;
while (already_done < workbook->record_size)
{
|