Merge branch 'master' into netgen-1.5

This commit is contained in:
Tim Edwards 2023-03-01 02:00:03 -05:00
commit 7a8b5e835b
9 changed files with 13 additions and 6 deletions

View File

@ -1 +1 @@
1.5.246 1.5.247

View File

@ -17,6 +17,7 @@ along with this program; see the file copying. If not, write to
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* inetcomp.c -- a simple wrapper to the NETCOMP() function */ /* inetcomp.c -- a simple wrapper to the NETCOMP() function */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include "netgen.h" #include "netgen.h"

View File

@ -17,7 +17,6 @@ along with this program; see the file copying. If not, write to
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* netcmp.c -- graph isomorphism testing */ /* netcmp.c -- graph isomorphism testing */
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>

View File

@ -34,6 +34,8 @@ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "print.h" #include "print.h"
#endif #endif
extern void Finsert(FILE *f);
void test_entry(void) void test_entry(void)
{ {

View File

@ -1588,13 +1588,13 @@ skip_endmodule:
/* until bits in signal are exhausted or LHS is full. */ /* until bits in signal are exhausted or LHS is full. */
if (i != -1) if (i != -1)
sprintf(nodename, "%s[%d]", noderoot, i); snprintf(nodename, MAX_STR_LEN, "%s[%d]", noderoot, i);
else else
sprintf(nodename, lhs->name); strncpy(nodename, MAX_STR_LEN, lhs->name);
if (j != -1) if (j != -1)
sprintf(assignname, "%s[%d]", assignroot, j); snprintf(assignname, MAX_STR_LEN, "%s[%d]", assignroot, j);
else else
sprintf(assignname, rhs->name); strncpy(assignname, MAX_STR_LEN, rhs->name);
join(nodename, assignname); join(nodename, assignname);

View File

@ -17,6 +17,7 @@ along with this program; see the file copying. If not, write to
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* inetcomp.c -- a simple wrapper to the NETCOMP() function */ /* inetcomp.c -- a simple wrapper to the NETCOMP() function */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include "netgen.h" #include "netgen.h"

View File

@ -17,6 +17,7 @@ along with this program; see the file copying. If not, write to
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* netcomp.c -- a simple wrapper to provide netlist comparison functionality */ /* netcomp.c -- a simple wrapper to provide netlist comparison functionality */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include "netgen.h" #include "netgen.h"

View File

@ -23,6 +23,7 @@ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdlib.h> /* for getenv */ #include <stdlib.h> /* for getenv */
#endif #endif
#include "netgen.h" #include "netgen.h"
#include "print.h"
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View File

@ -20,9 +20,11 @@ along with this program; see the file copying. If not, write to
the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* ntk2xnf.c -- a simple wrapper to translate .ntk to Xilinx XNF format */ /* ntk2xnf.c -- a simple wrapper to translate .ntk to Xilinx XNF format */
#include "config.h"
#include <stdio.h> #include <stdio.h>
#include "netgen.h" #include "netgen.h"
#include "xilinx.h"
#ifdef HAVE_X11 #ifdef HAVE_X11
/* the following two X procedures are to permit linking /* the following two X procedures are to permit linking