rix: fixup

This commit is contained in:
Duncaen 2017-05-08 20:06:54 +02:00
parent 4533b8fa78
commit 2243b118b4
4 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,21 @@
--- rixc.h.orig
+++ rixc.h
@@ -15,6 +15,7 @@
void defineRSLSymbols(Object *);
+Object *directive(char *key, char *value);
Object *findByName(char *name);
Object *findFunctionByFullName(char *name);
--- rix.l.orig
+++ rix.l
@@ -5,7 +5,7 @@
#include "ObjectTree.h"
#include "rix.tab.h" /* Generated by bison. */
#include "rixc.h"
-#include "error.h"
+#include "errors.h"
#define INSERT_BUFF_LEN 1024
#define INDENT_STACK_MAX 512

View file

@ -0,0 +1,11 @@
--- Makefile.orig
+++ Makefile
@@ -7,7 +7,7 @@
flex rix.l
rixc: lex.yy.c rix.tab.c rix.tab.h
- gcc -ggdb preproc.c ObjectTree.c rix.tab.c lex.yy.c rixc.c errors.c crsl.c -lfl -o rixc
+ ${CC} ${CFLAGS} -ggdb preproc.c ObjectTree.c rix.tab.c lex.yy.c rixc.c errors.c crsl.c -o rixc ${LDFLAGS}
clean:
rm rixc rix.tab.c lex.yy.c rix.tab.h

View file

@ -0,0 +1,11 @@
--- rixc.c.orig
+++ rixc.c
@@ -1563,7 +1563,7 @@
Object *objectfloat(float f)
{
compilerDebugPrintf("objectfloat(%f)\n", f);
- char buffer[128];
+ char buffer[BUFFLEN];
snprintf(buffer, BUFFLEN, "%f", f);
Object *result = CreateObject(0, 0, 0, Expression, "float");
addCode(result, buffer);

View file

@ -10,7 +10,6 @@ license="GPL-3"
homepage="https://github.com/riolet/rix"
distfiles="https://github.com/riolet/rix/archive/v${version}.tar.gz"
checksum=8727fee17cbbecec3ca8083fac80db3a2ed234c8128ec8df5cc56293e1dbb09c
nostrip=yes
do_install() {
vbin rixc