mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
strings.builder: remove unused var; clipboard: linux fixes
This commit is contained in:
parent
25db5e96a3
commit
207324d15b
@ -11,8 +11,13 @@ import math
|
|||||||
|
|
||||||
// X11
|
// X11
|
||||||
struct C.Display{}
|
struct C.Display{}
|
||||||
struct C.Atom{}
|
|
||||||
struct C.Window{}
|
[typedef]
|
||||||
|
struct C.Atom
|
||||||
|
|
||||||
|
[typedef]
|
||||||
|
struct C.Window
|
||||||
|
|
||||||
fn C.XInitThreads() int
|
fn C.XInitThreads() int
|
||||||
fn C.XCloseDisplay(d &Display)
|
fn C.XCloseDisplay(d &Display)
|
||||||
fn C.XFlush(d &Display)
|
fn C.XFlush(d &Display)
|
||||||
@ -46,6 +51,8 @@ struct C.XSelectionRequestEvent{
|
|||||||
property C.Atom
|
property C.Atom
|
||||||
time int
|
time int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.XSelectionEvent{
|
struct C.XSelectionEvent{
|
||||||
mut:
|
mut:
|
||||||
@type int
|
@type int
|
||||||
@ -56,15 +63,20 @@ struct C.XSelectionEvent{
|
|||||||
property C.Atom
|
property C.Atom
|
||||||
time int
|
time int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.XSelectionClearEvent{
|
struct C.XSelectionClearEvent{
|
||||||
mut:
|
mut:
|
||||||
window C.Window
|
window C.Window
|
||||||
selection C.Atom
|
selection C.Atom
|
||||||
}
|
}
|
||||||
|
|
||||||
struct C.XDestroyWindowEvent {
|
struct C.XDestroyWindowEvent {
|
||||||
mut:
|
mut:
|
||||||
window C.Window
|
window C.Window
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[typedef]
|
||||||
struct C.XEvent{
|
struct C.XEvent{
|
||||||
mut:
|
mut:
|
||||||
@type int
|
@type int
|
||||||
|
@ -104,9 +104,7 @@ pub fn (b mut Builder) free() {
|
|||||||
unsafe{
|
unsafe{
|
||||||
free(b.buf.data)
|
free(b.buf.data)
|
||||||
}
|
}
|
||||||
// QTODO checker bug
|
//b.buf = []byte{cap: b.initial_size}
|
||||||
s := b.initial_size
|
|
||||||
//b.buf = []byte{cap: s}
|
|
||||||
b.len = 0
|
b.len = 0
|
||||||
b.str_calls = 0
|
b.str_calls = 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user