Permalink
Browse files

GeanyVC: Don't specify subobject initializers

The `.identifier = ` syntax for specifying subobject initializers was
introduced by C99.  Since we want to stick as compatible as possible
with C89, and since specifying subobject initializer wasn't needed
(only made obvious which field initialized what), we just drop them.
  • Loading branch information...
1 parent 339957c commit 430127f67d1430c413e89542e43d7df400a0dc27 @b4n b4n committed Jul 8, 2012
Showing with 366 additions and 366 deletions.
  1. +57 −57 geanyvc/src/vc_bzr.c
  2. +69 −69 geanyvc/src/vc_cvs.c
  3. +57 −57 geanyvc/src/vc_git.c
  4. +69 −69 geanyvc/src/vc_hg.c
  5. +57 −57 geanyvc/src/vc_svk.c
  6. +57 −57 geanyvc/src/vc_svn.c
View
@@ -42,70 +42,70 @@ static const gchar *BZR_CMD_UPDATE[] = { "bzr", "pull", NULL };
static const VC_COMMAND commands[] = {
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_DIFF_FILE,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_DIFF_FILE,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_DIFF_DIR,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_DIFF_DIR,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_REVERT_FILE,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_REVERT_FILE,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_BASE,
- .command = BZR_CMD_REVERT_DIR,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_BASE,
+ BZR_CMD_REVERT_DIR,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_STATUS,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_STATUS,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_ADD,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_ADD,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_REMOVE,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_REMOVE,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_LOG_FILE,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_LOG_FILE,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_LOG_DIR,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_LOG_DIR,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_COMMIT,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_COMMIT,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_BLAME,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_BLAME,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = BZR_CMD_SHOW,
- .env = NULL,
- .function = NULL},
+ VC_COMMAND_STARTDIR_FILE,
+ BZR_CMD_SHOW,
+ NULL,
+ NULL},
{
- .startdir = VC_COMMAND_STARTDIR_BASE,
- .command = BZR_CMD_UPDATE,
- .env = NULL,
- .function = NULL}
+ VC_COMMAND_STARTDIR_BASE,
+ BZR_CMD_UPDATE,
+ NULL,
+ NULL}
};
@@ -253,9 +253,9 @@ get_commit_files_bzr(const gchar * dir)
}
VC_RECORD VC_BZR = {
- .commands = commands,
- .program = "bzr",
- .get_base_dir = get_base_dir,
- .in_vc = in_vc_bzr,
- .get_commit_files = get_commit_files_bzr,
+ commands,
+ "bzr",
+ get_base_dir,
+ in_vc_bzr,
+ get_commit_files_bzr,
};
View
@@ -41,70 +41,70 @@ static const gchar *CVS_CMD_UPDATE[] = { "cvs", "up", "-d", NULL };
static const VC_COMMAND commands[] = {
{
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_DIFF_FILE,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_DIFF_DIR,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_REVERT_FILE,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_BASE,
- .command = CVS_CMD_REVERT_DIR,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_STATUS,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_ADD,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_REMOVE,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_LOG_FILE,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_LOG_DIR,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_COMMIT,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_BLAME,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_FILE,
- .command = CVS_CMD_SHOW,
- .env = NULL,
- .function = NULL},
- {
- .startdir = VC_COMMAND_STARTDIR_BASE,
- .command = CVS_CMD_UPDATE,
- .env = NULL,
- .function = NULL}
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_DIFF_FILE,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_DIFF_DIR,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_REVERT_FILE,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_BASE,
+ CVS_CMD_REVERT_DIR,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_STATUS,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_ADD,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_REMOVE,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_LOG_FILE,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_LOG_DIR,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_COMMIT,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_BLAME,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_FILE,
+ CVS_CMD_SHOW,
+ NULL,
+ NULL},
+ {
+ VC_COMMAND_STARTDIR_BASE,
+ CVS_CMD_UPDATE,
+ NULL,
+ NULL}
};
static gchar *
@@ -241,9 +241,9 @@ get_commit_files_cvs(const gchar * dir)
}
VC_RECORD VC_CVS = {
- .commands = commands,
- .program = "cvs",
- .get_base_dir = get_base_dir,
- .in_vc = in_vc_cvs,
- .get_commit_files = get_commit_files_cvs,
+ commands,
+ "cvs",
+ get_base_dir,
+ in_vc_cvs,
+ get_commit_files_cvs,
};
Oops, something went wrong.

0 comments on commit 430127f

Please sign in to comment.