Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
196e0d69
Commit
196e0d69
authored
13 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
setup_once.h cleanup and sync
parent
809cde54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/setup.h
+23
-0
23 additions, 0 deletions
lib/setup.h
lib/setup_once.h
+5
-24
5 additions, 24 deletions
lib/setup_once.h
src/setup.h
+23
-0
23 additions, 0 deletions
src/setup.h
with
51 additions
and
24 deletions
lib/setup.h
+
23
−
0
View file @
196e0d69
...
...
@@ -603,4 +603,27 @@ int netware_init(void);
#include
"setup_once.h"
#endif
/*
* Definition of our NOP statement Object-like macro
*/
#ifndef Curl_nop_stmt
# define Curl_nop_stmt do { } WHILE_FALSE
#endif
/*
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
*/
#if defined(__LWIP_OPT_H__)
# if defined(SOCKET) || \
defined(USE_WINSOCK) || \
defined(HAVE_ERRNO_H) || \
defined(HAVE_WINSOCK_H) || \
defined(HAVE_WINSOCK2_H) || \
defined(HAVE_WS2TCPIP_H)
# error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
# endif
#endif
#endif
/* HEADER_CURL_LIB_SETUP_H */
This diff is collapsed.
Click to expand it.
lib/setup_once.h
+
5
−
24
View file @
196e0d69
...
...
@@ -257,10 +257,13 @@ struct timeval {
#define ISPRINT(x) (isprint((int) ((unsigned char)x)))
#define ISUPPER(x) (isupper((int) ((unsigned char)x)))
#define ISLOWER(x) (islower((int) ((unsigned char)x)))
#define ISASCII(x) (isascii((int) ((unsigned char)x)))
#define ISBLANK(x) (int)((((unsigned char)x) == ' ') || \
(((unsigned char)x) == '\t'))
#define TOLOWER(x) (tolower((int) ((unsigned char)x)))
/*
* 'bool' exists on platforms with <stdbool.h>, i.e. C99 platforms.
...
...
@@ -323,13 +326,6 @@ __pragma(warning(pop))
#endif
/*
* Definition of our NOP statement Object-like macro
*/
#define Curl_nop_stmt do { } WHILE_FALSE
/*
* Typedef to 'int' if sig_atomic_t is not an available 'typedefed' type.
*/
...
...
@@ -367,7 +363,7 @@ typedef int sig_atomic_t;
#ifdef DEBUGBUILD
#define DEBUGF(x) x
#else
#define DEBUGF(x)
Curl_nop_stmt
#define DEBUGF(x)
do { } WHILE_FALSE
#endif
...
...
@@ -378,7 +374,7 @@ typedef int sig_atomic_t;
#if defined(DEBUGBUILD) && defined(HAVE_ASSERT_H)
#define DEBUGASSERT(x) assert(x)
#else
#define DEBUGASSERT(x)
Curl_nop_stmt
#define DEBUGASSERT(x)
do { } WHILE_FALSE
#endif
...
...
@@ -519,19 +515,4 @@ typedef int sig_atomic_t;
#define ZERO_NULL 0
/*
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
*/
#if defined(__LWIP_OPT_H__)
# if defined(SOCKET) || \
defined(USE_WINSOCK) || \
defined(HAVE_ERRNO_H) || \
defined(HAVE_WINSOCK_H) || \
defined(HAVE_WINSOCK2_H) || \
defined(HAVE_WS2TCPIP_H)
# error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
# endif
#endif
#endif
/* __SETUP_ONCE_H */
This diff is collapsed.
Click to expand it.
src/setup.h
+
23
−
0
View file @
196e0d69
...
...
@@ -226,4 +226,27 @@ int fileno( FILE *stream);
#include
"setup_once.h"
#endif
/*
* Definition of our NOP statement Object-like macro
*/
#ifndef Curl_nop_stmt
# define Curl_nop_stmt do { } WHILE_FALSE
#endif
/*
* Ensure that Winsock and lwIP TCP/IP stacks are not mixed.
*/
#if defined(__LWIP_OPT_H__)
# if defined(SOCKET) || \
defined(USE_WINSOCK) || \
defined(HAVE_ERRNO_H) || \
defined(HAVE_WINSOCK_H) || \
defined(HAVE_WINSOCK2_H) || \
defined(HAVE_WS2TCPIP_H)
# error "Winsock and lwIP TCP/IP stack definitions shall not coexist!"
# endif
#endif
#endif
/* HEADER_CURL_SRC_SETUP_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment