Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
sapl-interpreter
Commits
b26e73d7
Commit
b26e73d7
authored
Oct 20, 2015
by
Laszlo Domoszlai
Browse files
missing stuff for the previous commit
parent
7180c216
Changes
1
Hide whitespace changes
Inline
Side-by-side
interpreter/thunk.h
View file @
b26e73d7
...
...
@@ -16,7 +16,7 @@ typedef struct __attribute__((packed)) CleanString {
}
CleanString
;
typedef
struct
__attribute__
((
packed
))
Thunk
{
struct
Desc
*
desc
;
// NULL, if it is a forward pointer
struct
Desc
*
desc
;
union
{
Thunk
*
_forward_ptr
;
...
...
@@ -24,8 +24,8 @@ typedef struct __attribute__((packed)) Thunk {
double
_real
;
// TODO: move "real" out of here, too long (at least on 32 bits)
char
_char
;
int
_bool
;
struct
CleanString
*
_string_ptr
;
struct
CleanString
_string
;
//
struct CleanString* _string_ptr;
//
struct CleanString _string;
Thunk
*
_args
[];
};
}
Thunk
;
...
...
@@ -43,12 +43,13 @@ int readB(Thunk* thunk);
#define readI(thunk) thunk->_int
#define readB(thunk) thunk->_bool
#define readC(thunk) thunk->_char
#endif
bool
is_hnf
(
Thunk
*
thunk
);
// Thunk is supposed to be in HNF
// Thunk is supposed to be in HNF
on the A stack
void
print
(
Thunk
*
thunk
,
bool
force
);
#endif // __THUNK_H
\ No newline at end of file
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