#define GTY(x) /* nothing */
#endif
+/* Both gcc and emacs number source *lines* starting at 1, but
+ they have differing conventions for *columns*.
+
+ GCC uses a 1-based convention for source columns,
+ whereas Emacs's M-x column-number-mode uses a 0-based convention.
+
+ For example, an error in the initial, left-hand
+ column of source line 3 is reported by GCC as:
+
+ some-file.c:3:1: error: ...etc...
+
+ On navigating to the location of that error in Emacs
+ (e.g. via "next-error"),
+ the locus is reported in the Mode Line
+ (assuming M-x column-number-mode) as:
+
+ some-file.c 10% (3, 0)
+
+ i.e. "3:1:" in GCC corresponds to "(3, 0)" in Emacs. */
+
+/* The type of line numbers. */
+typedef unsigned int linenum_type;
+
/* Reason for creating a new line map with linemap_add. LC_ENTER is
when including a new file, e.g. a #include directive in C.
LC_LEAVE is when reaching a file's end. LC_RENAME is when a file
/* FIXME: add support for stringize and paste. */
};
-/* The type of line numbers. */
-typedef unsigned int linenum_type;
-
/* The typedef "source_location" is a key within the location database,
identifying a source location or macro expansion, along with range
information, and (optionally) a pointer for use by gcc.
bool sysp;
} expanded_location;
-/* Both gcc and emacs number source *lines* starting at 1, but
- they have differing conventions for *columns*.
-
- GCC uses a 1-based convention for source columns,
- whereas Emacs's M-x column-number-mode uses a 0-based convention.
-
- For example, an error in the initial, left-hand
- column of source line 3 is reported by GCC as:
-
- some-file.c:3:1: error: ...etc...
-
- On navigating to the location of that error in Emacs
- (e.g. via "next-error"),
- the locus is reported in the Mode Line
- (assuming M-x column-number-mode) as:
-
- some-file.c 10% (3, 0)
-
- i.e. "3:1:" in GCC corresponds to "(3, 0)" in Emacs. */
-
/* A location within a rich_location: a caret&range, with
the caret potentially flagged for display. */