* along with Mes. If not, see <http://www.gnu.org/licenses/>.
*/
-// #if _POSIX_SOURCE
-// #undef fputs
-// #undef fdputs
-// #undef fdputc
-// #endif
+#include <ctype.h>
SCM
___end_of_mes___ ()
int
dump ()
{
- eputs ("program r2=");
- display_error_ (r2);
- eputs ("\n");
-
r1 = g_symbols;
gc_push_frame ();
gc ();
putchar (g_stack >> 8);
putchar (g_stack % 256);
// See HACKING, simple crafted dump for tiny-mes.c
- // if (getenv ("MES_TINY"))
- if (g_tiny)
+ if (g_tiny || getenv ("MES_TINY"))
{
eputs ("dumping TINY\n");
g_free = 15;
}
else
- eputs ("dumping FULL\n");
+ {
+ eputs ("dumping FULL\n");
+ if (g_debug > 1)
+ {
+ eputs ("program r2=");
+ display_error_ (r2);
+ eputs ("\n");
+ }
+ }
+
for (int i=0; i<g_free * sizeof(struct scm); i++)
putchar (*p++);
return 0;