Changed the signatures of some of the List functions to have the 'const' contract. I feel this makes more sense to have since these functions are to not modify all or some of their parameters. Plus it just feels right to have them defined this way.
This commit is contained in:
+2
-2
@@ -14,8 +14,8 @@ typedef struct {
|
||||
} List;
|
||||
|
||||
List* CreateList(void);
|
||||
int AddListItem(char *, List *);
|
||||
void PrintList(List*);
|
||||
int AddListItem(const char *, List *);
|
||||
void PrintList(const List*);
|
||||
void DestroyList(List*);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user