New ef_blank()
It performs the same initialization as ef_extend().
This commit is contained in:
parent
a71f01585f
commit
c21c4ff9a7
2 changed files with 13 additions and 0 deletions
|
@ -183,6 +183,7 @@ extern int ef_open(int, int);
|
||||||
extern int ef_check(int);
|
extern int ef_check(int);
|
||||||
extern int ef_close(int);
|
extern int ef_close(int);
|
||||||
extern int ef_flush(int);
|
extern int ef_flush(int);
|
||||||
|
extern void ef_blank(int, int, void *);
|
||||||
extern int ef_write(int, int, void *);
|
extern int ef_write(int, int, void *);
|
||||||
extern int ef_extend(int, int);
|
extern int ef_extend(int, int);
|
||||||
extern int ef_ensure_space(int, int, int);
|
extern int ef_ensure_space(int, int, int);
|
||||||
|
|
|
@ -468,6 +468,18 @@ ef_extend(int type, int count)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize element ID for EP in BUF.
|
||||||
|
* FIXME pass buffer size!
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
ef_blank(int type, int id, void *buf)
|
||||||
|
{
|
||||||
|
if (ef_check(type) < 0)
|
||||||
|
return;
|
||||||
|
do_blank(&empfile[type], buf, id, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize COUNT elements of EP in BUF, starting with element ID.
|
* Initialize COUNT elements of EP in BUF, starting with element ID.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue