1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-20 02:56:15 +02:00

sch2fig/git-file.c, git-file.h: start our git_* identifiers with vcs_git_

Since we'll use this name space more intensely, we don't want to risk
clashes
This commit is contained in:
Werner Almesberger 2016-08-02 14:49:54 -03:00
parent 3864743280
commit 86feabf49c
3 changed files with 5 additions and 5 deletions

View File

@ -71,6 +71,6 @@ void file_read(const char *name, bool (*parse)(void *user, const char *line),
tmp = stralloc(name); tmp = stralloc(name);
tmp[colon - name] = 0; tmp[colon - name] = 0;
git_read(tmp, colon + 1, parse, user); vcs_git_read(tmp, colon + 1, parse, user);
free(tmp); free(tmp);
} }

View File

@ -1,5 +1,5 @@
/* /*
* git-file.c - Open and read a file from git * 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
@ -338,7 +338,7 @@ static void send_data(const char *data, unsigned size,
} }
void git_read(const char *revision, const char *name, void vcs_git_read(const char *revision, const char *name,
bool (*parse)(void *user, const char *line), void *user) bool (*parse)(void *user, const char *line), void *user)
{ {
static bool initialized = 0; static bool initialized = 0;

View File

@ -1,5 +1,5 @@
/* /*
* git-file.h - Open and read a file from git * 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
@ -16,7 +16,7 @@
#include <stdbool.h> #include <stdbool.h>
void git_read(const char *revision, const char *name, void vcs_git_read(const char *revision, const char *name,
bool (*parse)(void *user, const char *line), void *user); bool (*parse)(void *user, const char *line), void *user);
#endif /* !GIT_FILE_H */ #endif /* !GIT_FILE_H */