Tue, 23 Aug 2016 17:31:15 +0200
cleans up includes
src/c2html.c | file | annotate | diff | comparison | revisions | |
src/c2html.h | file | annotate | diff | comparison | revisions | |
src/ccodegen.c | file | annotate | diff | comparison | revisions | |
src/ccodegen.h | file | annotate | diff | comparison | revisions | |
src/codegens.c | file | annotate | diff | comparison | revisions | |
src/codegens.h | file | annotate | diff | comparison | revisions | |
src/javacodegen.c | file | annotate | diff | comparison | revisions | |
src/javacodegen.h | file | annotate | diff | comparison | revisions |
--- a/src/c2html.c Tue Aug 23 17:24:58 2016 +0200 +++ b/src/c2html.c Tue Aug 23 17:31:15 2016 +0200 @@ -28,9 +28,7 @@ */ #include "c2html.h" -#include "ucx/buffer.h" #include "ucx/list.h" -#include "ucx/utils.h" void printhelp() { printf("Formats source code using HTML.\n\nUsage:\n"
--- a/src/c2html.h Tue Aug 23 17:24:58 2016 +0200 +++ b/src/c2html.h Tue Aug 23 17:31:15 2016 +0200 @@ -30,12 +30,8 @@ #ifndef C2HTML_H #define C2HTML_H -#include <stdio.h> -#include <stdlib.h> -#include <string.h> #include <fcntl.h> #include <unistd.h> -#include <ctype.h> #include "javacodegen.h" #include "ccodegen.h"
--- a/src/ccodegen.c Tue Aug 23 17:24:58 2016 +0200 +++ b/src/ccodegen.c Tue Aug 23 17:31:15 2016 +0200 @@ -28,9 +28,6 @@ */ #include "ccodegen.h" -#include "ucx/utils.h" -#include <string.h> -#include <ctype.h> const char* ckeywords[] = { "auto", "break", "case", "char", "const", "continue", "default", "do",
--- a/src/ccodegen.h Tue Aug 23 17:24:58 2016 +0200 +++ b/src/ccodegen.h Tue Aug 23 17:31:15 2016 +0200 @@ -31,7 +31,6 @@ #define CCODEGEN_H #include "codegens.h" -#include <stddef.h> #ifdef __cplusplus extern "C" {
--- a/src/codegens.c Tue Aug 23 17:24:58 2016 +0200 +++ b/src/codegens.c Tue Aug 23 17:31:15 2016 +0200 @@ -27,11 +27,8 @@ * */ -#include <ctype.h> -#include <string.h> #include "codegens.h" - void put_htmlescaped(UcxBuffer *dest, char c) { if (c == '>') { ucx_buffer_puts(dest, ">");
--- a/src/codegens.h Tue Aug 23 17:24:58 2016 +0200 +++ b/src/codegens.h Tue Aug 23 17:31:15 2016 +0200 @@ -30,9 +30,13 @@ #ifndef CODEGENS_H #define CODEGENS_H +#include <stdlib.h> #include <stdio.h> +#include <string.h> +#include <ctype.h> #include "ucx/string.h" #include "ucx/buffer.h" +#include "ucx/utils.h" #ifdef __cplusplus extern "C" {
--- a/src/javacodegen.c Tue Aug 23 17:24:58 2016 +0200 +++ b/src/javacodegen.c Tue Aug 23 17:31:15 2016 +0200 @@ -28,8 +28,6 @@ */ #include "javacodegen.h" -#include <string.h> -#include <ctype.h> const char* jkeywords[] = { "abstract", "continue", "for", "new", "switch", "assert", "default", "goto",