1
0
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:
Henrixounez
2020-10-03 15:41:45 +02:00
committed by GitHub
parent 7e13518cc2
commit c324169af0
6 changed files with 16 additions and 37 deletions

View File

@@ -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 {