Diff
Not logged in

Differences From Artifact [61618ce51a]:

To Artifact [4f9408c216]:


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