From 8d3da701c0cb3410a947a84d5147368744c774ec Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sun, 28 Aug 2016 23:57:07 +0200 Subject: Adding a new error code and commenting the existing ones :) --- include/dtree/dtree.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/dtree/dtree.h b/include/dtree/dtree.h index e9acf1a..988b8b4 100644 --- a/include/dtree/dtree.h +++ b/include/dtree/dtree.h @@ -63,11 +63,12 @@ typedef enum dt_err { FAILURE = -1, SUCCESS = 0, - INVALID_PARAMS, - MALLOC_FAILED, - INVALID_PAYLOAD, - DATA_NOT_RELATED, - NODE_NOT_FOUND, + INVALID_PARAMS, // A function didn't get the required parameters + MALLOC_FAILED, // A memory allocation failed + INVALID_PAYLOAD, // The payload of a node is invalid + DATA_NOT_RELATED, // Tried to split non-related trees + NODE_NOT_FOUND, // The sought after node was not found + NODE_NOT_ORIGINAL, // Tried to free a node which was a shallow copy } dt_err; -- cgit v1.2.3