Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update typedef of enums #6

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/libkoopa/include/koopa.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ enum koopa_error_code {
///
/// Type of error code.
///
typedef int32_t koopa_error_code_t;
typedef enum koopa_error_code koopa_error_code_t;

///
/// Raw file (file descriptor or handle).
Expand Down Expand Up @@ -83,7 +83,7 @@ enum koopa_raw_slice_item_kind {
///
/// Type of raw slice item kind.
///
typedef uint32_t koopa_raw_slice_item_kind_t;
typedef enum koopa_raw_slice_item_kind koopa_raw_slice_item_kind_t;

///
/// A raw slice that can store any kind of items.
Expand Down Expand Up @@ -319,7 +319,7 @@ enum koopa_raw_binary_op {
///
/// Type of raw binary operator.
///
typedef uint32_t koopa_raw_binary_op_t;
typedef enum koopa_raw_binary_op koopa_raw_binary_op_t;

///
/// Raw binary operation.
Expand Down
Loading