From 38884e791365c842b728cf47481b6151c35832ff Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sun, 6 Apr 2014 12:26:28 +0200 Subject: [PATCH 1/2] fixed 'no newline at end of file' build errors --- examples/doge.c | 3 ++- examples/lispy.c | 3 ++- examples/maths.c | 3 ++- examples/smallc.c | 3 ++- tests/ptest.h | 3 ++- tests/test.c | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/examples/doge.c b/examples/doge.c index d82a92b..5b15556 100644 --- a/examples/doge.c +++ b/examples/doge.c @@ -44,4 +44,5 @@ int main(int argc, char **argv) { return 0; -} \ No newline at end of file +} + diff --git a/examples/lispy.c b/examples/lispy.c index 7b63244..ae185d4 100644 --- a/examples/lispy.c +++ b/examples/lispy.c @@ -53,4 +53,5 @@ int main(int argc, char **argv) { return 0; -} \ No newline at end of file +} + diff --git a/examples/maths.c b/examples/maths.c index 6179614..18199cc 100644 --- a/examples/maths.c +++ b/examples/maths.c @@ -44,4 +44,5 @@ int main(int argc, char **argv) { return 0; -} \ No newline at end of file +} + diff --git a/examples/smallc.c b/examples/smallc.c index 44b5420..2836051 100644 --- a/examples/smallc.c +++ b/examples/smallc.c @@ -99,4 +99,5 @@ int main(int argc, char **argv) { return 0; -} \ No newline at end of file +} + diff --git a/tests/ptest.h b/tests/ptest.h index 8c436cd..4de173f 100644 --- a/tests/ptest.h +++ b/tests/ptest.h @@ -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 \ No newline at end of file +#endif + diff --git a/tests/test.c b/tests/test.c index 39015ba..1a2a1da 100644 --- a/tests/test.c +++ b/tests/test.c @@ -9,4 +9,5 @@ int main(int argc, char** argv) { pt_add_suite(suite_regex); pt_add_suite(suite_grammar); return pt_run(); -} \ No newline at end of file +} + From 17092f3637a104e4dc457db6dd609b260744bccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yetkin=20=C3=96zt=C3=BCrk?= Date: Sun, 6 Apr 2014 18:07:12 +0200 Subject: [PATCH 2/2] Update mpc.h mpc_state_t and mpc_err_t member order changed for better structure data alignment. --- mpc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpc.h b/mpc.h index d75558b..f47391a 100644 --- a/mpc.h +++ b/mpc.h @@ -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;