mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
valarray-inst.cc, [...]: Fix comment typos.
* src/valarray-inst.cc, include/ext/atomicity.h, include/ext/concurrence.h, include/bits/basic_string.h, include/bits/fstream.tcc, include/ext/vstring.h: Fix comment typos. From-SVN: r129300
This commit is contained in:
committed by
Jonathan Wakely
parent
ef0c87b6f8
commit
7da496b06e
@@ -1,3 +1,9 @@
|
||||
2007-10-14 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* src/valarray-inst.cc, include/ext/atomicity.h,
|
||||
include/ext/concurrence.h, include/bits/basic_string.h,
|
||||
include/bits/fstream.tcc, include/ext/vstring.h: Fix comment typos.
|
||||
|
||||
2007-10-14 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* include/tr1_impl/boost_shared_ptr.h: (__weak_ptr::lock()): Add
|
||||
|
||||
@@ -1672,7 +1672,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find position of a character of C substring.
|
||||
* @param s String containing characters to locate.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search from.
|
||||
* @param n Number of characters from s to search for.
|
||||
* @return Index of first occurrence.
|
||||
*
|
||||
@@ -1733,7 +1733,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find last position of a character of C substring.
|
||||
* @param s C string containing characters to locate.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @param pos Index of character to search back from.
|
||||
* @param n Number of characters from s to search for.
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
@@ -1764,7 +1764,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find last position of a character.
|
||||
* @param c Character to locate.
|
||||
* @param pos Index of character to search back from (default 0).
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for @a c within this string.
|
||||
@@ -1794,7 +1794,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find position of a character not in C substring.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search from.
|
||||
* @param n Number of characters from s to consider.
|
||||
* @return Index of first occurrence.
|
||||
*
|
||||
@@ -1839,8 +1839,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find last position of a character not in string.
|
||||
* @param str String containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in @a str within this string. If found, returns the index
|
||||
@@ -1853,9 +1853,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find last position of a character not in C substring.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search back from.
|
||||
* @param n Number of characters from s to consider.
|
||||
* @return Index of first occurrence.
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in the first @a n characters of @a s within this string.
|
||||
@@ -1866,10 +1866,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
find_last_not_of(const _CharT* __s, size_type __pos,
|
||||
size_type __n) const;
|
||||
/**
|
||||
* @brief Find position of a character not in C string.
|
||||
* @brief Find last position of a character not in C string.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in @a s within this string. If found, returns the index
|
||||
@@ -1885,8 +1885,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
/**
|
||||
* @brief Find last position of a different character.
|
||||
* @param c Character to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character other than
|
||||
* @a c within this string. If found, returns the index where it was
|
||||
|
||||
@@ -194,7 +194,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
const bool __testin = _M_mode & ios_base::in;
|
||||
if (__testin && !_M_writing)
|
||||
{
|
||||
// Check for pback madness, and if so swich back to the
|
||||
// Check for pback madness, and if so switch back to the
|
||||
// normal buffers and jet outta here before expensive
|
||||
// fileops happen...
|
||||
_M_destroy_pback();
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
|
||||
// Functions for portable atomic access.
|
||||
// To abstract locking primatives across all thread policies, use:
|
||||
// To abstract locking primitives across all thread policies, use:
|
||||
// __exchange_and_add_dispatch
|
||||
// __atomic_add_dispatch
|
||||
#ifdef _GLIBCXX_ATOMIC_BUILTINS
|
||||
|
||||
@@ -46,7 +46,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
// Available locking policies:
|
||||
// _S_single single-threaded code that doesn't need to be locked.
|
||||
// _S_mutex multi-threaded code that requires additional support
|
||||
// from gthr.h or abstraction layers in concurrance.h.
|
||||
// from gthr.h or abstraction layers in concurrence.h.
|
||||
// _S_atomic multi-threaded code using atomic operations.
|
||||
enum _Lock_policy { _S_single, _S_mutex, _S_atomic };
|
||||
|
||||
|
||||
@@ -1407,7 +1407,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find position of a character of C substring.
|
||||
* @param s String containing characters to locate.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search from.
|
||||
* @param n Number of characters from s to search for.
|
||||
* @return Index of first occurrence.
|
||||
*
|
||||
@@ -1468,7 +1468,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find last position of a character of C substring.
|
||||
* @param s C string containing characters to locate.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @param pos Index of character to search back from.
|
||||
* @param n Number of characters from s to search for.
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
@@ -1499,7 +1499,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find last position of a character.
|
||||
* @param c Character to locate.
|
||||
* @param pos Index of character to search back from (default 0).
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for @a c within this string.
|
||||
@@ -1529,7 +1529,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find position of a character not in C substring.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search from.
|
||||
* @param n Number of characters from s to consider.
|
||||
* @return Index of first occurrence.
|
||||
*
|
||||
@@ -1574,8 +1574,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find last position of a character not in string.
|
||||
* @param str String containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in @a str within this string. If found, returns the index
|
||||
@@ -1589,9 +1589,9 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find last position of a character not in C substring.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @param pos Index of character to search back from.
|
||||
* @param n Number of characters from s to consider.
|
||||
* @return Index of first occurrence.
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in the first @a n characters of @a s within this string.
|
||||
@@ -1602,10 +1602,10 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
find_last_not_of(const _CharT* __s, size_type __pos,
|
||||
size_type __n) const;
|
||||
/**
|
||||
* @brief Find position of a character not in C string.
|
||||
* @brief Find last position of a character not in C string.
|
||||
* @param s C string containing characters to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character not
|
||||
* contained in @a s within this string. If found, returns the index
|
||||
@@ -1621,8 +1621,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
|
||||
/**
|
||||
* @brief Find last position of a different character.
|
||||
* @param c Character to avoid.
|
||||
* @param pos Index of character to search from (default 0).
|
||||
* @return Index of first occurrence.
|
||||
* @param pos Index of character to search back from (default end).
|
||||
* @return Index of last occurrence.
|
||||
*
|
||||
* Starting from @a pos, searches backward for a character other than
|
||||
* @a c within this string. If found, returns the index where it was
|
||||
|
||||
@@ -68,7 +68,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
__gslice_to_index(size_t __o, const valarray<size_t>& __l,
|
||||
const valarray<size_t>& __s, valarray<size_t>& __i)
|
||||
{
|
||||
// There are as much as dimensions as there are strides.
|
||||
// There are as many dimensions as there are strides.
|
||||
size_t __n = __l.size();
|
||||
|
||||
// Get a buffer to hold current multi-index as we go through
|
||||
|
||||
Reference in New Issue
Block a user