diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-06-16 08:29:35 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-06-16 08:29:35 +0000 |
| commit | 2b13992856d37b1bece77900f255d1341e2f26a6 (patch) | |
| tree | 9a6db83108560c5d3d0f97830ca2c0d45be7ff71 /lib/libedit | |
| parent | 46a23ac4ad841e9659ff811946ec87008fafab38 (diff) | |
Notes
Diffstat (limited to 'lib/libedit')
| -rw-r--r-- | lib/libedit/el.c | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/lib/libedit/el.c b/lib/libedit/el.c index 0d28e03a733d..4491b30e45a8 100644 --- a/lib/libedit/el.c +++ b/lib/libedit/el.c @@ -333,25 +333,6 @@ el_get(EditLine *el, int op, void *ret) break; } break; -} - -public void -el_data_set (el, data) - EditLine *el; - void *data; -{ - el->data = data; - - return; -} - -public void * -el_data_get (el) - EditLine *el; -{ - if (el->data) - return (el->data); - return (NULL); } case EL_ADDFN: @@ -380,6 +361,30 @@ el_data_get (el) return (rv); } +/* el_data_get(): + * Set user private data. + */ +public void +el_data_set (el, data) + EditLine *el; + void *data; +{ + el->data = data; + + return; +} + +/* el_data_get(): + * Return user private data. + */ +public void * +el_data_get (el) + EditLine *el; +{ + if (el->data) + return (el->data); + return (NULL); +} /* el_line(): * Return editing info |
