Skip to content

Commit

Permalink
Corrected Tcl list output (and, by consequence, the JSON file
Browse files Browse the repository at this point in the history
output) to include pin information (missing "-list" argument to
the "equate pins" command).
  • Loading branch information
RTimothyEdwards committed Dec 7, 2017
1 parent 4098b7d commit 77e5d70
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions netgen/Makefile
Expand Up @@ -22,8 +22,8 @@ tclnetgen${SHDLIB_EXT}: ${EXTRA_LIBS}
@echo --- making netgen Tcl library \(tclnetgen${SHDLIB_EXT}\)
${RM} tclnetgen${SHDLIB_EXT}
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} \
${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} -lc ${LIBS} \
${LIB_SPECS} ${LDFLAGS}
${LD_RUN_PATH} ${EXTRA_LIBS} ${LD_EXTRA_LIBS} \
-lc ${LIBS} ${LIB_SPECS} ${LDFLAGS}

$(DESTDIR)${BINDIR}/netgen:
${RM} $@
Expand Down
1 change: 0 additions & 1 deletion scripts/configure.in
Expand Up @@ -868,7 +868,6 @@ case $target in
AC_DEFINE(i386)
;;
*darwin*)
AC_DEFINE(macosx)
if test "$CPP" = "cc -E" ; then
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
fi
Expand Down
9 changes: 7 additions & 2 deletions tcltk/netgen.tcl.in
Expand Up @@ -529,8 +529,13 @@ proc netgen::lvs { name1 name2 {setupfile setup.tcl} {logfile comp.out} args} {
} else {
# Match pins
netgen::log echo off
set result [equate pins "$fnum1 [lindex $endval 0]" \
"$fnum2 [lindex $endval 1]"]
if {$dolist == 1} {
set result [equate pins "$fnum1 [lindex $endval 0]" \
"$fnum2 [lindex $endval 1]"]
} else {
set result [equate -list pins "$fnum1 [lindex $endval 0]" \
"$fnum2 [lindex $endval 1]"]
}
if {$result != 0} {
equate classes "$fnum1 [lindex $endval 0]" \
"$fnum2 [lindex $endval 1]"
Expand Down
2 changes: 1 addition & 1 deletion tcltk/tclnetgen.c
Expand Up @@ -4071,7 +4071,7 @@ int Tclnetgen_Init(Tcl_Interp *interp)
if (cadroot == NULL) cadroot = CAD_DIR;
Tcl_SetVar(interp, "CAD_ROOT", cadroot, TCL_GLOBAL_ONLY);

Tcl_PkgProvide(interp, "Tclnetgen", "1.1");
Tcl_PkgProvide(interp, "Tclnetgen", NETGEN_VERSION);

if ((consoleinterp = Tcl_GetMaster(interp)) == NULL)
consoleinterp = interp;
Expand Down

0 comments on commit 77e5d70

Please sign in to comment.