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

remove old types and

This commit is contained in:
Alexander Medvednikov
2019-06-25 22:19:17 +02:00
parent f26e65a943
commit f3f24b25bb
6 changed files with 13 additions and 20 deletions

View File

@ -1925,10 +1925,6 @@ fn (p mut Parser) factor() string {
switch tok {
case INT:
typ = 'int'
// typ = 'number'
if p.lit.starts_with('u') {
typ = 'long'
}
if p.lit.contains('.') || p.lit.contains('e') {
typ = 'f32'
// typ = 'f64' // TODO
@ -2087,14 +2083,13 @@ fn (p mut Parser) typ_to_fmt(typ string) string {
switch typ {
case 'string': return '%.*s'
case 'ustring': return '%.*s'
case 'long': return '%ld'
case 'byte': return '%d'
case 'int': return '%d'
case 'char': return '%d'
case 'byte': return '%d'
case 'bool': return '%d'
case 'u32': return '%d'
case 'double', 'f64', 'f32': return '%f'
case 'f64', 'f32': return '%f'
case 'i64': return '%lld'
case 'byte*': return '%s'
// case 'array_string': return '%s'