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()
enum Refl_t {
diff,
spec,
diff
spec
refr
}

View File

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

View File

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

View File

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

View File

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