clean up headers

This commit is contained in:
rsc 2004-12-25 22:00:00 +00:00
parent 619085f0b4
commit 8bbb2f6492
2 changed files with 69 additions and 75 deletions

View file

@ -3,7 +3,6 @@
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
/* /*
* The authors of this software are Rob Pike and Ken Thompson. * The authors of this software are Rob Pike and Ken Thompson.
* Copyright (c) 2002 by Lucent Technologies. * Copyright (c) 2002 by Lucent Technologies.
@ -56,46 +55,45 @@ enum{
FmtFlag = FmtLDouble << 1 FmtFlag = FmtLDouble << 1
}; };
extern int print(char*, ...);
extern char* seprint(char*, char*, char*, ...);
extern char* vseprint(char*, char*, char*, va_list);
extern int snprint(char*, int, char*, ...);
extern int vsnprint(char*, int, char*, va_list);
extern char* smprint(char*, ...);
extern char* vsmprint(char*, va_list);
extern int sprint(char*, char*, ...);
extern int fprint(int, char*, ...);
extern int vfprint(int, char*, va_list);
extern int runesprint(Rune*, char*, ...);
extern int runesnprint(Rune*, int, char*, ...);
extern int runevsnprint(Rune*, int, char*, va_list);
extern Rune* runeseprint(Rune*, Rune*, char*, ...);
extern Rune* runevseprint(Rune*, Rune*, char*, va_list);
extern Rune* runesmprint(char*, ...);
extern Rune* runevsmprint(char*, va_list);
extern int fmtfdinit(Fmt*, int, char*, int);
extern int fmtfdflush(Fmt*);
extern int fmtstrinit(Fmt*);
extern char* fmtstrflush(Fmt*);
extern int runefmtstrinit(Fmt*);
extern Rune* runefmtstrflush(Fmt*);
extern int quotestrfmt(Fmt *f);
extern void quotefmtinstall(void);
extern int (*fmtdoquote)(int); extern int (*fmtdoquote)(int);
/* Edit .+1,/^$/ | cfn $PLAN9/src/lib9/fmt/?*.c | grep -v static |grep -v __ */
extern int fmtinstall(int, int (*)(Fmt*)); int dofmt(Fmt *f, char *fmt);
extern int dofmt(Fmt*, char*); int dorfmt(Fmt *f, const Rune *fmt);
extern int fmtprint(Fmt*, char*, ...); double fmtcharstod(int(*f)(void*), void *vp);
extern int fmtvprint(Fmt*, char*, va_list); int fmtfdflush(Fmt *f);
extern int fmtrune(Fmt*, int); int fmtfdinit(Fmt *f, int fd, char *buf, int size);
extern int fmtstrcpy(Fmt*, char*); int fmtinstall(int c, int (*f)(Fmt*));
int fmtprint(Fmt *f, char *fmt, ...);
extern double fmtstrtod(const char *, char **); int fmtrune(Fmt *f, int r);
extern double fmtcharstod(int(*)(void*), void*); int fmtrunestrcpy(Fmt *f, Rune *s);
int fmtstrcpy(Fmt *f, char *s);
char* fmtstrflush(Fmt *f);
int fmtstrinit(Fmt *f);
double fmtstrtod(const char *as, char **aas);
int fmtvprint(Fmt *f, char *fmt, va_list args);
int fprint(int fd, char *fmt, ...);
int print(char *fmt, ...);
void quotefmtinstall(void);
int quoterunestrfmt(Fmt *f);
int quotestrfmt(Fmt *f);
Rune* runefmtstrflush(Fmt *f);
int runefmtstrinit(Fmt *f);
Rune* runeseprint(Rune *buf, Rune *e, char *fmt, ...);
Rune* runesmprint(char *fmt, ...);
int runesnprint(Rune *buf, int len, char *fmt, ...);
int runesprint(Rune *buf, char *fmt, ...);
Rune* runevseprint(Rune *buf, Rune *e, char *fmt, va_list args);
Rune* runevsmprint(char *fmt, va_list args);
int runevsnprint(Rune *buf, int len, char *fmt, va_list args);
char* seprint(char *buf, char *e, char *fmt, ...);
char* smprint(char *fmt, ...);
int snprint(char *buf, int len, char *fmt, ...);
int sprint(char *buf, char *fmt, ...);
int vfprint(int fd, char *fmt, va_list args);
char* vseprint(char *buf, char *e, char *fmt, va_list args);
char* vsmprint(char *fmt, va_list args);
int vsnprint(char *buf, int len, char *fmt, va_list args);
#if defined(__cplusplus) #if defined(__cplusplus)
} }

View file

@ -14,42 +14,38 @@ enum
Runeerror = 0x80, /* decoding error in UTF */ Runeerror = 0x80, /* decoding error in UTF */
}; };
/* /* Edit .+1,/^$/ | cfn $PLAN9/src/lib9/utf/?*.c | grep -v static |grep -v __ */
* rune routines int chartorune(Rune *rune, char *str);
*/ int fullrune(char *str, int n);
extern int runetochar(char*, Rune*); int isalpharune(Rune c);
extern int chartorune(Rune*, char*); int islowerrune(Rune c);
extern int runelen(long); int isspacerune(Rune c);
extern int runenlen(Rune*, int); int istitlerune(Rune c);
extern int fullrune(char*, int); int isupperrune(Rune c);
extern int utflen(char*); int runelen(long c);
extern int utfnlen(char*, long); int runenlen(Rune *r, int nrune);
extern char* utfrune(char*, long); Rune* runestrcat(Rune *s1, Rune *s2);
extern char* utfrrune(char*, long); Rune* runestrchr(Rune *s, Rune c);
extern char* utfutf(char*, char*); int runestrcmp(Rune *s1, Rune *s2);
extern char* utfecpy(char*, char*, char*); Rune* runestrcpy(Rune *s1, Rune *s2);
Rune* runestrdup(Rune *s) ;
extern Rune* runestrcat(Rune*, Rune*); Rune* runestrecpy(Rune *s1, Rune *es1, Rune *s2);
extern Rune* runestrchr(Rune*, Rune); long runestrlen(Rune *s);
extern int runestrcmp(Rune*, Rune*); Rune* runestrncat(Rune *s1, Rune *s2, long n);
extern Rune* runestrcpy(Rune*, Rune*); int runestrncmp(Rune *s1, Rune *s2, long n);
extern Rune* runestrncpy(Rune*, Rune*, long); Rune* runestrncpy(Rune *s1, Rune *s2, long n);
extern Rune* runestrecpy(Rune*, Rune*, Rune*); Rune* runestrrchr(Rune *s, Rune c);
extern Rune* runestrdup(Rune*); Rune* runestrstr(Rune *s1, Rune *s2);
extern Rune* runestrncat(Rune*, Rune*, long); int runetochar(char *str, Rune *rune);
extern int runestrncmp(Rune*, Rune*, long); Rune tolowerrune(Rune c);
extern Rune* runestrrchr(Rune*, Rune); Rune totitlerune(Rune c);
extern long runestrlen(Rune*); Rune toupperrune(Rune c);
extern Rune* runestrstr(Rune*, Rune*); char* utfecpy(char *to, char *e, char *from);
int utflen(char *s);
extern Rune tolowerrune(Rune); int utfnlen(char *s, long m);
extern Rune totitlerune(Rune); char* utfrrune(char *s, long c);
extern Rune toupperrune(Rune); char* utfrune(char *s, long c);
extern int isalpharune(Rune); char* utfutf(char *s1, char *s2);
extern int islowerrune(Rune);
extern int isspacerune(Rune);
extern int istitlerune(Rune);
extern int isupperrune(Rune);
#if defined(__cplusplus) #if defined(__cplusplus)
} }