mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-26 13:13:45 +02:00
eeshow/: move file and history access to file/
This commit is contained in:
parent
b9329b09d2
commit
097192b7b4
@ -13,7 +13,8 @@
|
|||||||
NAME = eeshow
|
NAME = eeshow
|
||||||
OBJS = main.o sch-parse.o sch-render.o lib-parse.o lib-render.o \
|
OBJS = main.o sch-parse.o sch-render.o lib-parse.o lib-render.o \
|
||||||
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o \
|
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o \
|
||||||
file.o git-util.o git-file.o git-hist.o delta.o \
|
file/file.o file/git-util.o file/git-file.o file/git-hist.o \
|
||||||
|
delta.o \
|
||||||
style.o fig.o record.o cro.o diff.o gfx.o dwg.o text.o misc.o diag.o
|
style.o fig.o record.o cro.o diff.o gfx.o dwg.o text.o misc.o diag.o
|
||||||
|
|
||||||
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
|
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "cro.h"
|
#include "cro.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "sch.h"
|
#include "sch.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
#include "record.h"
|
#include "record.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* file.c - Open and read a file
|
* file/file.c - Open and read a file
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "git-file.h"
|
#include "file/git-file.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
|
|
||||||
|
|
||||||
void *file_oid(const struct file *file)
|
void *file_oid(const struct file *file)
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* file.h - Open and read a file
|
* file/file.h - Open and read a file
|
||||||
*
|
*
|
||||||
* 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 FILE_H
|
#ifndef FILE_FILE_H
|
||||||
#define FILE_H
|
#define FILE_FILE_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -42,4 +42,4 @@ bool file_read(struct file *file,
|
|||||||
void *user);
|
void *user);
|
||||||
void file_close(struct file *file);
|
void file_close(struct file *file);
|
||||||
|
|
||||||
#endif /* !FILE_H */
|
#endif /* !FILE_FILE_H */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-file.c - Open and read a file from git version control system
|
* file/git-file.c - Open and read a file from git version control system
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "git-util.h"
|
#include "file/git-util.h"
|
||||||
#include "git-file.h"
|
#include "file/git-file.h"
|
||||||
|
|
||||||
|
|
||||||
struct vcs_git {
|
struct vcs_git {
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-file.h - Open and read a file from git version control system
|
* file/git-file.h - Open and read a file from git version control system
|
||||||
*
|
*
|
||||||
* 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 GIT_FILE_H
|
#ifndef FILE_GIT_FILE_H
|
||||||
#define GIT_FILE_H
|
#define FILE_GIT_FILE_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@ -42,4 +42,4 @@ bool vcs_git_read(void *ctx, struct file *file,
|
|||||||
void *user);
|
void *user);
|
||||||
void vcs_git_close(void *ctx);
|
void vcs_git_close(void *ctx);
|
||||||
|
|
||||||
#endif /* !GIT_FILE_H */
|
#endif /* !FILE_GIT_FILE_H */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-hist.c - Retrieve revision history from GIT repo
|
* file/git-hist.c - Retrieve revision history from GIT repo
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "git-util.h"
|
#include "file/git-util.h"
|
||||||
#include "git-file.h"
|
#include "file/git-file.h"
|
||||||
#include "git-hist.h"
|
#include "file/git-hist.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-hist.h - Retrieve revision history from GIT repo
|
* file/git-hist.h - Retrieve revision history from GIT repo
|
||||||
*
|
*
|
||||||
* 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 GIT_HIST_H
|
#ifndef FILE_GIT_HIST_H
|
||||||
#define GIT_HIST_H
|
#define FILE_GIT_HIST_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@ -41,4 +41,4 @@ void hist_iterate(struct hist *h,
|
|||||||
void (*fn)(void *user, struct hist *h), void *user);
|
void (*fn)(void *user, struct hist *h), void *user);
|
||||||
void dump_hist(struct hist *h);
|
void dump_hist(struct hist *h);
|
||||||
|
|
||||||
#endif /* !GIT_HIST_H */
|
#endif /* !FILE_GIT_HIST_H */
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-util.c - Git utility functions
|
* file/git-util.c - Git utility functions
|
||||||
*
|
*
|
||||||
* Written 2016 by Werner Almesberger
|
* Written 2016 by Werner Almesberger
|
||||||
* Copyright 2016 by Werner Almesberger
|
* Copyright 2016 by Werner Almesberger
|
||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
#include "git-util.h"
|
#include "file/git-util.h"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* git-util.h - Git utility functions
|
* file/git-util.h - Git utility functions
|
||||||
*
|
*
|
||||||
* 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 GIT_UTIL_H
|
#ifndef FILE_GIT_UTIL_H
|
||||||
#define GIT_UTIL_H
|
#define FILE_GIT_UTIL_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
@ -21,4 +21,4 @@
|
|||||||
bool git_repo_is_dirty(git_repository *repo);
|
bool git_repo_is_dirty(git_repository *repo);
|
||||||
void git_init_once(void);
|
void git_init_once(void);
|
||||||
|
|
||||||
#endif /* !GIT_UTIL_H */
|
#endif /* !FILE_GIT_UTIL_H */
|
@ -33,7 +33,7 @@
|
|||||||
#include "style.h"
|
#include "style.h"
|
||||||
#include "cro.h"
|
#include "cro.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "git-hist.h"
|
#include "file/git-hist.h"
|
||||||
#include "sch.h"
|
#include "sch.h"
|
||||||
#include "delta.h"
|
#include "delta.h"
|
||||||
#include "diff.h"
|
#include "diff.h"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
|
|
||||||
|
|
||||||
enum lib_state {
|
enum lib_state {
|
||||||
|
@ -25,11 +25,11 @@
|
|||||||
#include "cro.h"
|
#include "cro.h"
|
||||||
#include "diff.h"
|
#include "diff.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
#include "sch.h"
|
#include "sch.h"
|
||||||
#include "gui/fmt-pango.h"
|
#include "gui/fmt-pango.h"
|
||||||
#include "git-hist.h"
|
#include "file/git-hist.h"
|
||||||
#include "gui/gui.h"
|
#include "gui/gui.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#include "dwg.h"
|
#include "dwg.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
#include "sch.h"
|
#include "sch.h"
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "dwg.h"
|
#include "dwg.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
#include "file.h"
|
#include "file/file.h"
|
||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user