[ruby/prism] give flag enums a non-typedef
'd name
https://github.com/ruby/prism/commit/630af5cb0e
This commit is contained in:
parent
cd0b8d2441
commit
cf2049cb55
@ -104,7 +104,7 @@ typedef struct pm_<%= node.human %> {
|
||||
<%- flags.each do |flag| -%>
|
||||
|
||||
// <%= flag.name %>
|
||||
typedef enum {
|
||||
typedef enum pm_<%= flag.human %> {
|
||||
<%- flag.values.each.with_index(Prism::COMMON_FLAGS) do |value, index| -%>
|
||||
PM_<%= flag.human.upcase %>_<%= value.name %> = 1 << <%= index %>,
|
||||
<%- end -%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user