summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
10d781b)
This reverts
6c5f9baa3bc0d63e141e0afc23110205379905a4 commit, whose
change breaks gcc-2.95.
Not that I ignore portability to compilers that are properly C99, but
keeping compilation with GCC working is more important, at least for
now. We would probably end up declaring with "name[1]" and teach the
allocator to subtract one if we really aimed for portability, but that
is left for later rounds.
Signed-off-by: Junio C Hamano <junkio@cox.net>
unsigned int ce_size;
unsigned char sha1[20];
unsigned short ce_flags;
unsigned int ce_size;
unsigned char sha1[20];
unsigned short ce_flags;
};
#define CE_NAMEMASK (0x0fff)
};
#define CE_NAMEMASK (0x0fff)
extern struct alternate_object_database {
struct alternate_object_database *next;
char *name;
extern struct alternate_object_database {
struct alternate_object_database *next;
char *name;
- char base[]; /* more */
+ char base[0]; /* more */
} *alt_odb_list;
extern void prepare_alt_odb(void);
} *alt_odb_list;
extern void prepare_alt_odb(void);
unsigned int pack_last_used;
unsigned int pack_use_cnt;
unsigned char sha1[20];
unsigned int pack_last_used;
unsigned int pack_use_cnt;
unsigned char sha1[20];
- char pack_name[]; /* something like ".git/objects/pack/xxxxx.pack" */
+ char pack_name[0]; /* something like ".git/objects/pack/xxxxx.pack" */
} *packed_git;
struct pack_entry {
} *packed_git;
struct pack_entry {
unsigned char new_sha1[20];
unsigned char force;
struct ref *peer_ref; /* when renaming */
unsigned char new_sha1[20];
unsigned char force;
struct ref *peer_ref; /* when renaming */
};
extern int git_connect(int fd[2], char *url, const char *prog);
};
extern int git_connect(int fd[2], char *url, const char *prog);
static struct commit_graft {
unsigned char sha1[20];
int nr_parent;
static struct commit_graft {
unsigned char sha1[20];
int nr_parent;
- unsigned char parent[][20]; /* more */
+ unsigned char parent[0][20]; /* more */
} **commit_graft;
static int commit_graft_alloc, commit_graft_nr;
} **commit_graft;
static int commit_graft_alloc, commit_graft_nr;
struct nond_on_fs {
int len;
struct nond_on_fs {
int len;
};
static struct nond_on_fs **dir;
};
static struct nond_on_fs **dir;
unsigned char updated;
unsigned char old_sha1[20];
unsigned char new_sha1[20];
unsigned char updated;
unsigned char old_sha1[20];
unsigned char new_sha1[20];
};
static struct command *commands = NULL;
};
static struct command *commands = NULL;
int nr_alloc;
int nr_heads;
unsigned char (*head)[20];
int nr_alloc;
int nr_heads;
unsigned char (*head)[20];
+ char dep[0]; /* more */
} **info;
static int num_pack;
static const char *objdir;
} **info;
static int num_pack;
static const char *objdir;