IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2007, 12:27:44 PM (19 years ago)
Author:
eugene
Message:

support the BSD libedit as well as readlin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/CommandOps.c

    r7917 r14449  
    11# include "opihi.h"
     2
     3// if the user has installed the libedit version of readline, we need to modify a couple symbols:
     4# ifndef RL_READLINE_VERSION
     5# define rl_completion_matches(A,B) completion_matches(A,B)
     6# endif
    27
    38static Command  *commands;
     
    118123  matches = (char **) NULL;
    119124 
    120   if (start == 0)
     125  if (start == 0) {
    121126    matches = rl_completion_matches (text, command_generator);
     127  }
    122128
    123129  return (matches);
Note: See TracChangeset for help on using the changeset viewer.