Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/readstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ typedef enum readstat_error_e {
READSTAT_ERROR_LABEL_IS_TOO_LONG,
READSTAT_ERROR_DUPLICATE_VALUE_LABEL,
READSTAT_ERROR_UNUSED_STRING_REF,
READSTAT_ERROR_DUPLICATE_VARIABLE_NAME
READSTAT_ERROR_DUPLICATE_VARIABLE_NAME,
READSTAT_ERROR_TOO_MANY_ROWS
} readstat_error_t;

const char *readstat_error_message(readstat_error_t error_code);
Expand Down
3 changes: 3 additions & 0 deletions src/readstat_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,8 @@ const char *readstat_error_message(readstat_error_t error_code) {
if (error_code == READSTAT_ERROR_DUPLICATE_VARIABLE_NAME)
return "Two or more variables have the same name";

if (error_code == READSTAT_ERROR_TOO_MANY_ROWS)
return "Too many rows for the file format";

return "Unknown error";
}
1 change: 1 addition & 0 deletions src/sas/readstat_sas.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ typedef enum sas_subheader_type_e {

#define SAS_PAGE_TYPE_DELETED_ROWS 0x0080
#define SAS_PAGE_TYPE_META2 0x4000
#define SAS_PAGE_TYPE_INDEX_LEAF 0x8000
#define SAS_PAGE_TYPE_COMP 0x9000

#define SAS_SUBHEADER_POINTER_SIZE_32BIT 12
Expand Down
Loading
Loading