Fix breaking in loop, and messages in README
This commit is contained in:
parent
deec94b04b
commit
8c3e2902f8
2 changed files with 11 additions and 1 deletions
10
README.md
10
README.md
|
@ -20,6 +20,16 @@ $ make
|
|||
# make install
|
||||
```
|
||||
|
||||
# Customizing
|
||||
|
||||
You can modify `lcc.h` to add more languages to count lines, with the same format as provided in the file.
|
||||
|
||||
You can also add directories name and file extensions to ignore when counting lines, but the length of `ignore_dir` must be matching `IGNORE_DIRS`.
|
||||
|
||||
# Warning
|
||||
|
||||
Result may not be 100% correct due to coding style, but from testing, code with [suckless coding style](https://suckless.org/coding_style) will be modt accurate due to different method of commenting in code.
|
||||
|
||||
# Contributions
|
||||
Contributions are welcomed, feel free to open a pull request.
|
||||
|
||||
|
|
2
lcc.c
2
lcc.c
|
@ -101,7 +101,7 @@ void process_directory(const char *dirname)
|
|||
for (int i = 0; i < IGNORE_DIRS; i++) {
|
||||
if (strstr(entry->d_name, ignore_dir[i]) != NULL) {
|
||||
skip = 1;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (skip) continue;
|
||||
|
|
Loading…
Reference in a new issue