mirror of
https://github.com/postgres/postgres.git
synced 2026-03-11 02:34:28 -04:00
return true for exactly the characters treated as whitespace by their flex scanners. Per report from Victor Snezhko and subsequent investigation. Also fix a passel of unsafe usages of <ctype.h> functions, that is, ye olde char-vs-unsigned-char issue. I won't miss <ctype.h> when we are finally able to stop using it.
27 lines
808 B
C
27 lines
808 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* scansup.h
|
|
* scanner support routines. used by both the bootstrap lexer
|
|
* as well as the normal lexer
|
|
*
|
|
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/parser/scansup.h,v 1.20 2006/09/22 21:39:58 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef SCANSUP_H
|
|
#define SCANSUP_H
|
|
|
|
extern char *scanstr(const char *s);
|
|
|
|
extern char *downcase_truncate_identifier(const char *ident, int len,
|
|
bool warn);
|
|
|
|
extern void truncate_identifier(char *ident, int len, bool warn);
|
|
|
|
extern bool scanner_isspace(char ch);
|
|
|
|
#endif /* SCANSUP_H */
|