1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/cad/findhier/files/patch-menu.c
Hiroki Sato 05dd2ea17f FindHier is a road-map generator for Magic/CIF/gdsII/PCSTR/GED/TeX.
---When you have a large number of or big layout/schematic/TeX files which
 have possibly many top cells made by other people, how can you manage
 those layout/schematic/TeXs?  FH is written for that.  It can be useful
 up to your imagination or shell programming skill.  FH analyses the
 hidden hierarchies of those cells and shows you the hierarchy information.
2007-04-28 17:01:15 +00:00

30 lines
677 B
C

--- menu.c.orig Sun Apr 29 00:54:06 2007
+++ menu.c Sun Apr 29 00:54:30 2007
@@ -9,7 +9,7 @@
#include <errno.h>
#ifndef _UNIX_
#include <process.h>
-#endif _UNIX_
+#endif /* _UNIX_ */
#define PROMPT "FindHier>"
/*
@@ -102,7 +102,7 @@
(void)sprintf(tmpfname,"/tmp/FindHier_%d",getpid());
#else
(void)sprintf(tmpfname,".\\findhier.%3x",getpid() & 0xfff);
-#endif _UNIX_
+#endif /* _UNIX_ */
pager=getenv("PAGER");
if (pager==NULL) {
pager=(char *)myalloc(sizeof("more"),"menu");
@@ -112,7 +112,7 @@
(void)sprintf(pagercmd,"%s %s",pager,tmpfname);
#else
(void)sprintf(pagercmd,"%s < %s",pager,tmpfname);
-#endif _UNIX_
+#endif /* _UNIX_ */
for(;;) {