summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-05-09 09:45:09 +0000
committerPaul Buetow <paul@buetow.org>2010-05-09 09:45:09 +0000
commit980eeaaea5a7bf40edef17070ec21a2bc3714acd (patch)
tree115462d2836a3c94bf63820eb5d78e73c0f5e206
parentb16caaa631ac8143c021c99fb16ce96cf69ead91 (diff)
renamed some stuff from PBSc (Paul Buetow Scheme) into Fype
-rw-r--r--INSTALL2
-rw-r--r--src/argv.c2
-rw-r--r--src/argv.h2
-rw-r--r--src/core/interpret.c2
-rw-r--r--src/core/interpret.h2
-rw-r--r--src/core/scanner.c2
-rw-r--r--src/core/scanner.h2
-rw-r--r--src/data/tree.h2
-rw-r--r--src/fype.c8
-rw-r--r--src/fype.h6
10 files changed, 15 insertions, 15 deletions
diff --git a/INSTALL b/INSTALL
index a8b38a4..669dabf 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,6 +6,6 @@ How to install fype:
How to read the docu:
- man pbsc
+ man fype
Examples can be found in the ./examples directory.
diff --git a/src/argv.c b/src/argv.c
index 7133842..ab80174 100644
--- a/src/argv.c
+++ b/src/argv.c
@@ -46,7 +46,7 @@
char *BINARY;
void
-argv_run(PBSc *p_fype, int i_argc, char **pc_argv) {
+argv_run(Fype *p_fype, int i_argc, char **pc_argv) {
Dat *p_dat_string = dat_new();
BINARY = pc_argv[0];
diff --git a/src/argv.h b/src/argv.h
index 2963994..f0682f7 100644
--- a/src/argv.h
+++ b/src/argv.h
@@ -38,7 +38,7 @@
#include "data/tupel.h"
#include "fype.h"
-void argv_run(PBSc *p_fype, int i_argc, char **pc_argv);
+void argv_run(Fype *p_fype, int i_argc, char **pc_argv);
void argv_switch(char c_arg, Tupel *p_tupel_argv, unsigned i_argc_left);
void argv_synopsis(Tupel *p_tupel_argv);
void argv_help();
diff --git a/src/core/interpret.c b/src/core/interpret.c
index dfbc36b..3dea81a 100644
--- a/src/core/interpret.c
+++ b/src/core/interpret.c
@@ -77,7 +77,7 @@ interpret_delete(Interpret *p_inter) {
}
void
-interpret_run(PBSc *p_fype) {
+interpret_run(Fype *p_fype) {
Interpret *p_inter =
interpret_new(p_fype->p_list_token);
diff --git a/src/core/interpret.h b/src/core/interpret.h
index 3ca216e..7834ef6 100644
--- a/src/core/interpret.h
+++ b/src/core/interpret.h
@@ -53,6 +53,6 @@ typedef struct _Interpret {
Interpret* interpret_new(List *p_list_token);
Interpret* interpret_new_lambda(Interpret *p_inter, Lambda *p_lambda);
void interpret_delete(Interpret *p_inter);
-void interpret_run(PBSc *p_fype);
+void interpret_run(Fype *p_fype);
#endif /* INTERPRET_H */
diff --git a/src/core/scanner.c b/src/core/scanner.c
index a346641..8b4c373 100644
--- a/src/core/scanner.c
+++ b/src/core/scanner.c
@@ -98,7 +98,7 @@ _scanner_get_next_char(Scanner *p_scanner) {
}
void
-scanner_run(PBSc *p_fype) {
+scanner_run(Fype *p_fype) {
Scanner *p_scanner = scanner_new(p_fype->p_list_token,
p_fype->p_tupel_argv);
diff --git a/src/core/scanner.h b/src/core/scanner.h
index cac4889..6a729bc 100644
--- a/src/core/scanner.h
+++ b/src/core/scanner.h
@@ -58,7 +58,7 @@ typedef struct {
TokenType tt_last;
} Scanner;
-void scanner_run(PBSc *p_fype);
+void scanner_run(Fype *p_fype);
Scanner *scanner_new(List *p_list_token, Tupel *p_tupel_argv);
void scanner_delete(Scanner *p_scanner);
void scanner_add_token(Scanner *p_scanner, char **cc_token, int *p_token_len,
diff --git a/src/data/tree.h b/src/data/tree.h
index 12027e2..24cb892 100644
--- a/src/data/tree.h
+++ b/src/data/tree.h
@@ -39,7 +39,7 @@
#include "array.h"
#include "stack.h"
-#ifdef PBSC
+#ifdef FYPE
#include "../core/token.h"
#endif
diff --git a/src/fype.c b/src/fype.c
index ace0bbd..0b64242 100644
--- a/src/fype.c
+++ b/src/fype.c
@@ -39,9 +39,9 @@
#include "core/token.h"
#include "core/interpret.h"
-PBSc*
+Fype*
fype_new() {
- PBSc *p_fype = malloc(sizeof(PBSc));
+ Fype *p_fype = malloc(sizeof(Fype));
p_fype->p_hash_syms = hash_new(512);
p_fype->p_list_token = list_new();
@@ -52,7 +52,7 @@ fype_new() {
}
void
-fype_delete(PBSc *p_fype) {
+fype_delete(Fype *p_fype) {
argv_tupel_delete(p_fype->p_tupel_argv);
hash_delete(p_fype->p_hash_syms);
@@ -66,7 +66,7 @@ fype_delete(PBSc *p_fype) {
int
fype_run(int i_argc, char **pc_argv) {
- PBSc *p_fype = fype_new();
+ Fype *p_fype = fype_new();
// argv: Maintains command line options
argv_run(p_fype, i_argc, pc_argv);
diff --git a/src/fype.h b/src/fype.h
index ebc21b7..e1ecbf8 100644
--- a/src/fype.h
+++ b/src/fype.h
@@ -48,10 +48,10 @@ typedef struct {
List *p_list_token; // Initial list of tokens
Hash *p_hash_syms; // Symbol table
char *c_basename;
-} PBSc;
+} Fype;
-PBSc *fype_new();
-void fype_delete(PBSc *p_fype);
+Fype *fype_new();
+void fype_delete(Fype *p_fype);
int fype_run(int i_argc, char **pc_argv);
#endif /* FYPE_H */