Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
Christopher Ng
OpenLDAP
Commits
117d3275
Commit
117d3275
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Genericize byte types into autoconf namespace.
parent
94176182
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ac/bytes.h
+18
-23
18 additions, 23 deletions
include/ac/bytes.h
include/lutil_md5.h
+1
-1
1 addition, 1 deletion
include/lutil_md5.h
include/lutil_sha1.h
+1
-2
1 addition, 2 deletions
include/lutil_sha1.h
with
20 additions
and
26 deletions
include/ac/bytes.h
+
18
−
23
View file @
117d3275
...
...
@@ -12,40 +12,35 @@
#ifndef _AC_BYTES_H
#define _AC_BYTES_H
#if defined( LDAP_INT4_TYPE ) && defined( LDAP_INT2_TYPE )
/* cross compilers should define LDAP_INT{2,4}_TYPE in CPPFLAS */
typedef
LDAP_INT4_TYPE
LDAP_INT4
;
typedef
signed
LDAP_INT4_TYPE
LDAP_SINT4
;
typedef
unsigned
LDAP_INT4_TYPE
LDAP_UINT4
;
/* cross compilers should define both AC_INT{2,4}_TYPE in CPPFLAGS */
typedef
LDAP_INT2_TYPE
LDAP_INT2
;
typedef
signed
LDAP_INT2_TYPE
LDAP_SINT2
;
typedef
unsigned
LDAP_INT2_TYPE
LDAP_UINT2
;
#else
#if !defined( AC_INT4_TYPE ) || !defined( AC_INT2_TYPE )
/* use autoconf defines to provide sized typedefs */
# if SIZEOF_LONG == 4
typedef
long
LDAP_INT4
;
typedef
signed
long
LDAP_SINT4
;
typedef
unsigned
long
LDAP_UINT4
;
# define AC_INT4_TYPE long
# elif SIZEOF_INT == 4
typedef
int
LDAP_INT4
;
typedef
signed
int
LDAP_SINT4
;
typedef
unsigned
int
LDAP_UINT4
;
# define AC_INT4_TYPE int
# else
# error "AC_INT4_TYPE?"
# endif
# if SIZEOF_SHORT == 2
typedef
short
LDAP_INT2
;
typedef
signed
short
LDAP_SINT2
;
typedef
unsigned
short
LDAP_UINT2
;
# define AC_INT2_TYPE short
# elif SIZEOF_INT == 2
type
def
in
t
LDAP_INT2
;
typedef
signed
int
LDAP_SINT2
;
typedef
unsigned
int
LDAP_UINT2
;
#
defin
e AC_INT2_TYPE int
# else
#
error "AC_INT2_TYPE?"
# endif
#endif
typedef
AC_INT4_TYPE
ac_int4
;
typedef
signed
AC_INT4_TYPE
ac_sint4
;
typedef
unsigned
AC_INT4_TYPE
ac_uint4
;
typedef
AC_INT2_TYPE
ac_int2
;
typedef
signed
AC_INT2_TYPE
ac_sint2
;
typedef
unsigned
AC_INT2_TYPE
ac_uint2
;
#ifndef BYTE_ORDER
/* cross compilers should define BYTE_ORDER in CPPFLAGS */
...
...
This diff is collapsed.
Click to expand it.
include/lutil_md5.h
+
1
−
1
View file @
117d3275
...
...
@@ -26,7 +26,7 @@ LDAP_BEGIN_DECL
#ifndef LDAP_UINT32
#define LDAP_UINT32 1
typedef
LDAP_UINT
4
uint32
;
typedef
ac_uint
4
uint32
;
#endif
struct
lutil_MD5Context
{
...
...
This diff is collapsed.
Click to expand it.
include/lutil_sha1.h
+
1
−
2
View file @
117d3275
...
...
@@ -22,12 +22,11 @@ LDAP_BEGIN_DECL
/*
* SHA-1 in C
* By Steve Reid <steve@edmweb.com>
* 100% Public Domain
*/
#ifndef LDAP_UINT32
#define LDAP_UINT32 1
typedef
LDAP_UINT
4
uint32
;
typedef
ac_uint
4
uint32
;
#endif
typedef
struct
{
...
...
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