mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler & builtin: bitshifts CAO fix and C code removal in utf8
utf8: removed bitshift cao in code utf8: added pub on functions utf8: byteptr to voidptr utf8: converts voidptr to byteptr
This commit is contained in:

committed by
Alexander Medvednikov

parent
959cc2ea03
commit
c83ebe2c66
@ -138,7 +138,7 @@ fn (s mut Scanner) get_var_name(pos int) string {
|
||||
|
||||
// CAO stands for Compound Assignment Operators (e.g '+=' )
|
||||
fn (s mut Scanner) cao_change(operator string) {
|
||||
s.text = s.text.substr(0, s.pos - 1) + ' = ' + s.get_var_name(s.pos - 1) + ' ' + operator + ' ' + s.text.substr(s.pos + 1, s.text.len)
|
||||
s.text = s.text.substr(0, s.pos - operator.len) + ' = ' + s.get_var_name(s.pos - operator.len) + ' ' + operator + ' ' + s.text.substr(s.pos + 1, s.text.len)
|
||||
}
|
||||
|
||||
fn (s mut Scanner) scan() ScanRes {
|
||||
|
Reference in New Issue
Block a user