aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-11-07 01:18:45 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-11-07 01:18:45 +0000
commitef99799a42e1d93d6025967df807ad442e29304d (patch)
tree24d10568abd3980362643836b57237842707eeb5 /gas/listing.c
parent4efc3e0524fbc2814d149c01928f51f4e22ab797 (diff)
downloadgdb-ef99799a42e1d93d6025967df807ad442e29304d.zip
gdb-ef99799a42e1d93d6025967df807ad442e29304d.tar.gz
gdb-ef99799a42e1d93d6025967df807ad442e29304d.tar.bz2
2000-11-06 Kazu Hirata <kazu@hxi.com>
* as.c: Fix formatting. * dwarf2dbg.c: Likewise. * itbl-ops.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * messages.c: Likewise. * read.c: Likewise. * subsegs.c: Likewise. * subsegs.h: Likewise. * write.c: Likewise.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c32
1 files changed, 14 insertions, 18 deletions
diff --git a/gas/listing.c b/gas/listing.c
index 9855228..7fdb67d 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -119,20 +119,17 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#endif
/* This structure remembers which .s were used. */
-typedef struct file_info_struct
-{
+typedef struct file_info_struct {
struct file_info_struct * next;
char * filename;
long pos;
unsigned int linenum;
int at_end;
-}
-file_info_type;
+} file_info_type;
/* This structure rememebrs which line from which file goes into which
frag. */
-struct list_info_struct
-{
+struct list_info_struct {
/* Frag which this line of source is nearest to. */
fragS *frag;
@@ -157,16 +154,15 @@ struct list_info_struct
/* Pointer to any error message associated with this line. */
char *message;
- enum
- {
- EDICT_NONE,
- EDICT_SBTTL,
- EDICT_TITLE,
- EDICT_NOLIST,
- EDICT_LIST,
- EDICT_NOLIST_NEXT,
- EDICT_EJECT
- } edict;
+ enum {
+ EDICT_NONE,
+ EDICT_SBTTL,
+ EDICT_TITLE,
+ EDICT_NOLIST,
+ EDICT_LIST,
+ EDICT_NOLIST_NEXT,
+ EDICT_EJECT
+ } edict;
char *edict_arg;
/* Nonzero if this line is to be omitted because it contains
@@ -194,7 +190,7 @@ static int paper_height = 60;
extern int listing;
/* File to output listings to. */
-static FILE * list_file;
+static FILE *list_file;
/* This static array is used to keep the text of data to be printed
before the start of the line. */
@@ -209,7 +205,7 @@ static char *data_buffer;
/* Prototypes. */
static void listing_message PARAMS ((const char *name, const char *message));
-static file_info_type * file_info PARAMS ((const char *file_name));
+static file_info_type *file_info PARAMS ((const char *file_name));
static void new_frag PARAMS ((void));
static char *buffer_line PARAMS ((file_info_type *file,
char *line, unsigned int size));