1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: optimize/generalize typ method

This commit is contained in:
joe-conigliaro
2020-04-01 00:18:25 +11:00
parent 956bf23390
commit d048bf66b0
2 changed files with 6 additions and 6 deletions

View File

@ -61,7 +61,8 @@ pub enum FormatDelimiter {
space
}
pub struct C.time_t {}
// TODO: C.time_t. works in v2
type time_t voidptr
pub struct C.timeval {
tv_sec u64
@ -70,7 +71,7 @@ pub struct C.timeval {
fn C.localtime(int) &C.tm
fn C.time(int) C.time_t
fn C.time(int) time_t
// now returns current local time.
pub fn now() Time {