Skip to content

Commit

Permalink
Remove Z3_bool, Z3_TRUE, Z3_FALSE from the API.
Browse files Browse the repository at this point in the history
These have just been aliases for the standard type `bool` and
values `true` and `false` for a long time now.
  • Loading branch information
waywardmonkeys authored and NikolajBjorner committed Aug 1, 2022
1 parent 77e5d6a commit fe1e301
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Version 4.next

Version 4.11.0
==============
- remove Z3_bool from API
- remove `Z3_bool`, `Z3_TRUE`, `Z3_FALSE` from the API. Use `bool`, `true`, `false` instead.

Version 4.10.2
==============
Expand Down
15 changes: 0 additions & 15 deletions src/api/z3_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,13 @@ DEFINE_TYPE(Z3_rcf_num);
- \c Z3_stats: statistical data for a solver.
*/

/**
\brief Z3 Boolean type. It is just an alias for \c bool.
*/
typedef bool Z3_bool;

/**
\brief Z3 string type. It is just an alias for \ccode{const char *}.
*/
typedef const char * Z3_string;
typedef char const* Z3_char_ptr;
typedef Z3_string * Z3_string_ptr;

/**
\brief True value. It is just an alias for \c true.
*/
#define Z3_TRUE true

/**
\brief False value. It is just an alias for \c false.
*/
#define Z3_FALSE false

/**
\brief Lifted Boolean type: \c false, \c undefined, \c true.
*/
Expand Down

0 comments on commit fe1e301

Please sign in to comment.