From 6def25554b02f4bc2447e7b0a6be8668e9e41cc4 Mon Sep 17 00:00:00 2001 From: Taco Hoekwater Date: Wed, 9 Jul 2008 12:08:57 +0000 Subject: [PATCH] export mp_histroy_state enum ; no need to double check command_line for '&' character git-svn-id: svn+ssh://scm.foundry.supelec.fr/svn/metapost/mplib/trunk@610 b0617d17-b707-0410-b22c-fd2634e05cc4 --- src/texk/web2c/mpdir/mp.w | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/texk/web2c/mpdir/mp.w b/src/texk/web2c/mpdir/mp.w index be0e216..ac4f53e 100644 --- a/src/texk/web2c/mpdir/mp.w +++ b/src/texk/web2c/mpdir/mp.w @@ -1987,8 +1987,8 @@ Another global variable, |error_count|, is increased by one when an the end of every statement. If |error_count| reaches 100, \MP\ decides that there is no point in continuing further. -@= -enum mp_history_states { +@= +enum mp_history_state { mp_spotless=0, /* |history| value when nothing has been amiss yet */ mp_warning_issued, /* |history| value when |begin_diagnostic| has been called */ mp_error_message_issued, /* |history| value when |error| has been called */ @@ -26294,19 +26294,6 @@ if (mp->ini_version) { mp->hash_prime=mp_prime_choices[(i-14)]; } else { int x; - if (mp->command_line != NULL && *(mp->command_line) == '&') { - char *s = NULL; - char *cmd = mp->command_line+1; - xfree(mp->mem_name); /* just in case */ - mp->mem_name = mp_xstrdup(mp,cmd); - while (*cmd && *cmd!=' ') cmd++; - if (*cmd==' ') *cmd++ = '\0'; - if (*cmd) { - s = mp_xstrdup(mp,cmd); - } - xfree(mp->command_line); - mp->command_line = s; - } if (mp->mem_name == NULL) { mp->mem_name = mp_xstrdup(mp,"plain"); } -- 2.32.0.93.g670b81a890