1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-26 13:53:09 +02:00

eeshow/: util.h and diag.c go to misc/

This commit is contained in:
Werner Almesberger 2016-08-17 21:37:15 -03:00
parent 4836dcb0ca
commit c4811c8dd6
24 changed files with 43 additions and 43 deletions

View File

@ -18,7 +18,7 @@ OBJS = main.o \
file/file.o file/git-util.o file/git-file.o file/git-hist.o \ file/file.o file/git-util.o file/git-file.o file/git-hist.o \
gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \ gfx/style.o gfx/fig.o gfx/record.o gfx/cro.o gfx/diff.o gfx/gfx.o \
gfx/text.o gfx/misc.o \ gfx/text.o gfx/misc.o \
diag.o misc/diag.o
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \ CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
-Wmissing-prototypes -Wmissing-declarations \ -Wmissing-prototypes -Wmissing-declarations \

View File

@ -16,8 +16,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "file/git-file.h" #include "file/git-file.h"
#include "file/file.h" #include "file/file.h"

View File

@ -20,8 +20,8 @@
#include <git2.h> #include <git2.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "file/file.h" #include "file/file.h"
#include "file/git-util.h" #include "file/git-util.h"
#include "file/git-file.h" #include "file/git-file.h"

View File

@ -16,8 +16,8 @@
#include <time.h> /* for vcs_long_for_pango */ #include <time.h> /* for vcs_long_for_pango */
#include <alloca.h> #include <alloca.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "file/git-util.h" #include "file/git-util.h"
#include "file/git-file.h" #include "file/git-file.h"
#include "file/git-hist.h" #include "file/git-hist.h"

View File

@ -22,8 +22,8 @@
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <cairo/cairo-pdf.h> #include <cairo/cairo-pdf.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/text.h" #include "gfx/text.h"
#include "gfx/gfx.h" #include "gfx/gfx.h"

View File

@ -19,8 +19,8 @@
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "main.h" #include "main.h"
#include "gfx/cro.h" #include "gfx/cro.h"
#include "file/file.h" #include "file/file.h"

View File

@ -19,8 +19,8 @@
#include <math.h> #include <math.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/text.h" #include "gfx/text.h"
#include "main.h" #include "main.h"

View File

@ -16,7 +16,7 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "diag.h" #include "misc/diag.h"
#include "gfx/misc.h" #include "gfx/misc.h"

View File

@ -15,7 +15,7 @@
#include <limits.h> #include <limits.h>
#include <math.h> #include <math.h>
#include "util.h" #include "misc/util.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/gfx.h" #include "gfx/gfx.h"
#include "gfx/text.h" #include "gfx/text.h"

View File

@ -12,7 +12,7 @@
#include <stdint.h> #include <stdint.h>
#include "util.h" #include "misc/util.h"
#include "gfx/style.h" #include "gfx/style.h"

View File

@ -16,7 +16,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "util.h" #include "misc/util.h"
#include "gfx/misc.h" #include "gfx/misc.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/gfx.h" #include "gfx/gfx.h"

View File

@ -21,7 +21,7 @@
#include <math.h> #include <math.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "gui/aoi.h" #include "gui/aoi.h"

View File

@ -18,8 +18,8 @@
#include <ctype.h> #include <ctype.h>
#include <alloca.h> #include <alloca.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gui/fmt-pango.h" #include "gui/fmt-pango.h"

View File

@ -28,8 +28,8 @@
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/cro.h" #include "gfx/cro.h"
#include "gfx/gfx.h" #include "gfx/gfx.h"

View File

@ -30,7 +30,7 @@
#include <cairo/cairo.h> #include <cairo/cairo.h>
#include <pango/pangocairo.h> #include <pango/pangocairo.h>
#include "util.h" #include "misc/util.h"
#include "gui/fmt-pango.h" #include "gui/fmt-pango.h"
#include "gui/aoi.h" #include "gui/aoi.h"
#include "gui/style.h" #include "gui/style.h"

View File

@ -16,7 +16,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "util.h" #include "misc/util.h"
#include "gfx/text.h" #include "gfx/text.h"
#include "kicad/lib.h" #include "kicad/lib.h"
#include "kicad/sch.h" #include "kicad/sch.h"

View File

@ -17,7 +17,7 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "gfx/misc.h" #include "gfx/misc.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/text.h" #include "gfx/text.h"

View File

@ -15,8 +15,8 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/text.h" #include "gfx/text.h"
#include "file/file.h" #include "file/file.h"
#include "kicad/lib.h" #include "kicad/lib.h"

View File

@ -15,8 +15,8 @@
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/misc.h" #include "gfx/misc.h"
#include "gfx/style.h" #include "gfx/style.h"
#include "gfx/gfx.h" #include "gfx/gfx.h"

View File

@ -19,8 +19,8 @@
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "kicad/dwg.h" #include "kicad/dwg.h"
#include "file/file.h" #include "file/file.h"
#include "kicad/lib.h" #include "kicad/lib.h"

View File

@ -19,8 +19,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "util.h" #include "misc/util.h"
#include "diag.h" #include "misc/diag.h"
#include "gfx/fig.h" #include "gfx/fig.h"
#include "gfx/cro.h" #include "gfx/cro.h"
#include "gfx/diff.h" #include "gfx/diff.h"

View File

@ -1,5 +1,5 @@
/* /*
* diag.h - Diagnostics * misc/diag.h - Diagnostics
* *
* Written 2016 by Werner Almesberger * Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger * Copyright 2016 by Werner Almesberger
@ -18,7 +18,7 @@
#include <errno.h> #include <errno.h>
#include "diag.h" #include "misc/diag.h"
unsigned verbose = 0; unsigned verbose = 0;

View File

@ -1,5 +1,5 @@
/* /*
* diag.h - Diagnostics * misc/diag.h - Diagnostics
* *
* Written 2016 by Werner Almesberger * Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger * Copyright 2016 by Werner Almesberger
@ -10,8 +10,8 @@
* (at your option) any later version. * (at your option) any later version.
*/ */
#ifndef DIAG_H #ifndef MISC_DIAG_H
#define DIAG_H #define MISC_DIAG_H
/* /*
* 0: no progress indications * 0: no progress indications
@ -68,4 +68,4 @@ void warning(const char *fmt, ...)
void progress(unsigned level, const char *fmt, ...) void progress(unsigned level, const char *fmt, ...)
__attribute__((format(printf, 2, 3))); __attribute__((format(printf, 2, 3)));
#endif /* !DIAG_H */ #endif /* !MISC_DIAG_H */

View File

@ -1,5 +1,5 @@
/* /*
* util.h - Common utility functions * misc/util.h - Common utility functions
* *
* Written 2016 by Werner Almesberger * Written 2016 by Werner Almesberger
* Copyright 2016 Werner Almesberger * Copyright 2016 Werner Almesberger
@ -11,8 +11,8 @@
*/ */
#ifndef UTIL_H #ifndef MISC_UTIL_H
#define UTIL_H #define MISC_UTIL_H
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -50,4 +50,4 @@
#define unsupported(s) \ #define unsupported(s) \
fprintf(stderr, __FILE__ ":%d: unsupported: " s "\n", __LINE__) fprintf(stderr, __FILE__ ":%d: unsupported: " s "\n", __LINE__)
#endif /* !UTIL_H */ #endif /* !MISC_UTIL_H */