-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* various small updates recommended from Geany community
- Loading branch information
1 parent
b75167c
commit 0ac738a
Showing
6 changed files
with
7 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* BracketMap.cc | ||
* | ||
* Copyright 2013 Asif Amin <[email protected]> | ||
* Copyright 2023 Asif Amin <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -67,7 +67,6 @@ | |
} | ||
|
||
|
||
|
||
// ----------------------------------------------------------------------------- | ||
void BracketMap::ComputeOrder() | ||
/* | ||
|
@@ -109,35 +108,3 @@ | |
GetOrder(bracket) = orderStack.size() - 1; | ||
} | ||
} | ||
|
||
|
||
|
||
// ----------------------------------------------------------------------------- | ||
void BracketMap::Show() | ||
/* | ||
----------------------------------------------------------------------------- */ | ||
{ g_debug("%s: Showing bracket map ...", __FUNCTION__); | ||
|
||
for (const auto it : mBracketMap) { | ||
|
||
const Index &startIndex = it.first; | ||
const Bracket &bracket = it.second; | ||
|
||
Length length = std::get<0>(bracket); | ||
Order order = std::get<1>(bracket); | ||
|
||
Index end = -1; | ||
if (length > 0) { | ||
end = startIndex + length; | ||
} | ||
|
||
g_debug( | ||
"%s: Bracket at %d, Length: %d, End: %d, Order: %d", | ||
__FUNCTION__, startIndex, length, end, order | ||
); | ||
} | ||
|
||
g_debug("%s: ... Finished showing bracket map", __FUNCTION__); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* BracketMap.h | ||
* | ||
* Copyright 2013 Asif Amin <[email protected]> | ||
* Copyright 2023 Asif Amin <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -40,8 +40,6 @@ | |
BracketMap(); | ||
~BracketMap(); | ||
|
||
void Show(); | ||
|
||
void Update(Index index, Length length); | ||
void ComputeOrder(); | ||
|
||
|
@@ -62,15 +60,4 @@ | |
} | ||
}; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
#endif |
Oops, something went wrong.