mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
clean up
This commit is contained in:
parent
c860bac7bf
commit
b0a5cac0c0
@ -495,7 +495,7 @@ fn (p mut Parser) async_fn_call(f Fn, method_ph int, receiver_var, receiver_type
|
|||||||
|
|
||||||
fn (p mut Parser) fn_call(f Fn, method_ph int, receiver_var, receiver_type string) {
|
fn (p mut Parser) fn_call(f Fn, method_ph int, receiver_var, receiver_type string) {
|
||||||
if !f.is_public && !f.is_c && f.pkg != p.pkg && f.pkg != 'builtin' {
|
if !f.is_public && !f.is_c && f.pkg != p.pkg && f.pkg != 'builtin' {
|
||||||
p.error('$p.run function `$f.name` is private $f.is_public')
|
p.error('function `$f.name` is private')
|
||||||
}
|
}
|
||||||
p.calling_c = f.is_c
|
p.calling_c = f.is_c
|
||||||
is_print := p.is_prod &&// Hide prints only in prod
|
is_print := p.is_prod &&// Hide prints only in prod
|
||||||
|
12
rand/rand.v
12
rand/rand.v
@ -4,23 +4,13 @@
|
|||||||
|
|
||||||
module rand
|
module rand
|
||||||
|
|
||||||
//#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|
||||||
struct LOLLO {
|
|
||||||
}
|
|
||||||
|
|
||||||
fn kek() {
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn seed() {
|
pub fn seed() {
|
||||||
# time_t t;
|
# time_t t;
|
||||||
# srand((unsigned) time(&t));
|
# srand((unsigned) time(&t));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ffkek() {
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn next(max int) int {
|
pub fn next(max int) int {
|
||||||
r := 0
|
r := 0
|
||||||
# r = rand(); // TODO parser bug `rand` module name conflict
|
# r = rand(); // TODO parser bug `rand` module name conflict
|
||||||
|
Loading…
Reference in New Issue
Block a user