Skip to content

Commit

Permalink
Cleaned up -Wmismatched-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
meister committed Nov 4, 2023
1 parent 23ab1c5 commit 8f7c8fe
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
6 changes: 4 additions & 2 deletions include/clasp/clbind/inheritance.fwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ namespace detail {

typedef void *(*cast_function)(void *);

struct edge {
class edge {
public:
edge(class_id target, cast_function cast)
: target(target), cast(cast) {}
edge() {};
Expand All @@ -18,7 +19,8 @@ inline bool operator<(edge const &x, edge const &y) {
return x.target < y.target;
}

struct vertex {
class vertex {
public:
vertex(class_id id)
: id(id) {}

Expand Down
2 changes: 1 addition & 1 deletion include/clasp/core/commandLineOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ THE SOFTWARE.

namespace core {

class CommandLineOptions;
struct CommandLineOptions;

typedef void (*process_arguments_callback)(CommandLineOptions *);

Expand Down
2 changes: 1 addition & 1 deletion include/clasp/core/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ typedef gctools::smart_ptr<SymbolToEnumConverter_O> SymbolToEnumConverter_sp;
} // namespace core

namespace gctools {
class Layout_code;
struct Layout_code;
// Defined in clasp/src/gctools/gc_interface.cc
extern Layout_code *get_stamp_layout_codes();
}; // namespace gctools
Expand Down
5 changes: 3 additions & 2 deletions include/clasp/core/hashTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ size_t next_hash_table_id();

namespace core{

struct KeyValuePair {
KeyValuePair(T_sp k, T_sp v) : _Key(k), _Value(v) {};
class KeyValuePair {
public:
core::T_sp _Key;
core::T_sp _Value;
KeyValuePair(T_sp k, T_sp v) : _Key(k), _Value(v) {};
};

FORWARD(HashTable);
Expand Down
7 changes: 2 additions & 5 deletions include/clasp/core/lisp.h
Original file line number Diff line number Diff line change
Expand Up @@ -865,12 +865,9 @@ struct SafeBufferStr8Ns {

void initializeLisp();

class LispHolder //: public gctools::StackRoot
{
private:
struct LispHolder //: public gctools::StackRoot
{
LispPtr lisp_;

public:
/*! Pass the mpiProcess rank in (rank) or set to 0 if there is only one process */
LispHolder(bool mpiEnabled, int mpiRank, int mpiSize);

Expand Down
6 changes: 3 additions & 3 deletions include/clasp/gctools/memoryManagement.h
Original file line number Diff line number Diff line change
Expand Up @@ -1036,15 +1036,15 @@ extern size_t global_sizeof_fwd;
inline size_t Align(size_t size) { return ((AlignUp(size) >= global_sizeof_fwd) ? AlignUp(size) : global_sizeof_fwd); };

// Manually define these for the sake of As<Fixnum_sp> etc.
template <> class gctools::GCStamp<core::Fixnum_I> {
template <> struct gctools::GCStamp<core::Fixnum_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__Fixnum_dummy_O;
};
template <> class gctools::GCStamp<core::SingleFloat_I> {
template <> struct gctools::GCStamp<core::SingleFloat_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__SingleFloat_dummy_O;
};
template <> class gctools::GCStamp<core::Character_I> {
template <> struct gctools::GCStamp<core::Character_I> {
public:
static GCStampEnum const StampWtag = STAMPWTAG_core__Character_dummy_O;
};
Expand Down
2 changes: 1 addition & 1 deletion include/clasp/gctools/pointer_tagging.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ typedef int32_t integer32_t;
typedef int64_t integer64_t;

namespace core {
class Vaslist;
struct Vaslist;
class Code_S;
};

Expand Down

0 comments on commit 8f7c8fe

Please sign in to comment.