"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/hist_erasedups.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_erasedups.c  (readline-7.0-rc1):hist_erasedups.c  (readline-7.0-rc2)
skipping to change at line 41 skipping to change at line 41
#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;
static void static void
usage() usage()
{ {
fprintf (stderr, "hist_erasedups: usage: hist_erasedups [-t] [filename]\n"); fprintf (stderr, "hist_erasedups: usage: hist_erasedups [-t] [filename]\n");
exit (2); exit (2);
} }
int int
main (argc, argv) main (argc, argv)
int argc; int argc;
 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