Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
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
The Tor Project
Core
Tor
Commits
cf0b07c2
Commit
cf0b07c2
authored
6 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Retire some unused (or nearly unused) macros.
parent
4638be53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/cc/compat_compiler.h
+0
-3
0 additions, 3 deletions
src/lib/cc/compat_compiler.h
src/lib/net/nettypes.h
+1
-1
1 addition, 1 deletion
src/lib/net/nettypes.h
with
1 addition
and
4 deletions
src/lib/cc/compat_compiler.h
+
0
−
3
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:
...
...
This diff is collapsed.
Click to expand it.
src/lib/net/nettypes.h
+
1
−
1
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)) */
...
...
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