X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fwhatnowproc.c;h=fc8783d0b8df0267a9e3c84cf0c3f15f3c4c5719;hb=0d33f1e27c4edb7290ef51cd03d50c0dbc9059ef;hp=7f88fc48dd413f737422a0f0c6c7c8d6de6f142d;hpb=8563731b02ce9d750806f6b1769af8b399d964e8;p=mmh diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 7f88fc4..fc8783d 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -2,7 +2,9 @@ /* * whatnowproc.c -- exec the "whatnowproc" * - * $Id$ + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -17,13 +19,10 @@ * it will call this routine directly without exec'ing it. */ -/* from whatnowsbr.c */ -int WhatNow (int, char **); - int what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist, - struct msgs *mp, char *text, int inplace, char *cwd) + struct msgs *mp, char *text, int inplace, char *cwd, int atfile) { int found, k, msgnum, vecp; int len, buflen; @@ -61,6 +60,8 @@ what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist, } snprintf (buffer, sizeof(buffer), "%d", use); m_putenv ("mhuse", buffer); + snprintf (buffer, sizeof(buffer), "%d", atfile); + m_putenv ("mhatfile", buffer); unputenv ("mhmessages"); unputenv ("mhannotate");