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
Nettle
nettle
Commits
8a9d1fa9
Commit
8a9d1fa9
authored
Mar 23, 2011
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(xalloc): New function.
Rev: nettle/tools/misc.c:1.3 Rev: nettle/tools/misc.h:1.3
parent
a538a476
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
tools/misc.c
tools/misc.c
+13
-0
tools/misc.h
tools/misc.h
+3
-0
No files found.
tools/misc.c
View file @
8a9d1fa9
...
...
@@ -50,6 +50,19 @@ werror(const char *format, ...)
va_end
(
args
);
}
void
*
xalloc
(
size_t
size
)
{
void
*
p
=
malloc
(
size
);
if
(
!
p
)
{
fprintf
(
stderr
,
"Virtual memory exhausted.
\n
"
);
abort
();
}
return
p
;
}
const
char
sexp_token_chars
[
0x80
]
=
{
...
...
tools/misc.h
View file @
8a9d1fa9
...
...
@@ -43,6 +43,9 @@ werror(const char *format, ...)
#endif
;
void
*
xalloc
(
size_t
size
);
enum
sexp_mode
{
SEXP_CANONICAL
=
0
,
...
...
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