Data sections can now have rw perms
This commit is contained in:
parent
f5ad652d68
commit
a9a1c6ae9b
@ -1,6 +1,5 @@
|
|||||||
package analyzer
|
package analyzer
|
||||||
|
|
||||||
import "git.tebibyte.media/arf/arf/types"
|
|
||||||
import "git.tebibyte.media/arf/arf/parser"
|
import "git.tebibyte.media/arf/arf/parser"
|
||||||
import "git.tebibyte.media/arf/arf/infoerr"
|
import "git.tebibyte.media/arf/arf/infoerr"
|
||||||
|
|
||||||
@ -38,15 +37,6 @@ func (analyzer analysisOperation) analyzeDataSection () (
|
|||||||
|
|
||||||
inputSection := analyzer.currentSection.(parser.DataSection)
|
inputSection := analyzer.currentSection.(parser.DataSection)
|
||||||
outputSection.location = analyzer.currentSection.Location()
|
outputSection.location = analyzer.currentSection.Location()
|
||||||
|
|
||||||
if inputSection.Permission() == types.PermissionReadWrite {
|
|
||||||
err = inputSection.NewError (
|
|
||||||
"read-write (rw) permission not understood in this " +
|
|
||||||
"context, try read-only (ro)",
|
|
||||||
infoerr.ErrorKindError)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
outputSection.permission = inputSection.Permission()
|
outputSection.permission = inputSection.Permission()
|
||||||
|
|
||||||
// get inherited type
|
// get inherited type
|
||||||
|
Reference in New Issue
Block a user