call painter funcs, not orders
This commit is contained in:
+5
-3
@@ -21,8 +21,10 @@
|
||||
#if !defined(FILE_H)
|
||||
#define FILE_H
|
||||
|
||||
int file_read_sections(int fd, struct list* names);
|
||||
int file_read_section(int fd, char* section, struct list* names,
|
||||
struct list* values);
|
||||
int
|
||||
file_read_sections(int fd, struct list* names);
|
||||
int
|
||||
file_read_section(int fd, char* section, struct list* names,
|
||||
struct list* values);
|
||||
|
||||
#endif
|
||||
|
||||
+16
-8
@@ -31,13 +31,21 @@ struct list
|
||||
int auto_free;
|
||||
};
|
||||
|
||||
struct list* list_create(void);
|
||||
void list_delete(struct list* self);
|
||||
void list_add_item(struct list* self, long item);
|
||||
long list_get_item(struct list* self, int index);
|
||||
void list_clear(struct list* self);
|
||||
int list_index_of(struct list* self, long item);
|
||||
void list_remove_item(struct list* self, int index);
|
||||
void list_insert_item(struct list* self, int index, long item);
|
||||
struct list*
|
||||
list_create(void);
|
||||
void
|
||||
list_delete(struct list* self);
|
||||
void
|
||||
list_add_item(struct list* self, long item);
|
||||
long
|
||||
list_get_item(struct list* self, int index);
|
||||
void
|
||||
list_clear(struct list* self);
|
||||
int
|
||||
list_index_of(struct list* self, long item);
|
||||
void
|
||||
list_remove_item(struct list* self, int index);
|
||||
void
|
||||
list_insert_item(struct list* self, int index, long item);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#if !defined(PARSE_H)
|
||||
#define PARSE_H
|
||||
|
||||
#include "arch.h"
|
||||
|
||||
#if defined(L_ENDIAN)
|
||||
#elif defined(B_ENDIAN)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user