~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
2547
2547
 
2548
2548
/* for gnu readline */
2549
2549
 
2550
 
#ifndef HAVE_INDEX
2551
 
extern "C" {
2552
 
  extern char *index(const char *,int c),*rindex(const char *,int);
2553
 
 
2554
 
  char *index(const char *s,int c)
2555
 
  {
2556
 
    for (;;)
2557
 
    {
2558
 
      if (*s == (char) c) return (char*) s;
2559
 
      if (!*s++) return NULL;
2560
 
    }
2561
 
  }
2562
 
 
2563
 
  char *rindex(const char *s,int c)
2564
 
  {
2565
 
    register char *t;
2566
 
 
2567
 
    t = NULL;
2568
 
    do if (*s == (char) c) t = (char*) s; while (*s++);
2569
 
    return (char*) t;
2570
 
  }
2571
 
}
2572
 
#endif
2573
 
 
2574
2550
 
2575
2551
static int reconnect(void)
2576
2552
{