aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/ragel6
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /contrib/tools/ragel6
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/tools/ragel6')
-rw-r--r--contrib/tools/ragel6/main.cpp10
-rw-r--r--contrib/tools/ragel6/rlscan.cpp10
-rw-r--r--contrib/tools/ragel6/rlscan.rl10
3 files changed, 15 insertions, 15 deletions
diff --git a/contrib/tools/ragel6/main.cpp b/contrib/tools/ragel6/main.cpp
index 966e3b085c..1fd36c6f9d 100644
--- a/contrib/tools/ragel6/main.cpp
+++ b/contrib/tools/ragel6/main.cpp
@@ -564,11 +564,11 @@ int main( int argc, const char **argv )
"\" is the same as the input file" << endp;
}
- for (char* p = (char*)id.inputFileName; *p != 0; p++) {
- if (*p == '\\')
- *p = '/';
- }
-
+ for (char* p = (char*)id.inputFileName; *p != 0; p++) {
+ if (*p == '\\')
+ *p = '/';
+ }
+
process( id );
return 0;
diff --git a/contrib/tools/ragel6/rlscan.cpp b/contrib/tools/ragel6/rlscan.cpp
index 049f53a004..5e2fc36645 100644
--- a/contrib/tools/ragel6/rlscan.cpp
+++ b/contrib/tools/ragel6/rlscan.cpp
@@ -805,7 +805,7 @@ void Scanner::endSection( )
bool isAbsolutePath( const char *path )
{
#ifdef _WIN32
- return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
+ return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
#else
return path[0] == '/';
#endif
@@ -823,8 +823,8 @@ inline char* resolvePath(const char* rel, const char* abs) {
strcpy(ret + l3, rel);
return ret;
-}
-
+}
+
char **Scanner::makeIncludePathChecks( const char *thisFileName,
const char *fileName, int fnlen )
{
@@ -844,7 +844,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
checks = new char*[2 + id.includePaths.length()];
/* Search from the the location of the current file. */
- const char *lastSlash = strrchr( thisFileName, '/' );
+ const char *lastSlash = strrchr( thisFileName, '/' );
if ( lastSlash == 0 )
checks[nextCheck++] = data;
else {
@@ -857,7 +857,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
long checkLen = pathLen + 1 + length;
char *check = new char[checkLen+1];
memcpy( check, *incp, pathLen );
- check[pathLen] = '/';
+ check[pathLen] = '/';
memcpy( check+pathLen+1, data, length );
check[checkLen] = 0;
checks[nextCheck++] = check;
diff --git a/contrib/tools/ragel6/rlscan.rl b/contrib/tools/ragel6/rlscan.rl
index 659cafc98b..c3217f1542 100644
--- a/contrib/tools/ragel6/rlscan.rl
+++ b/contrib/tools/ragel6/rlscan.rl
@@ -542,7 +542,7 @@ void Scanner::endSection( )
bool isAbsolutePath( const char *path )
{
#ifdef _WIN32
- return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
+ return isalpha( path[0] ) && path[1] == ':' && (path[2] == '\\' || path[2] == '/');
#else
return path[0] == '/';
#endif
@@ -560,8 +560,8 @@ inline char* resolvePath(const char* rel, const char* abs) {
strcpy(ret + l3, rel);
return ret;
-}
-
+}
+
char **Scanner::makeIncludePathChecks( const char *thisFileName,
const char *fileName, int fnlen )
{
@@ -581,7 +581,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
checks = new char*[2 + id.includePaths.length()];
/* Search from the the location of the current file. */
- const char *lastSlash = strrchr( thisFileName, '/' );
+ const char *lastSlash = strrchr( thisFileName, '/' );
if ( lastSlash == 0 )
checks[nextCheck++] = data;
else {
@@ -594,7 +594,7 @@ char **Scanner::makeIncludePathChecks( const char *thisFileName,
long checkLen = pathLen + 1 + length;
char *check = new char[checkLen+1];
memcpy( check, *incp, pathLen );
- check[pathLen] = '/';
+ check[pathLen] = '/';
memcpy( check+pathLen+1, data, length );
check[checkLen] = 0;
checks[nextCheck++] = check;