Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Printing blank funcion
- X-seq: zsh-workers 1778
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Printing blank funcion
- Date: Fri, 26 Jul 1996 10:15:14 +0200
- In-reply-to: "pws@xxxxxx"'s message of "Fri, 26 Jul 1996 10:08:34 MET." <199607260808.KAA09932@xxxxxxxxxxxx>
I wrote:
> % TRAPUSR1() { }
> % functions TRAPUSR1
> TRAPUSR1()
>
> No braces at all here: that's illegal for a definition.
> Any empty function does this.
This is the trivial fix. (Does anyone want to argue this isn't a
bug??)
*** Src/hashtable.c.printfn Fri Jul 26 09:42:59 1996
--- Src/hashtable.c Fri Jul 26 10:12:46 1996
***************
*** 759,765 ****
printf("traced ");
if (!f->funcdef) {
nicezputs(f->nam, stdout);
! printf(" ()\n");
return;
}
--- 759,765 ----
printf("traced ");
if (!f->funcdef) {
nicezputs(f->nam, stdout);
! printf(" () { }\n");
return;
}
--
Peter Stephenson <pws@xxxxxx> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author