Guilherme Balena Versiani [Sun, 27 Dec 2009 04:58:19 +0000 (02:58 -0200)]
MinGW/MSYS support (and probably for Cygwin too)
Guilherme Balena Versiani [Sun, 27 Dec 2009 04:37:18 +0000 (02:37 -0200)]
Use of stat instead of d_type from dirent struct.
Andy Verprauskus [Tue, 29 Dec 2009 20:06:54 +0000 (12:06 -0800)]
[NEW] Add test that tmp files are found (mostly for centos)
Michael Wild [Tue, 15 Dec 2009 23:58:10 +0000 (15:58 -0800)]
FIX: Allow disambiguate_h to parse keywords at BOL
Michael Wild [Tue, 15 Dec 2009 23:47:31 +0000 (15:47 -0800)]
Changed ordering of tests:
- believe modeline
- use file-extension
- use file-name
- use UNIX 'file' command
The modeline parsing now allows for non-alphanumeric modes (e.g. C++)
and also queries the extension-table (e.g. C++ is not in the
name-table). It also tries find the lower-case mode name in both tables.
JK [Tue, 15 Dec 2009 23:15:45 +0000 (15:15 -0800)]
[Ticket 3] print full path with ohcount -i
Robin Luckey [Tue, 15 Dec 2009 23:08:35 +0000 (15:08 -0800)]
[Ticket 54] Count files only; not directories
In the course of fixing this problem I discovered that
the gestalt FilenameRule was comparing only to the base
filename, not the entire filepath. This has also been
fixed.
Robin Luckey [Tue, 15 Dec 2009 22:24:21 +0000 (14:24 -0800)]
[FIX] Ruby binding memory performance improvement
This patch corrects the terrible memory thrashing that occurs when
Ohcount is called through the Ruby binding layer.
Each call into Ohcount is accompanied by an array of filenames. This
list of filenames is used for hinting in detector.c.
For each call into Ohcount, The Ruby binding layer allocated and then
freed a clone of this array of filenames two times -- once in the SWIG
layer, and once in sourcefile.c.
This is OK for small arrays, but in some cases we have thousands of
filenames. This caused a massive amount of heap churn and, eventually,
resulted in kernel OOM panics.
Ohcount no longer clones the list of filenames. Instead, we just use
pointers into the original Ruby strings. Presto: no more heap churn; a
huge boost in speed; and no need to force a Ruby GC after every call
into the library.
Robin Luckey [Tue, 24 Nov 2009 17:44:00 +0000 (09:44 -0800)]
[Ticket 51] Change license from GPL2 to GPL3
Robin Luckey [Thu, 12 Nov 2009 23:20:44 +0000 (15:20 -0800)]
[Ticket 48] Rollback -- do not pclose() twice.
Andy Verprauskus [Tue, 20 Oct 2009 22:19:51 +0000 (15:19 -0700)]
[Ticket 48] crash on some OSX 10.6 machines; need to close a popen
Andy Verprauskus [Mon, 12 Oct 2009 20:07:24 +0000 (13:07 -0700)]
OH-81 Simplify ohcount.so loading path
Andy Verprauskus [Thu, 8 Oct 2009 00:46:03 +0000 (17:46 -0700)]
[FIX] remove old file
Andy Verprauskus [Thu, 8 Oct 2009 00:35:48 +0000 (17:35 -0700)]
[FIX] load new centos/ubuntu differentiated binaries and clean them
properly
Andy Verprauskus [Wed, 7 Oct 2009 23:30:37 +0000 (16:30 -0700)]
Merge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcount/ohcount
Andy Verprauskus [Fri, 2 Oct 2009 04:39:59 +0000 (21:39 -0700)]
Merge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcount/ohcount
Andy Verprauskus [Fri, 2 Oct 2009 04:38:19 +0000 (21:38 -0700)]
[NEW] create separate binaries based on distro
Robin Luckey [Thu, 1 Oct 2009 22:44:21 +0000 (15:44 -0700)]
Merge branch 'master' into prune
Robin Luckey [Thu, 1 Oct 2009 22:43:42 +0000 (15:43 -0700)]
[FIX] Null dereference error in disambiguate_in()
Robin Luckey [Thu, 1 Oct 2009 21:33:10 +0000 (14:33 -0700)]
Merge branch 'master' into prune
Robin Luckey [Thu, 1 Oct 2009 21:32:16 +0000 (14:32 -0700)]
[FIX] Avoid null dereference in disambiguate_inc()
Andy Verprauskus [Wed, 30 Sep 2009 17:38:55 +0000 (10:38 -0700)]
[README] add min gcc version
Robin Luckey [Tue, 22 Sep 2009 23:26:42 +0000 (16:26 -0700)]
[CHANGE] Remove unused .NET-related platforms
Robin Luckey [Tue, 22 Sep 2009 23:06:47 +0000 (16:06 -0700)]
[CHANGE] Remove java_jar, java_import
We aren't using these results, and they generate tons of data.
Can restore later if we need them.
Robin Luckey [Wed, 16 Sep 2009 21:30:36 +0000 (14:30 -0700)]
[NEW] Add .ml4 to the list of OCaml extensions
Andy Verprauskus [Mon, 14 Sep 2009 23:12:14 +0000 (16:12 -0700)]
Merge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcount/ohcount
Robin Luckey [Fri, 11 Sep 2009 23:01:05 +0000 (16:01 -0700)]
Merge branch 'master' of ssh://robinluckey@ohcount.git.sourceforge.net/gitroot/ohcount/ohcount
Robin Luckey [Fri, 11 Sep 2009 22:45:33 +0000 (15:45 -0700)]
[CHANGE] Downcase all platform names
Robin Luckey [Fri, 11 Sep 2009 22:14:41 +0000 (15:14 -0700)]
OH-13: Refine Jaspersoft gestalt definitions
Expand definitions to include any use of Jasper brand names in code.
I had to "enhance" the KeywordRule class. Previously, this rule
required a specific language as a parameter. You can now use the rule
with a +nil+ language, and it will match any language.
Andy Verprauskus [Thu, 10 Sep 2009 18:29:05 +0000 (11:29 -0700)]
[FIX] unknown compiler flags are preceeded with -D to pass on to the
source code
Andy Verprauskus [Wed, 9 Sep 2009 21:54:35 +0000 (14:54 -0700)]
[CHANGE] remove bin/ohcount; it should be built by users with ./build
pshiryaev [Mon, 7 Sep 2009 14:46:46 +0000 (18:46 +0400)]
written by
pshiryaev [Mon, 7 Sep 2009 14:30:44 +0000 (18:30 +0400)]
add support for F#
Andy Verprauskus [Fri, 4 Sep 2009 22:26:01 +0000 (15:26 -0700)]
[CHANGE] workaround: $self not working on centos with swig 1.3.29, use
'self'; doesn't seem to affect other platforms
pshiryaev [Mon, 7 Sep 2009 14:46:46 +0000 (18:46 +0400)]
written by
pshiryaev [Mon, 7 Sep 2009 14:30:44 +0000 (18:30 +0400)]
add support for F#
Andy Verprauskus [Fri, 4 Sep 2009 22:07:43 +0000 (15:07 -0700)]
[FIX] non-directory files in /tmp on CentOS have d_type of DT_UNKNOWN
instead of DT_REG
Andy Verprauskus [Wed, 2 Sep 2009 23:37:26 +0000 (16:37 -0700)]
[CHANGE] Add support for FreeBSD (submitted by eg)
Robin Luckey [Wed, 2 Sep 2009 23:11:59 +0000 (16:11 -0700)]
[FIX] Spelling correction for Objective-C
Andy Verprauskus [Tue, 1 Sep 2009 21:50:27 +0000 (14:50 -0700)]
[FIX] exit is a function; why no error/warning on MAC?
Benjamin Kramer [Tue, 1 Sep 2009 17:25:18 +0000 (19:25 +0200)]
[FIX] We really need those null bytes
Benjamin Kramer [Tue, 1 Sep 2009 16:33:26 +0000 (18:33 +0200)]
[FIX] another off-by-one (forgot \0)
Benjamin Kramer [Tue, 1 Sep 2009 15:32:28 +0000 (17:32 +0200)]
[FIX] work around some off-by-one errors
Benjamin Kramer [Tue, 1 Sep 2009 15:31:25 +0000 (17:31 +0200)]
[FIX] line was being used uninitialized
Benjamin Kramer [Tue, 1 Sep 2009 15:29:25 +0000 (17:29 +0200)]
[FIX] sourcefile: detect errors from fread(3)
Andy Verprauskus [Tue, 1 Sep 2009 18:16:33 +0000 (11:16 -0700)]
[FIX] large files crashed during license detection; allocate buffer on
heap, not stack
Andy Verprauskus [Tue, 1 Sep 2009 18:15:48 +0000 (11:15 -0700)]
[FIX] Allocate large buffer on heap, not stack.
Andy Verprauskus [Fri, 28 Aug 2009 23:27:39 +0000 (16:27 -0700)]
[FIX] change git url
Andy Verprauskus [Fri, 28 Aug 2009 22:22:01 +0000 (15:22 -0700)]
[NEW] commit documentation files to repository
I hate to do this, since they are built. And commiting
built files to a source control system is an anti-pattern.
The thing is: not everyone has doxygen installed and
prospective users might want to check out the docs
before deciding whether to dive into ohcount development.
Andy Verprauskus [Fri, 28 Aug 2009 19:36:42 +0000 (12:36 -0700)]
[FIX] crash handling empty file with no file suffix
also fixed possible NULL dereferences in disambiguate cs and pro files
Andy Verprauskus [Sat, 22 Aug 2009 07:22:50 +0000 (00:22 -0700)]
Merge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcount/ohcount
Andy Verprauskus [Sat, 22 Aug 2009 01:47:24 +0000 (18:47 -0700)]
[FIX] pclose the popen
Andy Verprauskus [Sat, 22 Aug 2009 01:31:13 +0000 (18:31 -0700)]
[CHANGE] diff large files from the shell
Robin Luckey [Sat, 15 Aug 2009 01:13:27 +0000 (18:13 -0700)]
[NEW] Gestalts for silverlight + popular JS libs
New gestalts for:
silverlight
mootools
prototype
yahoo ui (yui)
dojo
Implementing the silverlight gestalt requires parsing *.csproj files.
There appears to be a bug in the ohcount C core. If you query
the language_breakdowns of a source_file object, but that source_file
happens to not contain any known languages, then the source_file.contents
are reset to nil! I gave this bug a good long hunt, but I just couldn't
find it.
To work around this bug, *.csproj files are now counted as XML. It's a
bit cheeky, but they really are XML, so it works out. Without this,
the gestalt rule would explode because the contents are nil.
Robin Luckey [Fri, 14 Aug 2009 21:02:28 +0000 (14:02 -0700)]
[NEW] flash and flex gestalts
flash: any non-trivial use of actionscript, or
a Java import from the flash.* namespace
flex: any non-trivial inclusion of MXML, or
a Java import from the mx.* namespace
Robin Luckey [Fri, 14 Aug 2009 17:23:11 +0000 (10:23 -0700)]
[FIX] Rename "Flex" to "MXML"
Flex is not a language.
Flex is a library which consumes MXML.
Andy Verprauskus [Fri, 14 Aug 2009 05:16:34 +0000 (22:16 -0700)]
[CHANGE] remove MAC optimizations; optimize elsewhere
this is because the MAC optimizations only improve perf by about 5%
in my tests and it makes debugging harder. Optimizing elsewhere
to make ohcount fast for users. If you are developing for it and
want to debug, remove the -O directives from the CFLAGS
Andy Verprauskus [Fri, 14 Aug 2009 05:01:12 +0000 (22:01 -0700)]
[CHANGE] cleanup disambiguate_aspx
Andy Verprauskus [Fri, 14 Aug 2009 04:13:41 +0000 (21:13 -0700)]
[FIX] bus error handling aspx file without <%@
Robin Luckey [Thu, 13 Aug 2009 23:37:28 +0000 (16:37 -0700)]
[FIX] Clean up zombie processes
popen() must be matched by pclose(), not fclose().
Every time we forked out to the `file` command line tool, we failed
to clean up the resulting process. Since we sometimes did this
thousands of times, the operating system became cranky and refused
to open any more processes for us. Reboots ensued.
Andy Verprauskus [Tue, 11 Aug 2009 20:07:56 +0000 (13:07 -0700)]
[FIX] Sylwester's idea: require += for QMake disambiguation
Andy Verprauskus [Mon, 10 Aug 2009 19:14:51 +0000 (12:14 -0700)]
[FIX] disambiguate pro (IDL/PVWAVE vs QMAKE)
Andy Verprauskus [Fri, 7 Aug 2009 22:29:37 +0000 (15:29 -0700)]
[FIX] delete architecture-specific files
Sylwester Arabas [Thu, 6 Aug 2009 04:36:56 +0000 (21:36 -0700)]
[NEW] handle idl/pvwave/gdl; ported to C by andy verprauskus
Andy Verprauskus [Tue, 4 Aug 2009 09:47:39 +0000 (02:47 -0700)]
[FIX] build tests
Andy Verprauskus [Thu, 30 Jul 2009 22:51:37 +0000 (15:51 -0700)]
[NEW] Adding Jasper gestalts (from jay via ohloh)
Andy Verprauskus [Thu, 30 Jul 2009 22:25:55 +0000 (15:25 -0700)]
[CHANGE] source_file_test run by default
mitchell [Thu, 30 Jul 2009 22:05:46 +0000 (18:05 -0400)]
Fixed detector for files that need to be written to disk before using `file -b`.
andy [Wed, 29 Jul 2009 22:28:24 +0000 (15:28 -0700)]
[NEW] add broken test identifying _diff problem
andy [Mon, 27 Jul 2009 05:10:11 +0000 (22:10 -0700)]
[CHANGE] add C# to clutter language keywords, tweak native_code tells
andy [Mon, 27 Jul 2009 05:09:40 +0000 (22:09 -0700)]
[CHANGE] ignore changes to test/unit/run_tests.dSYM/
andy [Mon, 27 Jul 2009 05:08:41 +0000 (22:08 -0700)]
[NEW] add Rakefile so ruby/old ohcount users get what they expect when
typing rake
andy [Wed, 15 Jul 2009 06:50:34 +0000 (23:50 -0700)]
[CHANGE] more/clearer docs
andy [Tue, 14 Jul 2009 23:08:50 +0000 (16:08 -0700)]
[CHANGE] Add more info to the README, mostly copied from the original
ohcount README
andy [Tue, 14 Jul 2009 18:58:08 +0000 (11:58 -0700)]
Merge branch 'master' of git@github.com:andyverprauskus/ohcount
andy [Tue, 14 Jul 2009 18:56:43 +0000 (11:56 -0700)]
[NEW] adding ubuntu-amd 64 binaries to files; the ohcount binary should be in an architecture specific directory
andy [Tue, 14 Jul 2009 09:44:05 +0000 (02:44 -0700)]
[FIX] allow gestalts tests to be run by individually
andy [Tue, 14 Jul 2009 09:43:17 +0000 (02:43 -0700)]
[CHANGE] from robin: [CHANGE] The phrase "MIT/X11 licensed" is now accepted as a trigger for the MIT license
andy [Tue, 14 Jul 2009 08:30:59 +0000 (01:30 -0700)]
[NEW] add new gestalts; from me and Robin
Andy Verprauskus [Mon, 13 Jul 2009 18:29:55 +0000 (11:29 -0700)]
[NEW] add simple README
Andy Verprauskus [Fri, 10 Jul 2009 21:01:54 +0000 (14:01 -0700)]
[CHANGE] build ruby bindings per architecture; useful for Ohloh since we run different plaforms on Server and Dev machine
mitchell [Thu, 9 Jul 2009 02:30:08 +0000 (22:30 -0400)]
Added regex to Javascript parser to fix failing test.
Andy Verprauskus [Tue, 7 Jul 2009 17:59:28 +0000 (10:59 -0700)]
[FIX] remove bogus debug printf
Andy Verprauskus [Tue, 7 Jul 2009 17:36:25 +0000 (10:36 -0700)]
[NEW] add chunk of javascript extracted from firebug.js to test files; it is not parsed correctly
Andy Verprauskus [Thu, 2 Jul 2009 21:12:12 +0000 (14:12 -0700)]
[FIX] new gestalts, step 2/2
[FIX] add "#import" as an objective_c tell
Andy Verprauskus [Thu, 2 Jul 2009 08:24:41 +0000 (01:24 -0700)]
[CHANGE] copy over changes to add more gestalts, by Robin and Andy
Andy Verprauskus [Wed, 24 Jun 2009 20:44:28 +0000 (13:44 -0700)]
[FIX] make SourceFileList.each work
Andy Verprauskus [Wed, 24 Jun 2009 09:28:41 +0000 (02:28 -0700)]
[FIX] fix SourceFileList.analyze to accept an argument; my mistake in not specifying this
[CHANGE] add .each for SourceFileList to test - result should be yielding filenames
mitchell [Tue, 23 Jun 2009 21:12:01 +0000 (17:12 -0400)]
Fixes to pass Ruby extension tests.
Andy Verprauskus [Tue, 23 Jun 2009 04:48:02 +0000 (21:48 -0700)]
[FIX] broken unit test: sort the gestalt list before comparing
Andy Verprauskus [Tue, 23 Jun 2009 04:42:48 +0000 (21:42 -0700)]
[CHANGE] add next set of failures to tests
mitchell [Mon, 22 Jun 2009 22:29:28 +0000 (18:29 -0400)]
Added code to Ruby extension to pass failing tests.
mitchell [Mon, 22 Jun 2009 21:10:05 +0000 (17:10 -0400)]
Fixed bugs in src/hash/languages.gperf related to 'cmake'.
mitchell [Mon, 22 Jun 2009 20:49:35 +0000 (16:49 -0400)]
Merge branch 'master' of git://github.com/andyverprauskus/ohcount
Andy Verprauskus [Sun, 21 Jun 2009 16:03:52 +0000 (09:03 -0700)]
[CHANGE] complete last commit, add second necessary test
Andy Verprauskus [Sat, 20 Jun 2009 06:56:16 +0000 (23:56 -0700)]
[NEW] add tests (currently broken) for source_file_list
Andy Verprauskus [Fri, 19 Jun 2009 22:20:47 +0000 (15:20 -0700)]
[FIX] temp fix for missing language in language_percents
Andy Verprauskus [Fri, 19 Jun 2009 22:19:08 +0000 (15:19 -0700)]
[CHANGE] change src/diff.c for mitchell
mitchell [Thu, 11 Jun 2009 12:11:46 +0000 (05:11 -0700)]
Edited build to build on Mac OSX.
mitchell [Wed, 10 Jun 2009 11:47:11 +0000 (04:47 -0700)]
Fixed build regexen to compile on Mac OSX.