changeset 4:7b4f78fcca08

ueda/sverp Linuxified
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 20 Jul 2015 00:53:19 +0000
parents d098f8548b44
children e62c37d85a30
files .hgignore ueda/sverp/Makefile ueda/sverp/elaborate.c ueda/sverp/lexer.c ueda/sverp/link.c ueda/sverp/main.c ueda/sverp/misc.c ueda/sverp/output.c ueda/sverp/prim.c ueda/sverp/vparse.c
diffstat 10 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Mon Jul 20 00:45:40 2015 +0000
+++ b/.hgignore	Mon Jul 20 00:53:19 2015 +0000
@@ -5,5 +5,6 @@
 ^ueda/mclutils/getfps$
 ^ueda/mclutils/mkbom$
 ^ueda/mclutils/shortbom$
+^ueda/sverp/ueda-sverp$
 ^ueda/utils/cutelements$
 ^ueda/utils/instfileelem$
--- a/ueda/sverp/Makefile	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/Makefile	Mon Jul 20 00:53:19 2015 +0000
@@ -1,8 +1,9 @@
-CFLAGS=	-O
+CC=	gcc
+CFLAGS=	-O2
 OBJS=	elaborate.o lexer.o link.o main.o misc.o output.o prim.o vparse.o
 LIBS=	../libueda/libueda.a
 PROG=	ueda-sverp
-BINDIR=	/usr/local
+BINDIR=	/usr/local/bin
 
 all:	${PROG}
 
--- a/ueda/sverp/elaborate.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/elaborate.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,12 +3,12 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "struct.h"
 #include "lexer.h"	/* for MAXDIGITS */
 
-extern char *malloc();
-
 struct output_net *output_net_head;
 struct output_element *output_element_head;
 int total_good_nets, total_singular_nets, total_null_nets;
--- a/ueda/sverp/lexer.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/lexer.c	Mon Jul 20 00:53:19 2015 +0000
@@ -6,6 +6,7 @@
 
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "lexer.h"
 
 char *parser_filename;
--- a/ueda/sverp/link.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/link.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,6 +3,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "struct.h"
 
--- a/ueda/sverp/main.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/main.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,6 +3,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include "struct.h"
 
 struct module_def *glob_module_list, *top_module_def;
@@ -23,7 +25,6 @@
 	char **argv;
 {
 	register int c;
-	extern char *optarg;
 
 	while ((c = getopt(argc, argv, "I:o:p:t:v")) != EOF) {
 		switch (c) {
--- a/ueda/sverp/misc.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/misc.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,6 +3,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "struct.h"
 
--- a/ueda/sverp/output.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/output.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,6 +3,8 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "struct.h"
 
--- a/ueda/sverp/prim.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/prim.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,13 +3,13 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "../libueda/xga.h"
 #include "struct.h"
 #include "lexer.h"
 
-extern char *malloc();
-
 extern struct grid_pkg_desc *read_grid_pkg_file();
 
 extern struct module_def *glob_module_list;
--- a/ueda/sverp/vparse.c	Mon Jul 20 00:45:40 2015 +0000
+++ b/ueda/sverp/vparse.c	Mon Jul 20 00:53:19 2015 +0000
@@ -3,12 +3,12 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <strings.h>
 #include "struct.h"
 #include "lexer.h"
 
-extern char *malloc();
-
 extern struct module_def *glob_module_list;
 
 extern char *parser_filename;