-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve handling of Oracle PL/SQL files, #875
Regexp::Common::comment parser for PL/SQL messes up, use my own
- Loading branch information
Showing
5 changed files
with
64 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* bubble sort | ||
*/ | ||
DECLARE | ||
TYPE number_array IS VARRAY(100) OF NUMBER; | ||
arr number_array := number_array(64, 34, 25, 12, 22, 11, 90); | ||
n NUMBER := arr.COUNT; | ||
i NUMBER := 0; | ||
j NUMBER := 0; | ||
temp NUMBER; | ||
BEGIN | ||
FOR i IN 1 .. (n - 1) LOOP -- outer | ||
FOR j IN 1 .. (n - i - 1) LOOP -- inner | ||
IF arr(j) > arr(j + 1) THEN | ||
temp := arr(j); | ||
arr(j) := arr(j + 1); | ||
arr(j + 1) := temp; | ||
END IF; | ||
END LOOP; | ||
END LOOP; | ||
FOR i IN 1 .. n LOOP | ||
DBMS_OUTPUT.PUT_LINE(arr(i)); | ||
END LOOP; | ||
END; | ||
/ |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# github.com/AlDanial/cloc | ||
header : | ||
cloc_url : github.com/AlDanial/cloc | ||
cloc_version : 2.03 | ||
elapsed_seconds : 0.00424885749816895 | ||
n_files : 1 | ||
n_lines : 26 | ||
files_per_second : 235.357387352 | ||
lines_per_second : 6119.29207115201 | ||
report_file : ../outputs/issue_875.bdy.yaml | ||
'Oracle PL/SQL' : | ||
nFiles: 1 | ||
blank: 0 | ||
comment: 4 | ||
code: 22 | ||
SUM: | ||
blank: 0 | ||
comment: 4 | ||
code: 22 | ||
nFiles: 1 |