Commit 60acb6e6 authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Change type of offset variable to gsf_off_t.

* xbase.c (record_seek): Change type of offset variable to
gsf_off_t.

* xbase.h (struct XBfile): Change type of offset to gsf_off_t.
(struct XBrecord): Change type of row to gsf_off_t.
parent 6443e7a5
2002-08-15 Jon K Hellan <hellan@acm.org>
* xbase.[ch] (record_seek): Change type of row parameter to
gsf_off_t.
* xbase.c (record_seek): Change type of offset variable to
gsf_off_t.
* xbase.h (struct XBfile): Change type of offset to gsf_off_t.
(struct XBrecord): Change type of row to gsf_off_t.
2002-08-12 Jody Goldberg <jody@gnome.org>
* Release 1.1.7
......
......@@ -45,9 +45,9 @@ record_new (XBfile *file)
* invalid row, file error, or invalid whence (same values as in fseek).
*/
gboolean
record_seek (XBrecord *record, int whence, glong row)
record_seek (XBrecord *record, int whence, gsf_off_t row)
{
long offset;
gsf_off_t offset;
switch (whence) {
case SEEK_SET:
offset = row;
......
......@@ -18,17 +18,17 @@ typedef struct { /* database instance */
guint fields; /* number of fields */
guint fieldlen; /* bytes per record */
XBfield **format; /* array of (pointers to) field formats */
guint offset; /* start of records in file */
gsf_off_t offset; /* start of records in file */
} XBfile;
typedef struct { /* record in a db */
XBfile *file;
guint row; /* record number : 1 thru file->records are valid */
gsf_off_t row; /* record number : 1 thru file->records are valid */
guint8 *data; /* private: all fields as binary read from file */
} XBrecord;
XBrecord *record_new (XBfile *file);
gboolean record_seek (XBrecord *record, int whence, glong row);
gboolean record_seek (XBrecord *record, int whence, gsf_off_t row);
void record_free (XBrecord *record);
gchar *record_get_field (const XBrecord *record, guint num);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment