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

vfmt: enum fix

This commit is contained in:
Alexander Medvednikov
2019-12-20 02:35:07 +03:00
parent 6af54d0207
commit 00b8a5d3e4
4 changed files with 17 additions and 16 deletions

View File

@@ -11,12 +11,12 @@ But it will be necessary once we have dynamic linking.
enum SectionType {
null
=0progbits
=1symtab
=2strtab
=3rela
=4}
null = 0
progbits = 1
symtab = 2
strtab = 3
rela = 4
}
struct SectionConfig {
name string
@@ -62,7 +62,7 @@ fn genobj() {
align:0
entsize: 0
})
/*
for sect in sections {
g.section_header(SectionConfig{
@@ -77,10 +77,10 @@ fn genobj() {
align: sect.align
entsize: sect.entsize
})
}
}
*/
g.section_header(SectionConfig{
name: '.DATA'
typ: .progbits
@@ -93,7 +93,7 @@ fn genobj() {
align: 1
entsize: 0
})
g.section_header(SectionConfig{
name: '.TEXT'
typ: .progbits