minor bug fixes
This commit is contained in:
parent
ecb8cbcf7b
commit
9532657455
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#ifndef Utils
|
#ifndef Utils
|
||||||
#define Utils
|
#define Utils
|
||||||
|
#include "sorting.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#endif // !Utils
|
#endif // !Utils
|
||||||
//list of functions
|
//list of functions
|
||||||
|
1
main.c
1
main.c
@ -19,6 +19,7 @@
|
|||||||
#include "normal_user.h"
|
#include "normal_user.h"
|
||||||
#ifndef Utils
|
#ifndef Utils
|
||||||
#define Utils
|
#define Utils
|
||||||
|
#include "sorting.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#endif // !Utils
|
#endif // !Utils
|
||||||
|
|
||||||
|
@ -10,14 +10,9 @@
|
|||||||
#include<ctype.h>
|
#include<ctype.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef SORT_H
|
|
||||||
#define SORT_H
|
|
||||||
#include "sorting.h"
|
|
||||||
#endif // !SORT_H
|
|
||||||
#ifndef Utils
|
#ifndef Utils
|
||||||
#define Utils
|
#define Utils
|
||||||
|
#include "sorting.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#endif // !Utils
|
#endif // !Utils
|
||||||
//fucntions for menu
|
//fucntions for menu
|
||||||
|
@ -27,8 +27,8 @@ void role_control(){
|
|||||||
"role",
|
"role",
|
||||||
};
|
};
|
||||||
void * list = getLinkedList(role_list_db(),0);
|
void * list = getLinkedList(role_list_db(),0);
|
||||||
lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole);
|
// lister(list,NULL,sizeofLinkedlist(list),"Role",SortItems,2,print_role,sortRole,showRole);
|
||||||
list_role();
|
list_role(db);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
//user control
|
//user control
|
||||||
struct user add_user(struct user db);
|
struct user add_user(struct user db);
|
||||||
|
struct user edit_user(struct user db,int index);
|
||||||
|
struct user delete_user(struct user db,int index);
|
||||||
void * showUser(void * ddb,int index);
|
void * showUser(void * ddb,int index);
|
||||||
struct Map* SortUser(void * ddb,int choice);
|
struct Map* SortUser(void * ddb,int choice);
|
||||||
void print_user(void * ddb, int cur, int end,struct Map* map);
|
void print_user(void * ddb, int cur, int end,struct Map* map);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user