diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-05-11 20:02:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-05-11 20:02:42 +0000 |
commit | 34b47c3828ca8e6d9dcddb2886744fb470e4276c (patch) | |
tree | c6e8881cf59afd20bc6090bb7a2416c0ec1fd1cd /sim/common/sim-io.c | |
parent | 1f84b6196ba7218766be02547881a5c2165be3ae (diff) | |
download | gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.zip gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.gz gdb-34b47c3828ca8e6d9dcddb2886744fb470e4276c.tar.bz2 |
sim: fix func call style (space before paren)
Committed this as obvious:
-foo(...);
+foo (...);
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/common/sim-io.c')
-rw-r--r-- | sim/common/sim-io.c | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/sim/common/sim-io.c b/sim/common/sim-io.c index 250f37d..38e2d82 100644 --- a/sim/common/sim-io.c +++ b/sim/common/sim-io.c @@ -45,55 +45,55 @@ static int poll_quit_count = POLL_QUIT_INTERVAL; int -sim_io_init(SIM_DESC sd) +sim_io_init (SIM_DESC sd) { return STATE_CALLBACK (sd)->init (STATE_CALLBACK (sd)); } int -sim_io_shutdown(SIM_DESC sd) +sim_io_shutdown (SIM_DESC sd) { return STATE_CALLBACK (sd)->shutdown (STATE_CALLBACK (sd)); } int -sim_io_unlink(SIM_DESC sd, - const char *f1) +sim_io_unlink (SIM_DESC sd, + const char *f1) { return STATE_CALLBACK (sd)->unlink (STATE_CALLBACK (sd), f1); } long -sim_io_time(SIM_DESC sd, - long *t) +sim_io_time (SIM_DESC sd, + long *t) { return STATE_CALLBACK (sd)->time (STATE_CALLBACK (sd), t); } int -sim_io_system(SIM_DESC sd, const char *s) +sim_io_system (SIM_DESC sd, const char *s) { return STATE_CALLBACK (sd)->system (STATE_CALLBACK (sd), s); } int -sim_io_rename(SIM_DESC sd, - const char *f1, - const char *f2) +sim_io_rename (SIM_DESC sd, + const char *f1, + const char *f2) { return STATE_CALLBACK (sd)->rename (STATE_CALLBACK (sd), f1, f2); } int -sim_io_write_stdout(SIM_DESC sd, - const char *buf, - int len) +sim_io_write_stdout (SIM_DESC sd, + const char *buf, + int len) { switch (CURRENT_STDIO) { case DO_USE_STDIO: @@ -111,7 +111,7 @@ sim_io_write_stdout(SIM_DESC sd, void -sim_io_flush_stdout(SIM_DESC sd) +sim_io_flush_stdout (SIM_DESC sd) { switch (CURRENT_STDIO) { case DO_USE_STDIO: @@ -127,9 +127,9 @@ sim_io_flush_stdout(SIM_DESC sd) int -sim_io_write_stderr(SIM_DESC sd, - const char *buf, - int len) +sim_io_write_stderr (SIM_DESC sd, + const char *buf, + int len) { switch (CURRENT_STDIO) { case DO_USE_STDIO: @@ -147,7 +147,7 @@ sim_io_write_stderr(SIM_DESC sd, void -sim_io_flush_stderr(SIM_DESC sd) +sim_io_flush_stderr (SIM_DESC sd) { switch (CURRENT_STDIO) { case DO_USE_STDIO: @@ -163,19 +163,19 @@ sim_io_flush_stderr(SIM_DESC sd) int -sim_io_write(SIM_DESC sd, - int fd, - const char *buf, - int len) +sim_io_write (SIM_DESC sd, + int fd, + const char *buf, + int len) { return STATE_CALLBACK (sd)->write (STATE_CALLBACK (sd), fd, buf, len); } int -sim_io_read_stdin(SIM_DESC sd, - char *buf, - int len) +sim_io_read_stdin (SIM_DESC sd, + char *buf, + int len) { switch (CURRENT_STDIO) { case DO_USE_STDIO: @@ -193,123 +193,123 @@ sim_io_read_stdin(SIM_DESC sd, int -sim_io_read(SIM_DESC sd, int fd, - char *buf, - int len) +sim_io_read (SIM_DESC sd, int fd, + char *buf, + int len) { return STATE_CALLBACK (sd)->read (STATE_CALLBACK (sd), fd, buf, len); } int -sim_io_open(SIM_DESC sd, - const char *name, - int flags) +sim_io_open (SIM_DESC sd, + const char *name, + int flags) { return STATE_CALLBACK (sd)->open (STATE_CALLBACK (sd), name, flags); } int -sim_io_lseek(SIM_DESC sd, - int fd, - long off, - int way) +sim_io_lseek (SIM_DESC sd, + int fd, + long off, + int way) { return STATE_CALLBACK (sd)->lseek (STATE_CALLBACK (sd), fd, off, way); } int -sim_io_isatty(SIM_DESC sd, - int fd) +sim_io_isatty (SIM_DESC sd, + int fd) { return STATE_CALLBACK (sd)->isatty (STATE_CALLBACK (sd), fd); } int -sim_io_get_errno(SIM_DESC sd) +sim_io_get_errno (SIM_DESC sd) { return STATE_CALLBACK (sd)->get_errno (STATE_CALLBACK (sd)); } int -sim_io_close(SIM_DESC sd, - int fd) +sim_io_close (SIM_DESC sd, + int fd) { return STATE_CALLBACK (sd)->close (STATE_CALLBACK (sd), fd); } void -sim_io_printf(SIM_DESC sd, - const char *fmt, - ...) +sim_io_printf (SIM_DESC sd, + const char *fmt, + ...) { va_list ap; - va_start(ap, fmt); + va_start (ap, fmt); STATE_CALLBACK (sd)->vprintf_filtered (STATE_CALLBACK (sd), fmt, ap); - va_end(ap); + va_end (ap); } void -sim_io_vprintf(SIM_DESC sd, - const char *fmt, - va_list ap) +sim_io_vprintf (SIM_DESC sd, + const char *fmt, + va_list ap) { STATE_CALLBACK (sd)->vprintf_filtered (STATE_CALLBACK (sd), fmt, ap); } void -sim_io_eprintf(SIM_DESC sd, - const char *fmt, - ...) +sim_io_eprintf (SIM_DESC sd, + const char *fmt, + ...) { va_list ap; - va_start(ap, fmt); + va_start (ap, fmt); STATE_CALLBACK (sd)->evprintf_filtered (STATE_CALLBACK (sd), fmt, ap); - va_end(ap); + va_end (ap); } void -sim_io_evprintf(SIM_DESC sd, - const char *fmt, - va_list ap) +sim_io_evprintf (SIM_DESC sd, + const char *fmt, + va_list ap) { STATE_CALLBACK (sd)->evprintf_filtered (STATE_CALLBACK (sd), fmt, ap); } void -sim_io_error(SIM_DESC sd, - const char *fmt, - ...) +sim_io_error (SIM_DESC sd, + const char *fmt, + ...) { if (sd == NULL || STATE_CALLBACK (sd) == NULL) { va_list ap; - va_start(ap, fmt); + va_start (ap, fmt); vfprintf (stderr, fmt, ap); - va_end(ap); + va_end (ap); fprintf (stderr, "\n"); abort (); } else { va_list ap; - va_start(ap, fmt); + va_start (ap, fmt); STATE_CALLBACK (sd)->evprintf_filtered (STATE_CALLBACK (sd), fmt, ap); - va_end(ap); + va_end (ap); STATE_CALLBACK (sd)->error (STATE_CALLBACK (sd), ""); } } void -sim_io_poll_quit(SIM_DESC sd) +sim_io_poll_quit (SIM_DESC sd) { if (STATE_CALLBACK (sd)->poll_quit != NULL && poll_quit_count-- < 0) { |