mirror of https://github.com/cc65/cc65.git
Merge 91d1f43ddd
into b993d88339
This commit is contained in:
commit
0d87fe403f
|
@ -1176,6 +1176,11 @@ if you want to access the "other" symbol <tt/bar/, you would have to write:
|
|||
.endscope
|
||||
</verb></tscreen>
|
||||
|
||||
The above example also shows that to search a scope that is not yet defined in
|
||||
the code above the usage, you must use the namespace token (<tt/::/) and
|
||||
specify the full scope name, to allow the assembler to create the scope at the
|
||||
correct place.
|
||||
|
||||
|
||||
<sect>Address sizes and memory models<label id="address-sizes"><p>
|
||||
|
||||
|
|
|
@ -136,10 +136,10 @@ SymTable* ParseScopedIdent (StrBuf* Name, StrBuf* FullName)
|
|||
SB_Append (FullName, Name);
|
||||
|
||||
/* Search for the child scope */
|
||||
Scope = SymFindScope (Scope, Name, SYM_FIND_EXISTING);
|
||||
Scope = SymFindScope (Scope, Name, SYM_ALLOC_NEW);
|
||||
if (Scope == 0) {
|
||||
/* Scope not found */
|
||||
Error ("No such scope: '%m%p'", FullName);
|
||||
Error ("Can't create scope: '%m%p'", FullName);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue