"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/hist_purgecmd.c" between
readline-7.0-rc1.tar.gz and readline-7.0-rc2.tar.gz

About: GNU Readline library - get a line from a user with editing. Release candidate.

hist_purgecmd.c  (readline-7.0-rc1):hist_purgecmd.c  (readline-7.0-rc2)
skipping to change at line 44 skipping to change at line 44
#else #else
# include <readline/history.h> # include <readline/history.h>
#endif #endif
#include <string.h> #include <string.h>
#define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0) #define STREQ(a, b) ((a)[0] == (b)[0] && strcmp(a, b) == 0)
#define STREQN(a, b, n) ((n == 0) ? (1) \ #define STREQN(a, b, n) ((n == 0) ? (1) \
: ((a)[0] == (b)[0] && strncmp(a, b, n) == 0)) : ((a)[0] == (b)[0] && strncmp(a, b, n) == 0))
extern int history_offset;
#define PURGE_REGEXP 0x01 #define PURGE_REGEXP 0x01
static void static void
usage() usage()
{ {
fprintf (stderr, "hist_purgecmd: usage: hist_purgecmd [-r] [-t] [-f filename] command-spec\n"); fprintf (stderr, "hist_purgecmd: usage: hist_purgecmd [-r] [-t] [-f filename] command-spec\n");
exit (2); exit (2);
} }
int int
 End of changes. 1 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS