}
}
memset(&fmt, 0, sizeof(fmt));
- fmt.fmt.version = SFIO_VERSION;
fmt.fmt.extf = prformat;
fmt.expr = ex;
fmt.env = env;
}
get:
memset(&fmt, 0, sizeof(fmt));
- fmt.fmt.version = SFIO_VERSION;
fmt.fmt.extf = scformat;
fmt.expr = ex;
fmt.env = env;
#ifndef _SFIO_H
#define _SFIO_H 1
-#define SFIO_VERSION 20010201L
-
/* Public header file for the sfio library
**
** Written by Kiem-Phong Vo
typedef int (*Sffmtext_f)(Sfio_t *, void *, Sffmt_t *);
typedef int (*Sffmtevent_f)(Sfio_t *, int, void *, Sffmt_t *);
struct _sffmt_s {
- long version; /* version of this structure */
Sffmtext_f extf; /* function to process arguments */
Sffmtevent_f eventf; /* process events */
char *t_str; /* type string */
ssize_t n_str; /* length of t_str */
};
-#define sffmtversion(fe,type) \
- (type ? ((fe)->version = SFIO_VERSION) : (fe)->version)
#define SFFMT_SSHORT 00000010 /* 'hh' flag, char */
#define SFFMT_TFLAG 00000020 /* 't' flag, ptrdiff_t */
}
if (ft && ft->extf) {
- fp[n].ft.version = ft->version;
fp[n].ft.extf = ft->extf;
fp[n].ft.eventf = ft->eventf;
if ((v = fp[n].need[FP_WIDTH]) >= 0 && v < n)