File tree 3 files changed +6
-5
lines changed 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 42
42
cnt_single_file (const char * file , size_t cr )
43
43
{
44
44
FILE * f = fopen (file , "r" );
45
- int cnt = 0 ;
45
+ long cnt = 0 ;
46
46
47
47
if (f == NULL )
48
48
{
@@ -51,7 +51,7 @@ cnt_single_file(const char *file, size_t cr)
51
51
goto fini ;
52
52
}
53
53
54
- char curr ;
54
+ int curr ;
55
55
int ne = 0 ;
56
56
cr += cr == 0 ;
57
57
Original file line number Diff line number Diff line change 18
18
#define CSLOC_QUIET 1
19
19
#define CSLOC_IGNDOT 2
20
20
#define CSLOC_SIF 4
21
- #define CSLOC_SORT 010
21
+ #define CSLOC_SORT 014
22
22
#define CSLOC_FSIZE 020
23
- #define CSLOC_RSORT 050
23
+ #define CSLOC_RSORT 054
24
24
struct csloc_file_entry
25
25
{
26
26
size_t val ;
Original file line number Diff line number Diff line change 17
17
#endif
18
18
#include "csloc.h"
19
19
#define VERSION_MINOR "8"
20
- #define VERSION_PATCH "1 "
20
+ #define VERSION_PATCH "2 "
21
21
int main (int argl ,char * argv [])
22
22
{
23
23
if (argl == 1 )
@@ -33,6 +33,7 @@ int main(int argl,char*argv[])
33
33
puts ("-f to count file size instead." );
34
34
puts ("-t to sort the files by number of lines." );
35
35
puts ("-s to show the sloc of individual files." );
36
+ puts ("The options -r and -t automatically enable -s, -rs and -st are now redundant." );
36
37
puts ("-h to not count files beginning with a ., such files are considered hidden on linux." );
37
38
puts ("-cNUM specifies that NUM non-whitespace characters are required to count as a valid line." );
38
39
puts ("-q to not output complete sentences." );
You can’t perform that action at this time.
0 commit comments