Andy Verprauskus [Wed, 30 Sep 2009 17:30:19 +0000 (10:30 -0700)]
[README] specify minimum version of gcc required
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
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.
Andy Verprauskus [Fri, 5 Jun 2009 15:37:35 +0000 (08:37 -0700)]
Merge branch 'master' of git@github.com:andyverprauskus/ohcount
Andy Verprauskus [Fri, 5 Jun 2009 15:37:13 +0000 (08:37 -0700)]
[FIX] make src/parsers/compile work on MACOS
mitchell [Tue, 2 Jun 2009 01:20:09 +0000 (21:20 -0400)]
Merge branch 'master' of git://github.com/andyverprauskus/ohcount
mitchell [Mon, 1 Jun 2009 21:39:41 +0000 (17:39 -0400)]
Change shbang so build runs on Ubuntu.
andy verprauskus [Mon, 1 Jun 2009 19:53:12 +0000 (12:53 -0700)]
[FIX] force build to use bash instead of default shell, makes build work on ubuntu
mitchell [Wed, 27 May 2009 01:43:05 +0000 (21:43 -0400)]
Since directories are added to SourceFileLists, don't mistake as extensions.
mitchell [Sun, 24 May 2009 19:18:43 +0000 (15:18 -0400)]
Updated test/unit/sourcefile_test.h for completeness.
mitchell [Sun, 24 May 2009 18:50:16 +0000 (14:50 -0400)]
Added documentation to src/ohcount.h noting gestalts require Ruby extension.
mitchell [Sun, 24 May 2009 18:41:12 +0000 (14:41 -0400)]
Removed gestalt options from C ohcount (use ruby/gestalt.rb).
mitchell [Sun, 24 May 2009 18:39:15 +0000 (14:39 -0400)]
Fixed license detection for source files with no parsed languages.
mitchell [Sun, 24 May 2009 16:24:24 +0000 (12:24 -0400)]
Changed build to use platform-specific Ruby include directory via mkmf.
mitchell [Sun, 24 May 2009 15:59:45 +0000 (11:59 -0400)]
ruby/gestalt.rb will print gestalts if it is run.
mitchell [Sun, 24 May 2009 14:56:57 +0000 (10:56 -0400)]
Remove ruby/ohcount.so in build clean.
mitchell [Sun, 24 May 2009 14:55:05 +0000 (10:55 -0400)]
Added gestalt_test.rb helper and run it on build of Ruby extension.
mitchell [Sun, 24 May 2009 05:10:00 +0000 (01:10 -0400)]
Forgot to delete hash/*.h files in build.
mitchell [Sun, 24 May 2009 05:07:04 +0000 (01:07 -0400)]
Added documentation for compiling Ruby extension; src/ohcount.h
mitchell [Sun, 24 May 2009 04:59:03 +0000 (00:59 -0400)]
Added gestalts.
mitchell [Sun, 24 May 2009 04:56:53 +0000 (00:56 -0400)]
Removed hash header include guards; they're unnecessary.
mitchell [Sun, 24 May 2009 04:56:18 +0000 (00:56 -0400)]
Added Ruby interface.
mitchell [Sat, 23 May 2009 22:41:08 +0000 (18:41 -0400)]
Renamed ParsedLanguage->language to ParsedLanguage->name.
mitchell [Sat, 23 May 2009 19:09:39 +0000 (15:09 -0400)]
Added extra Doxygen doc; src/sourcefile.c
mitchell [Sat, 23 May 2009 19:08:58 +0000 (15:08 -0400)]
Changed BINARY from NULL to "\1" for faster binary file detection.
mitchell [Fri, 22 May 2009 22:30:04 +0000 (18:30 -0400)]
Added #include guards for src/hash/ headers.
mitchell [Wed, 20 May 2009 19:51:13 +0000 (15:51 -0400)]
Add option to build file to build Ohcount as shared library.
mitchell [Mon, 18 May 2009 21:09:49 +0000 (17:09 -0400)]
Use diskpath field if necessary for getting file contents; src/sourcefile.c