declare bool arguments as int instead to please AIX XLC

2009-04-30  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/execute.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.h: Declare bool arguments as int instead to please AIX XLC.
This commit is contained in:
Paolo Bonzini committed 2009-05-11 10:55:56 +02:00
1 parent 67a10f7750
commit 7dcd3eca60
5 files changed
+24 -17

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
2009-05-11 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c: Declare bool arguments as int instead to please AIX XLC.
* sed/execute.c: Declare bool arguments as int instead to please AIX XLC.
* sed/utils.c: Declare bool arguments as int instead to please AIX XLC.
* sed/utils.h: Declare bool arguments as int instead to please AIX XLC.
2009-05-11 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: XFAIL bsd test where appropriate.
+2 -2
View File
@@ -527,11 +527,11 @@ snarf_char_class(b, cur_stat)
}
}
static struct buffer *match_slash P_((int slash, bool regex));
static struct buffer *match_slash P_((int slash, int regex));
static struct buffer *
match_slash(slash, regex)
int slash;
bool regex;
int regex;
{
struct buffer *b;
int ch;
+10 -10
View File
@@ -421,12 +421,12 @@ line_reset(buf, state)
/* Copy the contents of the line `from' into the line `to'.
This destroys the old contents of `to'.
Copy the multibyte state if `state' is true. */
static void line_copy P_((struct line *from, struct line *to, bool state));
static void line_copy P_((struct line *from, struct line *to, int state));
static void
line_copy(from, to, state)
struct line *from;
struct line *to;
bool state;
int state;
{
/* Remove the inactive portion in the destination buffer. */
to->alloc += to->active - to->text;
@@ -457,12 +457,12 @@ line_copy(from, to, state)
/* Append the contents of the line `from' to the line `to'.
Copy the multibyte state if `state' is true. */
static void line_append P_((struct line *from, struct line *to, bool state));
static void line_append P_((struct line *from, struct line *to, int state));
static void
line_append(from, to, state)
struct line *from;
struct line *to;
bool state;
int state;
{
str_append(to, "\n", 1);
str_append(to, from->active, from->length);
@@ -476,12 +476,12 @@ line_append(from, to, state)
/* Exchange two "struct line" buffers.
Copy the multibyte state if `state' is true. */
static void line_exchange P_((struct line *a, struct line *b, bool state));
static void line_exchange P_((struct line *a, struct line *b, int state));
static void
line_exchange(a, b, state)
struct line *a;
struct line *b;
bool state;
int state;
{
struct line t;
@@ -553,12 +553,12 @@ flush_output(fp)
ck_fflush(fp);
}
static void output_line P_((const char *, size_t, bool, struct output *));
static void output_line P_((const char *, size_t, int, struct output *));
static void
output_line(text, length, nl, outf)
const char *text;
size_t length;
bool nl;
int nl;
struct output *outf;
{
if (!text)
@@ -804,12 +804,12 @@ reset_addresses(vec)
/* Read in the next line of input, and store it in the pattern space.
Return zero if there is nothing left to input. */
static bool read_pattern_space P_((struct input *, struct vector *, bool));
static bool read_pattern_space P_((struct input *, struct vector *, int));
static bool
read_pattern_space(input, the_program, append)
struct input *input;
struct vector *the_program;
bool append;
int append;
{
if (append_head) /* redundant test to optimize for common case */
dump_append_queue();
+3 -3
View File
@@ -125,7 +125,7 @@ static void
register_open_file (fp, name, temp)
FILE *fp;
const char *name;
bool temp;
int temp;
{
struct open_file *p;
for (p=open_files; p; p=p->link)
@@ -152,7 +152,7 @@ FILE *
ck_fopen(name, mode, fail)
const char *name;
const char *mode;
bool fail;
int fail;
{
FILE *fp;
@@ -175,7 +175,7 @@ ck_fdopen(fd, name, mode, fail)
int fd;
const char *name;
const char *mode;
bool fail;
int fail;
{
FILE *fp;
+2 -2
View File
@@ -22,8 +22,8 @@
void panic P_((const char *str, ...));
FILE *ck_fopen P_((const char *name, const char *mode, bool fail));
FILE *ck_fdopen P_((int fd, const char *name, const char *mode, bool fail));
FILE *ck_fopen P_((const char *name, const char *mode, int fail));
FILE *ck_fdopen P_((int fd, const char *name, const char *mode, int fail));
void ck_fwrite P_((const VOID *ptr, size_t size, size_t nmemb, FILE *stream));
size_t ck_fread P_((VOID *ptr, size_t size, size_t nmemb, FILE *stream));
void ck_fflush P_((FILE *stream));