Merge pull request #2824 from GrosChien/master
ca65 Fixing segfault when using `--expend-macros` without `--listing`
This commit is contained in:
@@ -728,7 +728,7 @@ ExpandParam:
|
|||||||
|
|
||||||
/* Use next macro token */
|
/* Use next macro token */
|
||||||
TokSet (Mac->Exp);
|
TokSet (Mac->Exp);
|
||||||
if (ExpandMacros) {
|
if (ExpandMacros && SB_GetLen (&ListingName) > 0) {
|
||||||
if (new_expand_line) {
|
if (new_expand_line) {
|
||||||
/* Suppress unneeded lines if short expansion
|
/* Suppress unneeded lines if short expansion
|
||||||
** the ExpandStart is used to ensure that
|
** the ExpandStart is used to ensure that
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ static int ReplayTokList (void* List)
|
|||||||
|
|
||||||
/* see description in macro.c */
|
/* see description in macro.c */
|
||||||
static int new_expand_line = 1;
|
static int new_expand_line = 1;
|
||||||
if (ExpandMacros) {
|
if (ExpandMacros && SB_GetLen (&ListingName) > 0) {
|
||||||
if (new_expand_line) {
|
if (new_expand_line) {
|
||||||
if (LineLast->FragList == 0 && ExpandMacros==1) {
|
if (LineLast->FragList == 0 && ExpandMacros==1) {
|
||||||
LineCur->Output--;
|
LineCur->Output--;
|
||||||
|
|||||||
Reference in New Issue
Block a user