Renamed vm->match

This commit is contained in:
Bruce Hill 2021-01-15 19:30:21 -08:00
parent 77b33d6a3c
commit 270509af3b
6 changed files with 9 additions and 9 deletions

View File

@ -9,7 +9,7 @@ G=
O=-O3
ALL_FLAGS=$(CFLAGS) -DBP_NAME="\"$(NAME)\"" $(EXTRA) $(CWARN) $(G) $(O)
CFILES=compiler.c grammar.c utils.c vm.c files.c print.c json.c
CFILES=compiler.c grammar.c utils.c match.c files.c print.c json.c
OBJFILES=$(CFILES:.c=.o)
all: $(NAME)

2
bp.c
View File

@ -18,7 +18,7 @@
#include "json.h"
#include "print.h"
#include "utils.h"
#include "vm.h"
#include "match.h"
#ifndef BP_NAME
#define BP_NAME "bp"

View File

@ -1,5 +1,5 @@
//
// vm.c - Code for the BP virtual machine that performs the matching.
// match.c - Code for the BP virtual machine that performs the matching.
//
#include <ctype.h>
@ -10,7 +10,7 @@
#include "grammar.h"
#include "types.h"
#include "utils.h"
#include "vm.h"
#include "match.h"
#ifdef DEBUG_HEAP
// Doubly-linked list operations:

View File

@ -1,8 +1,8 @@
//
// vm.h - Header file for BP virtual machine.
// match.h - Header file for BP virtual machine.
//
#ifndef VM__H
#define VM__H
#ifndef MATCH__H
#define MATCH__H
#include <stdio.h>

View File

@ -9,7 +9,7 @@
#include "print.h"
#include "types.h"
#include "utils.h"
#include "vm.h"
#include "match.h"
typedef struct match_node_s {
match_t *m;

View File

@ -8,7 +8,7 @@
#include <string.h>
#include <unistd.h>
#include "vm.h"
#include "match.h"
#define streq(a, b) (strcmp(a, b) == 0)
// TODO: better error reporting