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