Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
fc4707fb
Commit
fc4707fb
authored
Sep 06, 1998
by
Niels Möller
Browse files
Added parse_boolean method.
Rev: src/parse.c:1.8 Rev: src/parse.h:1.7
parent
b4bea0cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/parse.c
View file @
fc4707fb
...
...
@@ -68,6 +68,15 @@ int parse_uint8(struct simple_buffer *buffer, UINT8 *result)
return
1
;
}
int
parse_boolean
(
struct
simple_buffer
*
buffer
,
int
*
result
)
{
if
(
!
LEFT
)
return
0
;
*
result
=
HERE
[
0
];
ADVANCE
(
1
);
return
1
;
}
int
parse_bignum
(
struct
simple_buffer
*
buffer
,
bignum
*
result
)
{
UINT32
length
;
...
...
src/parse.h
View file @
fc4707fb
...
...
@@ -28,7 +28,7 @@ int parse_string(struct simple_buffer *buffer,
int
parse_sub_buffer
(
struct
simple_buffer
*
buffer
,
struct
simple_buffer
*
subbuffer
);
int
parse_uint8
(
struct
simple_buffer
*
buffer
,
UINT8
*
result
);
#def
in
e
parse_boolean
parse_uint8
in
t
parse_boolean
(
struct
simple_buffer
*
buffer
,
int
*
result
);
int
parse_bignum
(
struct
simple_buffer
*
buffer
,
bignum
*
result
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment