mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@@ -74,7 +74,7 @@ strtokx(const char *s,
|
||||
|
||||
/*
|
||||
* We may need extra space to insert delimiter nulls for adjacent
|
||||
* tokens. 2X the space is a gross overestimate, but it's unlikely
|
||||
* tokens. 2X the space is a gross overestimate, but it's unlikely
|
||||
* that this code will be used on huge strings anyway.
|
||||
*/
|
||||
storage = pg_malloc(2 * strlen(s) + 1);
|
||||
@@ -104,7 +104,7 @@ strtokx(const char *s,
|
||||
{
|
||||
/*
|
||||
* If not at end of string, we need to insert a null to terminate the
|
||||
* returned token. We can just overwrite the next character if it
|
||||
* returned token. We can just overwrite the next character if it
|
||||
* happens to be in the whitespace set ... otherwise move over the
|
||||
* rest of the string to make room. (This is why we allocated extra
|
||||
* space above).
|
||||
@@ -158,7 +158,7 @@ strtokx(const char *s,
|
||||
|
||||
/*
|
||||
* If not at end of string, we need to insert a null to terminate the
|
||||
* returned token. See notes above.
|
||||
* returned token. See notes above.
|
||||
*/
|
||||
if (*p != '\0')
|
||||
{
|
||||
@@ -181,7 +181,7 @@ strtokx(const char *s,
|
||||
}
|
||||
|
||||
/*
|
||||
* Otherwise no quoting character. Scan till next whitespace, delimiter
|
||||
* Otherwise no quoting character. Scan till next whitespace, delimiter
|
||||
* or quote. NB: at this point, *start is known not to be '\0',
|
||||
* whitespace, delim, or quote, so we will consume at least one character.
|
||||
*/
|
||||
@@ -207,7 +207,7 @@ strtokx(const char *s,
|
||||
|
||||
/*
|
||||
* If not at end of string, we need to insert a null to terminate the
|
||||
* returned token. See notes above.
|
||||
* returned token. See notes above.
|
||||
*/
|
||||
if (*p != '\0')
|
||||
{
|
||||
@@ -274,7 +274,7 @@ strip_quotes(char *source, char quote, char escape, int encoding)
|
||||
/*
|
||||
* quote_if_needed
|
||||
*
|
||||
* Opposite of strip_quotes(). If "source" denotes itself literally without
|
||||
* Opposite of strip_quotes(). If "source" denotes itself literally without
|
||||
* quoting or escaping, returns NULL. Otherwise, returns a malloc'd copy with
|
||||
* quoting and escaping applied:
|
||||
*
|
||||
|
Reference in New Issue
Block a user