diff options
-rw-r--r-- | .dir-locals.el | 9 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | examples/fib.c | 4 | ||||
-rw-r--r-- | vm/inst.h | 4 | ||||
-rw-r--r-- | vm/runtime.h | 1 |
5 files changed, 11 insertions, 9 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index e942583..02fbd7a 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,6 +1,9 @@ ;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; For more information see (info "(emacs) Directory Variables") -((nil . ((projectile-project-compilation-cmd . "make") - (projectile-project-configure-cmd . "make clean") - (+license/license-choice . "GPLv2")))) +((nil . ((projectile-project-compilation-cmd . "make") + (projectile-project-configure-cmd . "make clean") + (+license/license-choice . "GPLv2"))) + (c-mode . ((flycheck-gcc-include-path . ("..")) + (flycheck-clang-include-path . ("..")) + (company-clang-arguments . ("-I.."))))) @@ -1,5 +1,5 @@ CC=gcc -GENERAL-FLAGS=-Wall -Wextra -Werror -Wswitch-enum -std=c11 +GENERAL-FLAGS=-Wall -Wextra -Werror -Wswitch-enum -std=c11 -I. DEBUG-FLAGS=-ggdb -fsanitize=address RELEASE-FLAGS=-O3 CFLAGS:=$(GENERAL-FLAGS) $(DEBUG-FLAGS) diff --git a/examples/fib.c b/examples/fib.c index 17a9ef8..c059ff9 100644 --- a/examples/fib.c +++ b/examples/fib.c @@ -15,8 +15,8 @@ #include <stdio.h> #include <string.h> -#include "../vm/inst.h" -#include "../vm/runtime.h" +#include <vm/inst.h> +#include <vm/runtime.h> int main(void) { @@ -16,8 +16,8 @@ #include <stdio.h> #include <stdlib.h> -#include "../lib/base.h" -#include "../lib/darr.h" +#include <lib/base.h> +#include <lib/darr.h> typedef enum { diff --git a/vm/runtime.h b/vm/runtime.h index 03cd21f..316b4c6 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -16,7 +16,6 @@ #include <stdio.h> #include <stdlib.h> -#include "../lib/base.h" #include "./inst.h" typedef enum |