Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bcrypt_old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
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_old
Commits
3aa7e51e410b
Commit
3aa7e51e410b
authored
4 years ago
by
Jean-Francois Pieronne
Browse files
Options
Downloads
Patches
Plain Diff
First VMS updates, add missing defined symbols
parent
4dc164c6ab08
Branches
branch/default-vms
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/_csrc/portable_endian.h
+15
-0
15 additions, 0 deletions
src/_csrc/portable_endian.h
src/_csrc/pycabcrypt.h
+6
-0
6 additions, 0 deletions
src/_csrc/pycabcrypt.h
with
21 additions
and
0 deletions
src/_csrc/portable_endian.h
+
15
−
0
View file @
3aa7e51e
...
...
@@ -212,4 +212,9 @@
# define htobe16(x) be16toh(x)
# endif
#elif defined(__vms)
# define htobe16(x) htons(x)
# define htole16(x) (x)
# define be16toh(x) ntohs(x)
# define le16toh(x) (x)
...
...
@@ -215,4 +220,14 @@
# 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
# error platform not supported
...
...
This diff is collapsed.
Click to expand it.
src/_csrc/pycabcrypt.h
+
6
−
0
View file @
3aa7e51e
...
...
@@ -22,6 +22,12 @@
typedef
uint16_t
u_int16_t
;
typedef
uint32_t
u_int32_t
;
typedef
uint64_t
u_int64_t
;
#elif defined(__vms)
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
#include
<stdint.h>
#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