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
97fe505b
Commit
97fe505b
authored
Nov 10, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Nov 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format more stuff in common
PUBLISHED_FROM=8b5c6f70d5582402f327c4da7baee7cc15ee13aa
parent
fd45a6d3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
21 deletions
+27
-21
mongoose.c
mongoose.c
+20
-13
mongoose.h
mongoose.h
+7
-8
No files found.
mongoose.c
View file @
97fe505b
...
...
@@ -11148,7 +11148,8 @@ int gettimeofday(struct timeval *tp, void *tzp) {
* All rights reserved
*/
#if (CS_PLATFORM == CS_P_NRF51 || CS_PLATFORM == CS_P_NRF52) && defined(__ARMCC_VERSION)
#if (CS_PLATFORM == CS_P_NRF51 || CS_PLATFORM == CS_P_NRF52) && \
defined(__ARMCC_VERSION)
int
gettimeofday
(
struct
timeval
*
tp
,
void
*
tzp
)
{
/* TODO */
tp
->
tv_sec
=
0
;
...
...
@@ -11798,7 +11799,8 @@ int sl_fs_init(void) {
#ifdef __TI_COMPILER_VERSION__
#ifdef MG_FS_SLFS
#pragma diag_push
#pragma diag_suppress 169
/* Nothing we can do about the prototype mismatch. */
#pragma diag_suppress 169
/* Nothing we can do about the prototype mismatch. \
*/
ret
=
(
add_device
(
"SL"
,
_MSA
,
fs_slfs_open
,
fs_slfs_close
,
fs_slfs_read
,
fs_slfs_write
,
fs_slfs_lseek
,
fs_slfs_unlink
,
fs_slfs_rename
)
==
0
);
...
...
@@ -11914,7 +11916,8 @@ void mg_run_in_task(void (*cb)(struct mg_mgr *mgr, void *arg), void *cb_arg) {
osi_MsgQWrite
(
&
s_mg_q
,
&
msg
,
OSI_NO_WAIT
);
}
#endif
/* MG_NET_IF == MG_NET_IF_SIMPLELINK && !defined(MG_SIMPLELINK_NO_OSI) */
#endif
/* MG_NET_IF == MG_NET_IF_SIMPLELINK && !defined(MG_SIMPLELINK_NO_OSI) \
*/
#ifdef MG_MODULE_LINES
#line 1 "common/platforms/simplelink/sl_net_if.h"
#endif
...
...
@@ -13277,7 +13280,8 @@ uint32_t mg_lwip_get_poll_delay_ms(struct mg_mgr *mgr) {
* All rights reserved
*/
#if MG_NET_IF == MG_NET_IF_LWIP_LOW_LEVEL && MG_ENABLE_SSL && defined(KR_VERSION)
#if MG_NET_IF == MG_NET_IF_LWIP_LOW_LEVEL && MG_ENABLE_SSL && \
defined(KR_VERSION)
/* Amalgamated: #include "common/cs_dbg.h" */
...
...
@@ -13436,7 +13440,8 @@ ssize_t kr_recv(int fd, void *buf, size_t len) {
return
len
;
}
#endif
/* MG_NET_IF == MG_NET_IF_LWIP_LOW_LEVEL && MG_ENABLE_SSL && defined(KR_VERSION) */
#endif
/* MG_NET_IF == MG_NET_IF_LWIP_LOW_LEVEL && MG_ENABLE_SSL && \
defined(KR_VERSION) */
#ifdef MG_MODULE_LINES
#line 1 "common/platforms/wince/wince_libc.c"
#endif
...
...
@@ -13484,8 +13489,10 @@ int _wstati64(const wchar_t *path, cs_stat_t *st) {
}
st
->
st_size
=
GetFileSize
(
h
,
NULL
);
GetFileTime
(
h
,
NULL
,
NULL
,
&
ftime
);
st
->
st_mtime
=
(
uint32_t
)((((
uint64_t
)
ftime
.
dwLowDateTime
+
((
uint64_t
)
ftime
.
dwHighDateTime
<<
32
))
/
10000000
.
0
)
-
11644473600
);
st
->
st_mtime
=
(
uint32_t
)((((
uint64_t
)
ftime
.
dwLowDateTime
+
((
uint64_t
)
ftime
.
dwHighDateTime
<<
32
))
/
10000000
.
0
)
-
11644473600
);
CloseHandle
(
h
);
}
else
{
st
->
st_mode
|=
_S_IFDIR
;
...
...
@@ -13506,9 +13513,9 @@ static void mg_gmt_time_string(char *buf, size_t buf_len, time_t *t) {
GetSystemTime
(
&
systime
);
}
/* There is no PRIu16 in WinCE SDK */
snprintf
(
buf
,
buf_len
,
"%d.%d.%d %d:%d:%d GMT"
,
(
int
)
systime
.
wYear
,
(
int
)
systime
.
wMonth
,
(
int
)
systime
.
wDay
,
(
int
)
systime
.
wHour
,
(
int
)
systime
.
wMinute
,
(
int
)
systime
.
wSecond
);
snprintf
(
buf
,
buf_len
,
"%d.%d.%d %d:%d:%d GMT"
,
(
int
)
systime
.
wYear
,
(
int
)
systime
.
wMonth
,
(
int
)
systime
.
wDay
,
(
int
)
systime
.
wHour
,
(
int
)
systime
.
wMinute
,
(
int
)
systime
.
wSecond
);
}
#endif
...
...
mongoose.h
View file @
97fe505b
...
...
@@ -1446,7 +1446,6 @@ char* inet_ntoa(struct in_addr in);
#if MG_LWIP
/*
* When compiling for nRF5x chips with arm-none-eabi-gcc, it has BYTE_ORDER
* already defined, so in order to avoid warnings in lwip, we have to undefine
...
...
@@ -1457,7 +1456,7 @@ char* inet_ntoa(struct in_addr in);
* nRF5 SDK: 0.9.0
*/
#if CS_PLATFORM == CS_P_NRF51 || CS_PLATFORM == CS_P_NRF52
#
undef BYTE_ORDER
#undef BYTE_ORDER
#endif
#include <lwip/opt.h>
...
...
@@ -1472,14 +1471,14 @@ char* inet_ntoa(struct in_addr in);
#endif
#if LWIP_SOCKET
#
include <lwip/sockets.h>
#include <lwip/sockets.h>
#else
/* We really need the definitions from sockets.h. */
#
undef LWIP_SOCKET
#
define LWIP_SOCKET 1
#
include <lwip/sockets.h>
#
undef LWIP_SOCKET
#
define LWIP_SOCKET 0
#undef LWIP_SOCKET
#define LWIP_SOCKET 1
#include <lwip/sockets.h>
#undef LWIP_SOCKET
#define LWIP_SOCKET 0
#endif
#define INVALID_SOCKET (-1)
...
...
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