bugfix: nil -> emptyNode
This commit is contained in:
parent
182ab85dc8
commit
ded7f6a6d5
4 changed files with 4 additions and 3 deletions
|
|
@ -123,7 +123,7 @@ type
|
||||||
PRodReader* = ref TRodReader
|
PRodReader* = ref TRodReader
|
||||||
|
|
||||||
const
|
const
|
||||||
FileVersion* = "1018" # modify this if the rod-format changes!
|
FileVersion* = "1019" # modify this if the rod-format changes!
|
||||||
|
|
||||||
var rodCompilerprocs*: TStrTable
|
var rodCompilerprocs*: TStrTable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,7 @@ proc encodeSym(w: PRodWriter, s: PSym, result: var string) =
|
||||||
if not astNeeded(s):
|
if not astNeeded(s):
|
||||||
codeAst = s.ast.sons[codePos]
|
codeAst = s.ast.sons[codePos]
|
||||||
# ugly hack to not store the AST:
|
# ugly hack to not store the AST:
|
||||||
s.ast.sons[codePos] = nil
|
s.ast.sons[codePos] = ast.emptyNode
|
||||||
encodeNode(w, s.info, s.ast, result)
|
encodeNode(w, s.info, s.ast, result)
|
||||||
if codeAst != nil:
|
if codeAst != nil:
|
||||||
# resore the AST:
|
# resore the AST:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# Hello world program
|
# Hello world program
|
||||||
|
|
||||||
echo "Hello world!"
|
echo "Hello World!"
|
||||||
|
|
|
||||||
1
todo.txt
1
todo.txt
|
|
@ -21,6 +21,7 @@ incremental compilation
|
||||||
- test thread var
|
- test thread var
|
||||||
- test method generation
|
- test method generation
|
||||||
- test DLL interfacing!
|
- test DLL interfacing!
|
||||||
|
- hallo.rod is missing initial statements: feature or bug?
|
||||||
- fix remaining bugs
|
- fix remaining bugs
|
||||||
- write documentation
|
- write documentation
|
||||||
- make the compiler output a warning if linking fails with --symbolFiles:on
|
- make the compiler output a warning if linking fails with --symbolFiles:on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue