/[bison]/bison/src/location.h
ViewVC logotype

Diff of /bison/src/location.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by akim, Mon Nov 4 08:28:01 2002 UTC revision 1.6 by akim, Tue Nov 12 08:30:47 2002 UTC
# Line 53  do {                                           \ Line 53  do {                                           \
53     Warning: it uses quotearg's slot 3.  */     Warning: it uses quotearg's slot 3.  */
54  # define LOCATION_PRINT(Out, Loc)                                       \  # define LOCATION_PRINT(Out, Loc)                                       \
55  do {                                                                    \  do {                                                                    \
56    fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style,    \    fprintf (stderr, "%s:", quotearg_n_style (3, escape_quoting_style,    \
57                                              (Loc).file));               \                                              (Loc).file));               \
58    if ((Loc).first_line != (Loc).last_line)                              \    if ((Loc).first_line)                                                 \
59      fprintf (Out, "%d.%d-%d.%d",                                        \      {                                                                   \
60               (Loc).first_line, (Loc).first_column,                      \        if ((Loc).first_line != (Loc).last_line)                          \
61               (Loc).last_line, (Loc).last_column - 1);                   \          fprintf (Out, "%d.%d-%d.%d",                                    \
62    else if ((Loc).first_column < (Loc).last_column - 1)                  \                   (Loc).first_line, (Loc).first_column,                  \
63      fprintf (Out, "%d.%d-%d", (Loc).first_line,                         \                   (Loc).last_line, (Loc).last_column - 1);               \
64               (Loc).first_column, (Loc).last_column - 1);                \        else if ((Loc).first_column < (Loc).last_column - 1)              \
65    else                                                                  \          fprintf (Out, "%d.%d-%d", (Loc).first_line,                     \
66      fprintf (Out, "%d.%d", (Loc).first_line, (Loc).first_column);       \                   (Loc).first_column, (Loc).last_column - 1);            \
67          else                                                              \
68            fprintf (Out, "%d.%d", (Loc).first_line, (Loc).first_column);   \
69      }                                                                     \
70  } while (0)  } while (0)
71    
72    
   
73  extern location_t empty_location;  extern location_t empty_location;
74    
75  #endif /* !LOCATION_H_ */  #endif /* !LOCATION_H_ */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26