Skip to content

Commit

Permalink
Merge github.com:orangeduck/mpc
Browse files Browse the repository at this point in the history
  • Loading branch information
orangeduck committed Apr 15, 2014
2 parents c74dedb + 7ebd10e commit 28e50a3
Showing 7 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion examples/doge.c
Original file line number Diff line number Diff line change
@@ -44,4 +44,5 @@ int main(int argc, char **argv) {

return 0;

}
}

3 changes: 2 additions & 1 deletion examples/lispy.c
Original file line number Diff line number Diff line change
@@ -53,4 +53,5 @@ int main(int argc, char **argv) {

return 0;

}
}

3 changes: 2 additions & 1 deletion examples/maths.c
Original file line number Diff line number Diff line change
@@ -44,4 +44,5 @@ int main(int argc, char **argv) {

return 0;

}
}

3 changes: 2 additions & 1 deletion examples/smallc.c
Original file line number Diff line number Diff line change
@@ -99,4 +99,5 @@ int main(int argc, char **argv) {

return 0;

}
}

4 changes: 2 additions & 2 deletions mpc.h
Original file line number Diff line number Diff line change
@@ -22,17 +22,17 @@
*/

typedef struct {
char next;
int pos;
int row;
int col;
char next;
} mpc_state_t;

typedef struct {
mpc_state_t state;
int expected_num;
char *filename;
char *failure;
int expected_num;
char **expected;
} mpc_err_t;

3 changes: 2 additions & 1 deletion tests/ptest.h
Original file line number Diff line number Diff line change
@@ -18,4 +18,5 @@ void pt_add_test(void (*func)(void), const char* name, const char* suite);
void pt_add_suite(void (*func)(void));
int pt_run(void);

#endif
#endif

3 changes: 2 additions & 1 deletion tests/test.c
Original file line number Diff line number Diff line change
@@ -9,4 +9,5 @@ int main(int argc, char** argv) {
pt_add_suite(suite_regex);
pt_add_suite(suite_grammar);
return pt_run();
}
}

0 comments on commit 28e50a3

Please sign in to comment.