Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
cf0b07c2
Commit
cf0b07c2
authored
Jul 03, 2018
by
Nick Mathewson
🎨
Browse files
Retire some unused (or nearly unused) macros.
parent
4638be53
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/cc/compat_compiler.h
View file @
cf0b07c2
...
...
@@ -189,14 +189,11 @@
#endif
#define U64_PRINTF_ARG(a) ((uint64_t)a)
#define U64_SCANF_ARG(a) (a)
#define U64_LITERAL(n) UINT64_C(n)
#define I64_PRINTF_ARG(a) ((int64_t)a)
#define I64_SCANF_ARG(a) (a)
#define I64_LITERAL(n) INT64_C(n)
#define U64_FORMAT "%"PRIu64
#define I64_FORMAT "%"PRId64
#define INTPTR_T_FORMAT "%"PRIuPTR
/** Macro: yield a pointer to the field at position <b>off</b> within the
* structure <b>st</b>. Example:
...
...
src/lib/net/nettypes.h
View file @
cf0b07c2
...
...
@@ -23,7 +23,7 @@ typedef int socklen_t;
* any inadvertent checks for the socket being <= 0 or > 0 will probably
* still work. */
#define tor_socket_t intptr_t
#define TOR_SOCKET_T_FORMAT
INTPTR_T_FORMAT
#define TOR_SOCKET_T_FORMAT
"%"PRIuPTR
#define SOCKET_OK(s) ((SOCKET)(s) != INVALID_SOCKET)
#define TOR_INVALID_SOCKET INVALID_SOCKET
#else
/* !(defined(_WIN32)) */
...
...
Write
Preview
Supports
Markdown
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