"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/search.h" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

search.h  (tnftp-20151004):search.h  (tnftp-20200705)
/* $NetBSD: search.h,v 1.2 2005/05/11 01:17:39 lukem Exp $ */ /* $NetBSD: search.h,v 1.4 2020/07/04 13:43:21 lukem Exp $ */
/* from NetBSD: search.h,v 1.8 2003/10/18 23:27:36 christos Exp */ /* from NetBSD: search.h,v 1.14 2016/05/09 21:46:56 christos Exp *
/
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* This code is derived from software contributed to Berkeley by * This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University. * Christos Zoulas of Cornell University.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
skipping to change at line 44 skipping to change at line 44
* *
* @(#)search.h 8.1 (Berkeley) 6/4/93 * @(#)search.h 8.1 (Berkeley) 6/4/93
*/ */
/* /*
* el.search.h: Line and history searching utilities * el.search.h: Line and history searching utilities
*/ */
#ifndef _h_el_search #ifndef _h_el_search
#define _h_el_search #define _h_el_search
#include "histedit.h"
typedef struct el_search_t { typedef struct el_search_t {
char *patbuf; /* The pattern buffer */ wchar_t *patbuf; /* The pattern buffer */
size_t patlen; /* Length of the pattern buffer */ size_t patlen; /* Length of the pattern buffer */
int patdir; /* Direction of the last search */ int patdir; /* Direction of the last search */
int chadir; /* Character search direction */ int chadir; /* Character search direction */
char chacha; /* Character we are looking for */ wchar_t chacha; /* Character we are looking for */
char chatflg; /* 0 if f, 1 if t */ char chatflg; /* 0 if f, 1 if t */
} el_search_t; } el_search_t;
protected int el_match(const char *, const char *); libedit_private int el_match(const wchar_t *, const wchar_t *);
protected int search_init(EditLine *); libedit_private int search_init(EditLine *);
protected void search_end(EditLine *); libedit_private void search_end(EditLine *);
protected int c_hmatch(EditLine *, const char *); libedit_private int c_hmatch(EditLine *, const wchar_t *);
protected void c_setpat(EditLine *); libedit_private void c_setpat(EditLine *);
protected el_action_t ce_inc_search(EditLine *, int); libedit_private el_action_t ce_inc_search(EditLine *, int);
protected el_action_t cv_search(EditLine *, int); libedit_private el_action_t cv_search(EditLine *, int);
protected el_action_t ce_search_line(EditLine *, int); libedit_private el_action_t ce_search_line(EditLine *, int);
protected el_action_t cv_repeat_srch(EditLine *, int); libedit_private el_action_t cv_repeat_srch(EditLine *, wint_t);
protected el_action_t cv_csearch(EditLine *, int, int, int, int); libedit_private el_action_t cv_csearch(EditLine *, int, wint_t, int, int);
#endif /* _h_el_search */ #endif /* _h_el_search */
 End of changes. 5 change blocks. 
16 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)