Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
b640ec57
Commit
b640ec57
authored
Oct 24, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define _GNU_SOURCE (kludge). Rearranged string headers.
Rev: src/lsh_types.h:1.12
parent
f378ab4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/lsh_types.h
src/lsh_types.h
+14
-2
No files found.
src/lsh_types.h
View file @
b640ec57
...
...
@@ -30,6 +30,11 @@
#include "config.h"
#endif
/* FIXME: This should probably be set in config.h by autoconf */
/* The crypt function requires _XOPEN_SOURCE, while the initgroups
* function requires _BSD_SOURCE */
#define _GNU_SOURCE
#if SIZEOF_SHORT >= 4
#define UINT32 unsigned short
...
...
@@ -85,20 +90,27 @@ do { \
struct
lsh_object
{
int
type
;
/* Zero for objects that are not allocated on the heap. */
int
size
;
/* Zero for objects that are not allocated on the heap. */
};
struct
lsh_string_header
{
int
magic
;
};
#define STATIC_HEADER { 0 },
#else
/* !DEBUG_ALLOC */
struct
lsh_object
{};
struct
lsh_string_header
{};
#define STATIC_HEADER
#endif
/* !DEBUG_ALLOC */
struct
lsh_string
{
struct
lsh_
object
header
;
struct
lsh_
string_header
header
;
UINT32
sequence_number
;
/* NOTE: The allocated size may be larger than the string length. */
...
...
Write
Preview
Markdown
is supported
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