Convert the handling of the stage in plist parsing to *at functions, this reduces the code complexity and avoid useless memory manipulations
modified libpkg/pkg_ports.c
@@ -224,8 +224,7 @@ static int
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -241,15 +240,10 @@ dir(struct plist *p, char *line, struct file_attr *a)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -297,8 +291,6 @@ meta_file(struct plist *p, char *line, struct file_attr *a, bool is_config)
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -314,15 +306,11 @@ meta_file(struct plist *p, char *line, struct file_attr *a, bool is_config)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -343,7 +331,8 @@ meta_file(struct plist *p, char *line, struct file_attr *a, bool is_config)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -353,7 +342,8 @@ meta_file(struct plist *p, char *line, struct file_attr *a, bool is_config)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1206,11 +1196,18 @@ plist_new(struct pkg *pkg, const char *stage)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1233,6 +1230,9 @@ plist_free(struct plist *p)
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -584,6 +584,7 @@ struct keyword {
|
|
|
|
|
|
| + | |
|
|
|
|
|