Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes will follow.
This commit is contained in:
parent
e26dcdfe6d
commit
41021bcb13
@ -87,8 +87,6 @@ extern struct disklabel *avail_disklabels;
|
||||
extern u_short dkcksum(struct disklabel *);
|
||||
|
||||
/* utils.c */
|
||||
int strheight __P((const char *p));
|
||||
int strwidth __P((const char *p));
|
||||
void Abort __P((void));
|
||||
void ExitSysinstall __P((void));
|
||||
void TellEm __P((char *fmt, ...));
|
||||
|
@ -6,7 +6,7 @@
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id: utils.c,v 1.25 1994/11/07 04:53:23 phk Exp $
|
||||
* $Id: utils.c,v 1.26 1994/11/07 13:48:54 jkh Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -38,32 +38,6 @@ strip_trailing_newlines(char *p)
|
||||
p[--len] = '\0';
|
||||
}
|
||||
|
||||
int strwidth(const char *p)
|
||||
{
|
||||
int i = 0, len;
|
||||
const char *start, *s;
|
||||
|
||||
for (start = s = p; (s = strchr(s, '\n')) != NULL; start = ++s) {
|
||||
len = s - start;
|
||||
if (len > i)
|
||||
i = len;
|
||||
}
|
||||
len = strlen(start);
|
||||
if (len > i)
|
||||
i = len;
|
||||
return i;
|
||||
}
|
||||
|
||||
int strheight(const char *p)
|
||||
{
|
||||
int i = 1;
|
||||
const char *s;
|
||||
|
||||
for (s = p; (s = strchr(s, '\n')) != NULL; s++)
|
||||
i++;
|
||||
return i;
|
||||
}
|
||||
|
||||
void
|
||||
Debug(char *fmt, ...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user