home: hub: 9ficl

Download patch

ref: bd854a97abcfacda0ea18a7d7c62044a8eb1fd51
parent: 2c9635999753fec13e4bb0cd92b04180c14df630
author: asau <asau@ficl.sf.net>
date: Fri Sep 10 04:38:02 CDT 2010

Parametrize output file name.

--- a/softcore/makesoftcore.c
+++ b/softcore/makesoftcore.c
@@ -13,6 +13,10 @@
 #include "ficl.h"
 
 
+#ifndef SOFTCORE_OUT
+#define SOFTCORE_OUT "../softcore.c"
+#endif
+ 
 void fprintDataAsHex(FILE *f, char *data, int length)
 	{
 	int i;
@@ -166,10 +170,10 @@
 	}
 	*dst = 0;
 
-	f = fopen("../softcore.c", "wt");
+	f = fopen(SOFTCORE_OUT, "wt");
 	if (f == NULL)
 		{
-		printf("couldn't open ../softcore.c for writing!  giving up.\n");
+		printf("couldn't open " SOFTCORE_OUT " for writing!  giving up.\n");
 		exit(-1);
 		}