Update structs

This commit is contained in:
Night Kaly 2024-11-17 19:49:16 +00:00
parent 155e0d2666
commit fe24d3ffbc
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

4
file.h
View file

@ -13,7 +13,7 @@ enum ftypes {
FIF FIF
}; };
typedef struct file { typedef struct {
char *name; /* basename */ char *name; /* basename */
char *path; /* absolute path */ char *path; /* absolute path */
int type; int type;
@ -22,7 +22,7 @@ typedef struct file {
int color; int color;
} file; } file;
typedef struct ArrayList { typedef struct {
size_t length; size_t length;
size_t capacity; size_t capacity;
file *items; file *items;