Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
5b2eb4f0
Commit
5b2eb4f0
authored
Jan 15, 2018
by
Deomid Ryabkov
Committed by
Cesanta Bot
Jan 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable building with CS_ENABLE_STDIO=0
h/t @kzyapkov PUBLISHED_FROM=d15a5a0057f69f2f755af6436e676b1b179d069d
parent
10c274c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
mongoose.c
mongoose.c
+8
-1
No files found.
mongoose.c
View file @
5b2eb4f0
...
@@ -582,6 +582,8 @@ enum cs_log_level cs_log_threshold WEAK =
...
@@ -582,6 +582,8 @@ enum cs_log_level cs_log_threshold WEAK =
static
char
*
s_filter_pattern
=
NULL
;
static
char
*
s_filter_pattern
=
NULL
;
static
size_t
s_filter_pattern_len
;
static
size_t
s_filter_pattern_len
;
void
cs_log_set_filter
(
const
char
*
pattern
)
WEAK
;
#if CS_ENABLE_STDIO
#if CS_ENABLE_STDIO
FILE
*
cs_log_file
WEAK
=
NULL
;
FILE
*
cs_log_file
WEAK
=
NULL
;
...
@@ -592,7 +594,6 @@ double cs_log_ts WEAK;
...
@@ -592,7 +594,6 @@ double cs_log_ts WEAK;
enum
cs_log_level
cs_log_cur_msg_level
WEAK
=
LL_NONE
;
enum
cs_log_level
cs_log_cur_msg_level
WEAK
=
LL_NONE
;
void
cs_log_set_filter
(
const
char
*
pattern
)
WEAK
;
void
cs_log_set_filter
(
const
char
*
pattern
)
{
void
cs_log_set_filter
(
const
char
*
pattern
)
{
free
(
s_filter_pattern
);
free
(
s_filter_pattern
);
if
(
pattern
!=
NULL
)
{
if
(
pattern
!=
NULL
)
{
...
@@ -647,6 +648,12 @@ void cs_log_set_file(FILE *file) {
...
@@ -647,6 +648,12 @@ void cs_log_set_file(FILE *file) {
cs_log_file
=
file
;
cs_log_file
=
file
;
}
}
#else
void
cs_log_set_filter
(
const
char
*
pattern
)
{
(
void
)
pattern
;
}
#endif
/* CS_ENABLE_STDIO */
#endif
/* CS_ENABLE_STDIO */
void
cs_log_set_level
(
enum
cs_log_level
level
)
WEAK
;
void
cs_log_set_level
(
enum
cs_log_level
level
)
WEAK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment