Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
bbf6a682
Commit
bbf6a682
authored
Jan 15, 2014
by
Alexandre Duret-Lutz
Browse files
Workaround another g++-4.0.1 bug on Darwin.
* src/ltlast/formula_tree.hh: Mark nodes with SPOT_API.
parent
ff816fbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ltlast/formula_tree.hh
View file @
bbf6a682
// -*- coding: utf-8 -*-
// Copyright (C) 2009, 2012, 2013 Laboratoire de Recherche et
// Copyright (C) 2009, 2012, 2013
, 2014
Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
...
...
@@ -37,38 +37,41 @@ namespace spot
/// Trees representing formulae where atomic propositions are unknown.
namespace
formula_tree
{
struct
node
// These struct should not need to be made public using
// SPOT_API, unfortunately dynamic_cast<> with g++-4.0.1 fails
// on Darwin if we do not.
struct
SPOT_API
node
{
virtual
~
node
()
{};
};
/// We use boost::shared_ptr to easily handle deletion.
typedef
boost
::
shared_ptr
<
node
>
node_ptr
;
struct
node_unop
:
node
struct
SPOT_API
node_unop
:
node
{
unop
::
type
op
;
node_ptr
child
;
};
struct
node_binop
:
node
struct
SPOT_API
node_binop
:
node
{
binop
::
type
op
;
node_ptr
lhs
;
node_ptr
rhs
;
};
struct
node_multop
:
node
struct
SPOT_API
node_multop
:
node
{
multop
::
type
op
;
node_ptr
lhs
;
node_ptr
rhs
;
};
struct
node_nfa
:
node
struct
SPOT_API
node_nfa
:
node
{
std
::
vector
<
node_ptr
>
children
;
spot
::
ltl
::
nfa
::
ptr
nfa
;
};
/// Integer values for True and False used in node_atomic.
enum
{
True
=
-
1
,
False
=
-
2
};
struct
node_atomic
:
node
struct
SPOT_API
node_atomic
:
node
{
int
i
;
};
...
...
Write
Preview
Supports
Markdown
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