mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: remove intermediate handling for both global definition syntaxes (#6546)
This commit is contained in:
@@ -1070,7 +1070,7 @@ pub fn (s string) ustring() ustring {
|
||||
// A hack that allows to create ustring without allocations.
|
||||
// It's called from functions like draw_text() where we know that the string is going to be freed
|
||||
// right away. Uses global buffer for storing runes []int array.
|
||||
__global g_ustring_runes []int
|
||||
__global ( g_ustring_runes []int )
|
||||
|
||||
pub fn (s string) ustring_tmp() ustring {
|
||||
if g_ustring_runes.len == 0 {
|
||||
|
||||
Reference in New Issue
Block a user