mirror of https://github.com/citusdata/citus.git
Indent
parent
f972b6fae9
commit
df3ad5c4f6
|
@ -645,9 +645,13 @@ ExtractTopComment(const char *inputString)
|
|||
|
||||
if (commentEndCharsIndex > commentStartCharsLength)
|
||||
{
|
||||
Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum(inputString),
|
||||
Int32GetDatum(commentStartCharsLength),
|
||||
Int32GetDatum(commentEndCharsIndex - commentStartCharsLength));
|
||||
Datum substringTextDatum = DirectFunctionCall3(text_substr, PointerGetDatum(
|
||||
inputString),
|
||||
Int32GetDatum(
|
||||
commentStartCharsLength),
|
||||
Int32GetDatum(
|
||||
commentEndCharsIndex -
|
||||
commentStartCharsLength));
|
||||
return TextDatumGetCString(substringTextDatum);
|
||||
}
|
||||
else
|
||||
|
@ -656,6 +660,7 @@ ExtractTopComment(const char *inputString)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* EscapeCommentChars adds a backslash before each occurrence of '*' or '/' in the input string */
|
||||
static char *
|
||||
EscapeCommentChars(const char *str)
|
||||
|
|
Loading…
Reference in New Issue