1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Restore local bits lost in recent merge from NetBSD.

This commit is contained in:
Matthew N. Dodd 2002-06-16 08:29:35 +00:00
parent 46a23ac4ad
commit 2b13992856
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98293
2 changed files with 30 additions and 19 deletions

View File

@ -140,6 +140,12 @@ int el_source(EditLine *, const char *);
void el_resize(EditLine *);
/*
* Set user private data.
*/
void el_data_set __P((EditLine *, void *));
void * el_data_get __P((EditLine *));
/*
* User-defined function interface.
*/

View File

@ -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