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
7564623d
Commit
7564623d
authored
9 years ago
by
Deomid Ryabkov
Committed by
Marko Mikulicic
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore function of CS_DISABLE_STDIO
PUBLISHED_FROM=99c1c7a8cfcb84d283e4ed712f4da6879c41209c
parent
dc6b4457
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
mongoose.c
mongoose.c
+5
-4
mongoose.h
mongoose.h
+2
-0
No files found.
mongoose.c
View file @
7564623d
...
@@ -372,6 +372,11 @@ void cs_log_printf(const char *fmt, ...) {
...
@@ -372,6 +372,11 @@ void cs_log_printf(const char *fmt, ...) {
fputc
(
'\n'
,
cs_log_file
);
fputc
(
'\n'
,
cs_log_file
);
fflush
(
cs_log_file
);
fflush
(
cs_log_file
);
}
}
void
cs_log_set_file
(
FILE
*
file
)
{
cs_log_file
=
file
;
}
#endif
/* !CS_DISABLE_STDIO */
#endif
/* !CS_DISABLE_STDIO */
void
cs_log_set_level
(
enum
cs_log_level
level
)
{
void
cs_log_set_level
(
enum
cs_log_level
level
)
{
...
@@ -380,10 +385,6 @@ void cs_log_set_level(enum cs_log_level level) {
...
@@ -380,10 +385,6 @@ void cs_log_set_level(enum cs_log_level level) {
cs_log_ts
=
cs_time
();
cs_log_ts
=
cs_time
();
#endif
#endif
}
}
void
cs_log_set_file
(
FILE
*
file
)
{
cs_log_file
=
file
;
}
#ifdef MG_MODULE_LINES
#ifdef MG_MODULE_LINES
#line 1 "./src/../../common/cs_dirent.c"
#line 1 "./src/../../common/cs_dirent.c"
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
mongoose.h
View file @
7564623d
...
@@ -32,6 +32,8 @@
...
@@ -32,6 +32,8 @@
#endif
#endif
#if defined(MG_DISABLE_STDIO) && !defined(CS_DISABLE_STDIO)
#if defined(MG_DISABLE_STDIO) && !defined(CS_DISABLE_STDIO)
#define CS_DISABLE_STDIO
#define CS_DISABLE_STDIO
#elif defined(CS_DISABLE_STDIO) && !defined(MG_DISABLE_STDIO)
#define MG_DISABLE_STDIO
#endif
#endif
/* All of the below features depend on filesystem access, disable them. */
/* All of the below features depend on filesystem access, disable them. */
...
...
This diff is collapsed.
Click to expand it.
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