Skip to content

Commit

Permalink
Implement function verify_integrity() to check the correctness of dat…
Browse files Browse the repository at this point in the history
…a in a datatable. Closes #7
  • Loading branch information
st-pasha committed May 11, 2017
1 parent 3ede86a commit cbd89b4
Show file tree
Hide file tree
Showing 7 changed files with 553 additions and 28 deletions.
13 changes: 13 additions & 0 deletions c/datatable.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,24 @@ typedef struct DataTable {



//==============================================================================
// Auxiliary definitions

// Status codes for the function verify_integrity()
#define DTCK_NOERRORS 0
#define DTCK_ERRORS_FOUND 1
#define DTCK_ERRORS_FIXED 2
#define DTCK_RUNTIME_ERROR 4
#define DTCK_CANCELLED 8


//==============================================================================

DataTable* dt_DataTable_call(
DataTable *self, RowMapping *rowmapping, ColMapping *colmapping);

int dt_verify_integrity(DataTable *dt, char **errors, _Bool fix);

void datatable_dealloc(DataTable *self);


Expand Down
Loading

0 comments on commit cbd89b4

Please sign in to comment.