Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bcrypt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
OpenVMS
Python
Modules
bcrypt
Commits
91cceebb5c3c
Commit
91cceebb5c3c
authored
2 years ago
by
Jean-Francois Pieronne
Browse files
Options
Downloads
Patches
Plain Diff
VMS patches for 3.2.2
parent
5f47fc19c3ae
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/_csrc/portable_endian.h
+18
-0
18 additions, 0 deletions
src/_csrc/portable_endian.h
src/_csrc/pycabcrypt.h
+7
-0
7 additions, 0 deletions
src/_csrc/pycabcrypt.h
with
25 additions
and
0 deletions
src/_csrc/portable_endian.h
+
18
−
0
View file @
91cceebb
...
@@ -229,6 +229,24 @@
...
@@ -229,6 +229,24 @@
# define be64toh(x) (x)
# define be64toh(x) (x)
# define le64toh(x) (((uint64_t)le32toh(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)le32toh(((uint32_t)(x)))) << 32))
# define le64toh(x) (((uint64_t)le32toh(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)le32toh(((uint32_t)(x)))) << 32))
#elif defined(__vms)
# #include <stdint.h>
# define htobe16(x) htons(x)
# define htole16(x) (x)
# define be16toh(x) ntohs(x)
# define le16toh(x) (x)
# define htobe32(x) htonl(x)
# define htole32(x) (x)
# define be32toh(x) ntohl(x)
# define le32toh(x) (x)
# define htobe64(x) (((uint64_t)htonl(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)htonl(((uint32_t)(x)))) << 32))
# define htole64(x) (x)
# define be64toh(x) (((uint64_t)ntohl(((uint32_t)(((uint64_t)(x)) >> 32)))) | (((uint64_t)ntohl(((uint32_t)(x)))) << 32))
# define le64toh(x) (x)
// typedef uint8_t u_int8_t;
#else
#else
# error platform not supported
# error platform not supported
...
...
This diff is collapsed.
Click to expand it.
src/_csrc/pycabcrypt.h
+
7
−
0
View file @
91cceebb
...
@@ -28,6 +28,13 @@
...
@@ -28,6 +28,13 @@
typedef
uint16_t
u_int16_t
;
typedef
uint16_t
u_int16_t
;
typedef
uint32_t
u_int32_t
;
typedef
uint32_t
u_int32_t
;
typedef
uint64_t
u_int64_t
;
typedef
uint64_t
u_int64_t
;
#elif defined(__vms)
#include
<stdint.h>
typedef
uint8_t
u_int8_t
;
typedef
uint16_t
u_int16_t
;
typedef
uint32_t
u_int32_t
;
typedef
uint64_t
u_int64_t
;
#define __attribute__(unused)
#else
#else
#include
<stdint.h>
#include
<stdint.h>
#endif
#endif
...
...
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