Skip to content

Commit

Permalink
* directives.c: Fix typos.
Browse files Browse the repository at this point in the history
	* include/line-map.h: Fix typos.
	* line-map.c: Fix typos.
	* macro.c: Fix typos.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187966 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jsm28 committed May 29, 2012
1 parent 0ab4813 commit e8aa7ea
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
7 changes: 7 additions & 0 deletions libcpp/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2012-05-29 Joseph Myers <joseph@codesourcery.com>

* directives.c: Fix typos.
* include/line-map.h: Fix typos.
* line-map.c: Fix typos.
* macro.c: Fix typos.

2012-05-25 Dodji Seketeli <dodji@redhat.com>

PR bootstrap/53459
Expand Down
2 changes: 1 addition & 1 deletion libcpp/directives.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ _cpp_handle_directive (cpp_reader *pfile, int indented)
We exclude the -fdirectives-only case because macro expansion
has not been performed yet, and block comments can cause spaces
to preceed the directive. */
to precede the directive. */
if (CPP_OPTION (pfile, preprocessed)
&& !CPP_OPTION (pfile, directives_only)
&& (indented || !(dir->flags & IN_I)))
Expand Down
6 changes: 3 additions & 3 deletions libcpp/include/line-map.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ struct GTY(()) line_map_macro {
Note that a virtual location is a location returned by
linemap_add_macro_token. It encodes the relevant locations (x,y
pairs) of that token accross the macro expansions from which it
pairs) of that token across the macro expansions from which it
(the token) might come from.
In the example above x1 (for token "+") is going to be the same
Expand Down Expand Up @@ -370,7 +370,7 @@ struct GTY(()) line_maps {
#define LINEMAPS_LAST_ALLOCATED_ORDINARY_MAP(SET) \
LINEMAPS_LAST_ALLOCATED_MAP(SET, false)

/* Returns a pointer to the begining of the region where macro maps
/* Returns a pointer to the beginning of the region where macro maps
are allcoated. */
#define LINEMAPS_MACRO_MAPS(SET) \
LINEMAPS_MAPS(SET, true)
Expand Down Expand Up @@ -450,7 +450,7 @@ extern const struct line_map *linemap_add
extern const struct line_map *linemap_lookup
(struct line_maps *, source_location);

/* Returns TRUE if the line table set tracks token locations accross
/* Returns TRUE if the line table set tracks token locations across
macro expansion, FALSE otherwise. */
bool linemap_tracks_macro_expansion_locs_p (struct line_maps *);

Expand Down
4 changes: 2 additions & 2 deletions libcpp/line-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ linemap_add (struct line_maps *set, enum lc_reason reason,
return map;
}

/* Returns TRUE if the line table set tracks token locations accross
/* Returns TRUE if the line table set tracks token locations across
macro expansion, FALSE otherwise. */

bool
Expand Down Expand Up @@ -1118,7 +1118,7 @@ linemap_unwind_toward_expansion (struct line_maps *set,
of a macro M and if its spelling location is reserved (e.g, a
location for a built-in token), then this function unwinds (using
linemap_unwind_toward_expansion) the location until a location that
is not reserved and is not in a sytem header is reached. In other
is not reserved and is not in a system header is reached. In other
words, this unwinds the reserved location until a location that is
in real source code is reached.
Expand Down
14 changes: 7 additions & 7 deletions libcpp/macro.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct macro_arg_token_iter
/* A pointer to the current token pointed to by the iterator. */
const cpp_token **token_ptr;
/* A pointer to the "full" location of the current token. If
-ftrack-macro-expansion is used this location tracks loci accross
-ftrack-macro-expansion is used this location tracks loci across
macro expansion. */
const source_location *location_ptr;
#ifdef ENABLE_CHECKING
Expand Down Expand Up @@ -1221,7 +1221,7 @@ delete_macro_args (_cpp_buff *buff, unsigned num_args)

/* Set the INDEXth token of the macro argument ARG. TOKEN is the token
to set, LOCATION is its virtual location. "Virtual" location means
the location that encodes loci accross macro expansion. Otherwise
the location that encodes loci across macro expansion. Otherwise
it has to be TOKEN->SRC_LOC. KIND is the kind of tokens the
argument ARG is supposed to contain. Note that ARG must be
tailored so that it has enough room to contain INDEX + 1 numbers of
Expand Down Expand Up @@ -1346,7 +1346,7 @@ macro_arg_token_iter_init (macro_arg_token_iter *iter,

/* Move the iterator one token forward. Note that if IT was
initialized on an argument that has a stringified token, moving it
foward doesn't make sense as a stringified token is essentially one
forward doesn't make sense as a stringified token is essentially one
string. */
static void
macro_arg_token_iter_forward (macro_arg_token_iter *it)
Expand Down Expand Up @@ -1965,7 +1965,7 @@ tokens_buff_remove_last_token (_cpp_buff *tokens_buff)
means -ftrack-macro-expansion is effect; it then points to where to
insert the virtual location of TOKEN. TOKEN is the token to
insert. VIRT_LOC is the virtual location of the token, i.e, the
location possibly encoding its locus accross macro expansion. If
location possibly encoding its locus across macro expansion. If
TOKEN is an argument of a function-like macro (inside a macro
replacement list), PARM_DEF_LOC is the spelling location of the
macro parameter that TOKEN is replacing, in the replacement list of
Expand Down Expand Up @@ -2010,7 +2010,7 @@ tokens_buff_put_token_to (const cpp_token **dest,
reaches BUFFER's size; it aborts in that situation.
TOKEN is the token to append. VIRT_LOC is the virtual location of
the token, i.e, the location possibly encoding its locus accross
the token, i.e, the location possibly encoding its locus across
macro expansion. If TOKEN is an argument of a function-like macro
(inside a macro replacement list), PARM_DEF_LOC is the location of
the macro parameter that TOKEN is replacing. If TOKEN doesn't come
Expand Down Expand Up @@ -2226,7 +2226,7 @@ _cpp_pop_context (cpp_reader *pfile)
if (macro != NULL
/* Several contiguous macro expansion contexts can be
associated to the same macro; that means it's the same
macro expansion that spans accross all these (sub)
macro expansion that spans across all these (sub)
contexts. So we should re-enable an expansion-disabled
macro only when we are sure we are really out of that
macro expansion. */
Expand Down Expand Up @@ -2264,7 +2264,7 @@ reached_end_of_context (cpp_context *context)
/* Consume the next token contained in the current context of PFILE,
and return it in *TOKEN. It's "full location" is returned in
*LOCATION. If -ftrack-macro-location is in effeect, fFull location"
means the location encoding the locus of the token accross macro
means the location encoding the locus of the token across macro
expansion; otherwise it's just is the "normal" location of the
token which (*TOKEN)->src_loc. */
static inline void
Expand Down

0 comments on commit e8aa7ea

Please sign in to comment.