From 6ed4c969f4d646a7751fe2da29ba94eddd3d6477 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 12 Mar 2017 09:35:00 -0700 Subject: Eliminate APP_CC and DEFAULT_CC --- common/file.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'common/file.c') diff --git a/common/file.c b/common/file.c index 236ac3d8..16b8deee 100644 --- a/common/file.c +++ b/common/file.c @@ -30,14 +30,14 @@ #define FILE_MAX_LINE_BYTES 2048 -static int APP_CC +static int file_read_ini_line(struct stream *s, char *text, int text_bytes); /*****************************************************************************/ /* look up for a section name within str (i.e. pattern [section_name]) * if a section name is found, this function return 1 and copy the section * inplace of str. */ -static int APP_CC +static int line_lookup_for_section_name(char *str, int str_bytes) { int name_index_start; @@ -76,7 +76,7 @@ line_lookup_for_section_name(char *str, int str_bytes) /* returns error returns 0 if everything is ok returns 1 if problem reading file */ -static int APP_CC +static int l_file_read_sections(int fd, int max_file_size, struct list *names) { struct stream *s; @@ -117,7 +117,7 @@ l_file_read_sections(int fd, int max_file_size, struct list *names) * returns error * returns 0 if everything is ok * returns 1 if problem reading file */ -static int APP_CC +static int file_read_ini_line(struct stream *s, char *text, int text_bytes) { int i; @@ -195,7 +195,7 @@ file_read_ini_line(struct stream *s, char *text, int text_bytes) /*****************************************************************************/ /* returns error */ -static int APP_CC +static int file_split_name_value(char *text, char *name, char *value) { int len; @@ -238,7 +238,7 @@ file_split_name_value(char *text, char *name, char *value) /*****************************************************************************/ /* return error */ -static int APP_CC +static int l_file_read_section(int fd, int max_file_size, const char *section, struct list *names, struct list *values) { @@ -324,7 +324,7 @@ l_file_read_section(int fd, int max_file_size, const char *section, returns 0 if everything is ok returns 1 if problem reading file */ /* 32 K file size limit */ -int APP_CC +int file_read_sections(int fd, struct list *names) { return l_file_read_sections(fd, 32 * 1024, names); @@ -334,7 +334,7 @@ file_read_sections(int fd, struct list *names) /* return error */ /* this function should be preferred over file_read_sections because it can read any file size */ -int APP_CC +int file_by_name_read_sections(const char *file_name, struct list *names) { int fd; @@ -363,7 +363,7 @@ file_by_name_read_sections(const char *file_name, struct list *names) /*****************************************************************************/ /* return error */ /* 32 K file size limit */ -int APP_CC +int file_read_section(int fd, const char *section, struct list *names, struct list *values) { @@ -374,7 +374,7 @@ file_read_section(int fd, const char *section, /* return error */ /* this function should be preferred over file_read_section because it can read any file size */ -int APP_CC +int file_by_name_read_section(const char *file_name, const char *section, struct list *names, struct list *values) { -- cgit v1.2.1