mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Update for running gcc 3.x (mainly on HPUX)
Portability fixes for HPUX Rename of CHECK_LOCK to IS_FREE_LOCK Apply lower_case_table_names also to databases Cleanup of describe code Don't allow \ in database names
This commit is contained in:
@ -1269,12 +1269,10 @@ You can turn off this feature to get a quicker startup with -A\n\n");
|
||||
/* for gnu readline */
|
||||
|
||||
#ifndef HAVE_INDEX
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern char *index(const char *,pchar c),*rindex(const char *,pchar);
|
||||
extern char *index(const char *,int c),*rindex(const char *,int);
|
||||
|
||||
char *index(const char *s,pchar c)
|
||||
char *index(const char *s,int c)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
@ -1283,7 +1281,7 @@ char *index(const char *s,pchar c)
|
||||
}
|
||||
}
|
||||
|
||||
char *rindex(const char *s,pchar c)
|
||||
char *rindex(const char *s,int c)
|
||||
{
|
||||
reg3 char *t;
|
||||
|
||||
@ -1291,10 +1289,8 @@ char *rindex(const char *s,pchar c)
|
||||
do if (*s == (char) c) t = (char*) s; while (*s++);
|
||||
return (char*) t;
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif /* HAVE_READLINE */
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user