/* working state for tsearch_readline (should be a local var in caller) */ typedefstruct
{
FILE *fp; constchar *filename; int lineno;
StringInfoData buf; /* current input line, in UTF-8 */ char *curline; /* current input line, in DB's encoding */ /* curline may be NULL, or equal to buf.data, or a palloc'd string */
ErrorContextCallback cb;
} tsearch_readline_state;
#define TOUCHAR(x) (*((constunsignedchar *) (x)))
/* The second argument of t_iseq() must be a plain ASCII character */ #define t_iseq(x,c) (TOUCHAR(x) == (unsignedchar) (c))
/* Copy multibyte character of known byte length, return byte length. */ staticinlineint
ts_copychar_with_len(void *dest, constvoid *src, int length)
{
memcpy(dest, src, length); return length;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.