Branch: Tag:

2018-03-02

2018-03-02 15:22:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cpp: Fixed some issues with #pike.

* cpp_change_compat() leaked stuff on the pike stack.

* Returning non-empty strings from directive_*() functions
should now work.

545:    this->compat_handler=Pike_sp[-1].u.object;    dmalloc_touch_svalue(Pike_sp-1);    Pike_sp--; +  } else { +  pop_stack();    }    this->compat_major=major;    this->compat_minor=minor;
4229:    Pike_sp[-1].u.string->len) {    /* We need to recurse. */    low_cpp(this, MKPCHARP_STR(Pike_sp[-1].u.string), -  Pike_sp[-1].u.string->len, flags, charset); +  Pike_sp[-1].u.string->len, +  flags & ~CPP_EXPECT_ENDIF, charset);    }    pop_stack();    break;