fmt: fix and simplify align of struct fields (#21995)

This commit is contained in:
yuyi 2024-08-06 01:23:39 +08:00 committed by GitHub
parent 576a0abcc7
commit ddb6685d8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
139 changed files with 553 additions and 519 deletions

View file

@ -295,7 +295,7 @@ pub mut:
prog_len int // regex program len
// char classes storage
cc []CharClass // char class list
cc_index int // index
cc_index int // index
// groups
group_count int // number of groups in this regex struct
groups []int // groups index results
@ -314,7 +314,7 @@ pub mut:
// flags
flag int // flag for optional parameters
// Debug/log
debug int // enable in order to have the unroll of the code 0 = NO_DEBUG, 1 = LIGHT 2 = VERBOSE
debug int // enable in order to have the unroll of the code 0 = NO_DEBUG, 1 = LIGHT 2 = VERBOSE
log_func FnLog = simple_log // log function, can be customized by the user
query string // query string
}
@ -375,7 +375,7 @@ fn (mut re RE) reset_src() {
*
******************************************************************************/
struct BslsStruct {
ch rune // meta char
ch rune // meta char
validator FnValidator = unsafe { nil } // validator function pointer
}
@ -525,9 +525,9 @@ const cc_end = 4
struct CharClass {
mut:
cc_type int // type of cc token
ch0 rune // first char of the interval a-b a in this case
ch1 rune // second char of the interval a-b b in this case
cc_type int // type of cc token
ch0 rune // first char of the interval a-b a in this case
ch1 rune // second char of the interval a-b b in this case
validator FnValidator = unsafe { nil } // validator function pointer
}
@ -1812,7 +1812,7 @@ pub mut:
first_match int = -1 // index of the first match
pc int = -1 // program counter
i int = -1 // source string index
char_len int // last char legth
char_len int // last char legth
last_dot_pc int = -1 // last dot chat pc
}