Permalink
Browse files

* core: rename pn-ast.c to ast.c and so on, since the parser has shr…

…unk and the pn- prefix has gone away.
  • Loading branch information...
1 parent 07388f3 commit 89576aebb5d50a7cec5f8af01c60648f52bdab44 _why committed Aug 11, 2009
Showing with 7 additions and 7 deletions.
  1. +1 −1 Makefile
  2. +2 −2 core/{pn-ast.c → ast.c}
  3. +1 −1 core/{pn-ast.h → ast.h}
  4. +1 −1 core/compile.c
  5. +1 −1 core/gc.c
  6. +1 −1 core/syntax.g
View
@@ -1,6 +1,6 @@
.SUFFIXES: .g .c .o
-SRC = core/asm.c core/callcc.c core/compile.c core/contrib.c core/file.c core/gc.c core/internal.c core/lick.c core/mt19937ar.c core/number.c core/objmodel.c core/primitive.c core/pn-ast.c core/string.c core/syntax.c core/table.c core/vm.c core/vm-ppc.c core/vm-x86.c
+SRC = core/asm.c core/ast.c core/callcc.c core/compile.c core/contrib.c core/file.c core/gc.c core/internal.c core/lick.c core/mt19937ar.c core/number.c core/objmodel.c core/primitive.c core/string.c core/syntax.c core/table.c core/vm.c core/vm-ppc.c core/vm-x86.c
OBJ = ${SRC:.c=.o}
OBJ_POTION = core/potion.o
OBJ_TEST = test/api/potion-test.o test/api/CuTest.o
@@ -1,5 +1,5 @@
//
-// pn-ast.c
+// ast.c
// the ast for Potion code in-memory
//
// (c) 2008 why the lucky stiff, the freelance professor
@@ -8,7 +8,7 @@
#include <stdlib.h>
#include "potion.h"
#include "internal.h"
-#include "pn-ast.h"
+#include "ast.h"
const char *potion_ast_names[] = {
"code", "value", "assign", "not", "or", "and", "cmp", "eq", "neq",
@@ -1,5 +1,5 @@
//
-// pn-ast.h
+// ast.h
// the ast for Potion code in-memory
//
// (c) 2008 why the lucky stiff, the freelance professor
View
@@ -9,7 +9,7 @@
#include <math.h>
#include "potion.h"
#include "internal.h"
-#include "pn-ast.h"
+#include "ast.h"
#include "opcodes.h"
#include "asm.h"
View
@@ -287,7 +287,7 @@ PN_SIZE potion_type_size(Potion *P, const struct PNObject *ptr) {
sz = sizeof(struct PNVtable);
break;
case PN_TSOURCE:
- // TODO: look up ast size (see core/pn-ast.c)
+ // TODO: look up ast size (see core/ast.c)
sz = sizeof(struct PNSource) + (3 * sizeof(PN));
break;
case PN_TBYTES:
View
@@ -11,7 +11,7 @@
#include "potion.h"
#include "internal.h"
#include "asm.h"
-#include "pn-ast.h"
+#include "ast.h"
#define YY_INPUT(buf, result, max) { \
if (P->yypos < PN_STR_LEN(P->input)) { \

0 comments on commit 89576ae

Please sign in to comment.