123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef _WPRINTF_PARSE_H
- #define _WPRINTF_PARSE_H
- #include "printf-args.h"
- #define FLAG_GROUP 1
- #define FLAG_LEFT 2
- #define FLAG_SHOWSIGN 4
- #define FLAG_SPACE 8
- #define FLAG_ALT 16
- #define FLAG_ZERO 32
- #define ARG_NONE (~(size_t)0)
- typedef struct
- {
- const wchar_t* dir_start;
- const wchar_t* dir_end;
- int flags;
- const wchar_t* width_start;
- const wchar_t* width_end;
- size_t width_arg_index;
- const wchar_t* precision_start;
- const wchar_t* precision_end;
- size_t precision_arg_index;
- wchar_t conversion;
- size_t arg_index;
- }
- wchar_t_directive;
- typedef struct
- {
- size_t count;
- wchar_t_directive *dir;
- size_t max_width_length;
- size_t max_precision_length;
- }
- wchar_t_directives;
- #ifdef STATIC
- STATIC
- #else
- extern
- #endif
- int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a);
- #endif
|