[hackers] [libgrapheme] Properly set internal functions as static || Laslo Hunhold
commit 361126ddd8800b4db43eeb34b83dbb283c653cff
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Sun Dec 12 13:10:52 2021 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Sun Dec 12 13:10:52 2021 +0100
Properly set internal functions as static
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/gen/util.c b/gen/util.c
index b43a3dc..2275538 100644
--- a/gen/util.c
+++ b/gen/util.c
_AT_@ -74,7 +74,7 @@ range_parse(const char *str, struct range *range)
return 0;
}
-void
+static void
range_list_append(struct range **range, size_t *nranges, const struct range *new)
{
if (*nranges > 0 && (*range)[*nranges - 1].upper == new->lower) {
_AT_@ -91,7 +91,8 @@ range_list_append(struct range **range, size_t *nranges, const struct range *new
}
}
-void parse_file_with_callback(char *fname, int (*callback)(char *, char **, size_t, char *, void *), void *payload)
+static void
+parse_file_with_callback(char *fname, int (*callback)(char *, char **, size_t, char *, void *), void *payload)
{
FILE *fp;
char *line = NULL, **field = NULL, *comment;
_AT_@ -175,7 +176,7 @@ void parse_file_with_callback(char *fname, int (*callback)(char *, char **, size
}
}
-int
+static int
property_list_callback(char *fname, char **field, size_t nfields, char *comment, void *payload)
{
struct property *prop = ((struct property_list_payload *)payload)->prop;
_AT_@ -252,7 +253,7 @@ property_list_print(const struct property *prop, size_t numprops,
printf("};\n");
}
-int
+static int
segment_test_callback(char *fname, char **field, size_t nfields, char *comment, void *payload)
{
struct segment_test *t, **test = ((struct segment_test_payload *)payload)->st;
Received on Sun Dec 12 2021 - 13:11:17 CET
This archive was generated by hypermail 2.3.0
: Sun Dec 12 2021 - 13:12:33 CET