Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Printing blank funcion



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