diff options
author | monty@mysql.com <> | 2004-03-12 01:10:22 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2004-03-12 01:10:22 +0200 |
commit | e27960a44e393ac67d037379f340db75a350495e (patch) | |
tree | 8427a74265a1dc0dc71464f4add7541489713f46 /extra | |
parent | 1c0d5ad25c1f530093586e7624ae3603ff719061 (diff) | |
download | mariadb-git-e27960a44e393ac67d037379f340db75a350495e.tar.gz |
Ensure that install_test_db.sh script works with both 'make install' and 'make_binary_distribution' layouts
Abort if we can't allocate memory for table cache
Fix bug with multi-update-tables and BDB tables.
Diffstat (limited to 'extra')
-rw-r--r-- | extra/replace.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/extra/replace.c b/extra/replace.c index 792684918ea..422cfdbac36 100644 --- a/extra/replace.c +++ b/extra/replace.c @@ -14,18 +14,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* Replace strings in textfile +/* + Replace strings in textfile + This program replaces strings in files or from stdin to stdout. It accepts a list of from-string/to-string pairs and replaces each occurrence of a from-string with the corresponding to-string. The first occurrence of a found string is matched. If there is more than one possibility for the string to replace, longer matches are preferred before shorter matches. - This program replace strings in a file or on stdin/stdout. - It accepts a list of from-strings and to-strings and replaces all - occurents of from-strings to to-strings. - The first occurents of a found string is matched. If there are more than - one possibly replace the longer from-string is replaced. + Special characters in from string: \^ Match start of line. \$ Match end of line. @@ -956,9 +954,11 @@ static void free_buffer() } -/* Fill the buffer retaining the last n bytes at the beginning of the - newly filled buffer (for backward context). Returns the number of new - bytes read from disk. */ +/* + Fill the buffer retaining the last n bytes at the beginning of the + newly filled buffer (for backward context). Returns the number of new + bytes read from disk. +*/ static int fill_buffer_retaining(fd,n) File fd; |