all: remove commas between enum vals

pull/4555/head
yuyi 2020-04-23 07:16:16 +08:00 committed by GitHub
parent d7ee4755c2
commit 4e1abc8503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 170 additions and 170 deletions

View File

@ -122,8 +122,8 @@ struct Ray {
// material types, used in radiance() // material types, used in radiance()
enum Refl_t { enum Refl_t {
diff, diff
spec, spec
refr refr
} }

View File

@ -85,15 +85,15 @@ const (
// in the future, maybe we can extend this // in the future, maybe we can extend this
// to support other mime types // to support other mime types
enum AtomType { enum AtomType {
xa_atom = 0, //value 4 xa_atom = 0 //value 4
xa_string = 1, //value 31 xa_string = 1 //value 31
targets = 2, targets = 2
clipboard = 3, clipboard = 3
primary = 4, primary = 4
secondary = 5, secondary = 5
text = 6, text = 6
utf8_string = 7 utf8_string = 7
text_plain = 8, text_plain = 8
text_html = 9 text_html = 9
} }

View File

@ -48,19 +48,19 @@ pub struct Message {
} }
pub enum OPCode { pub enum OPCode {
continuation = 0x00, continuation = 0x00
text_frame = 0x01, text_frame = 0x01
binary_frame = 0x02, binary_frame = 0x02
close = 0x08, close = 0x08
ping = 0x09, ping = 0x09
pong = 0x0A pong = 0x0A
} }
enum State { enum State {
connecting = 0, connecting = 0
connected, connected
open, open
closing, closing
closed closed
} }
@ -73,8 +73,8 @@ struct Uri {
} }
enum Flag { enum Flag {
has_accept, has_accept
has_connection, has_connection
has_upgrade has_upgrade
} }

View File

@ -396,9 +396,9 @@ const(
) )
enum BSLS_parse_state { enum BSLS_parse_state {
start, start
bsls_found, bsls_found
bsls_char, bsls_char
normal_char normal_char
} }
@ -467,11 +467,11 @@ mut:
} }
enum CharClass_parse_state { enum CharClass_parse_state {
start, start
in_char, in_char
in_bsls, in_bsls
separator, separator
finish, finish
} }
fn (re RE) get_char_class(pc int) string { fn (re RE) get_char_class(pc int) string {
@ -655,12 +655,12 @@ fn (re mut RE) parse_char_class(in_txt string, in_i int) (int, int, u32) {
// Quantifier // Quantifier
// //
enum Quant_parse_state { enum Quant_parse_state {
start, start
min_parse, min_parse
comma_checked, comma_checked
max_parse, max_parse
greedy, greedy
gredy_parse, gredy_parse
finish finish
} }
@ -785,13 +785,13 @@ fn (re RE) parse_quantifier(in_txt string, in_i int) (int, int, int, bool) {
// Groups // Groups
// //
enum Group_parse_state { enum Group_parse_state {
start, start
q_mark, // (? q_mark // (?
q_mark1, // (?:|P checking q_mark1 // (?:|P checking
p_status, // (?P p_status // (?P
p_start, // (?P< p_start // (?P<
p_end, // (?P<...> p_end // (?P<...>
p_in_name, // (?P<... p_in_name // (?P<...
finish finish
} }
@ -1414,18 +1414,18 @@ pub fn (re RE) get_query() string {
* *
******************************************************************************/ ******************************************************************************/
enum match_state{ enum match_state{
start = 0, start = 0
stop, stop
end, end
new_line, new_line
ist_load, // load and execute instruction ist_load // load and execute instruction
ist_next, // go to next instruction ist_next // go to next instruction
ist_next_ks, // go to next instruction without clenaning the state ist_next_ks // go to next instruction without clenaning the state
ist_quant_p, // match positive ,quantifier check ist_quant_p // match positive ,quantifier check
ist_quant_n, // match negative, quantifier check ist_quant_n // match negative, quantifier check
ist_quant_pg, // match positive ,group quantifier check ist_quant_pg // match positive ,group quantifier check
ist_quant_ng, // match negative ,group quantifier check ist_quant_ng // match negative ,group quantifier check
} }
fn state_str(s match_state) string { fn state_str(s match_state) string {

View File

@ -10,7 +10,7 @@ struct Companies {
} }
enum POSITION { enum POSITION {
GO_BACK, GO_BACK
DONT_GO_BACK DONT_GO_BACK
} }