ohcount
14 years ago[README] specify minimum version of gcc required 3.0.0
Andy Verprauskus [Wed, 30 Sep 2009 17:30:19 +0000 (10:30 -0700)] 
[README] specify minimum version of gcc required

14 years ago[NEW] Add .ml4 to the list of OCaml extensions
Robin Luckey [Wed, 16 Sep 2009 21:30:36 +0000 (14:30 -0700)] 
[NEW] Add .ml4 to the list of OCaml extensions

14 years agoMerge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcou...
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

14 years agoMerge branch 'master' of ssh://robinluckey@ohcount.git.sourceforge.net/gitroot/ohcoun...
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

14 years ago[CHANGE] Downcase all platform names
Robin Luckey [Fri, 11 Sep 2009 22:45:33 +0000 (15:45 -0700)] 
[CHANGE] Downcase all platform names

14 years agoOH-13: Refine Jaspersoft gestalt definitions
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.

14 years ago[FIX] unknown compiler flags are preceeded with -D to pass on to the
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

14 years ago[CHANGE] remove bin/ohcount; it should be built by users with ./build
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

14 years agowritten by
pshiryaev [Mon, 7 Sep 2009 14:46:46 +0000 (18:46 +0400)] 
written by

14 years agoadd support for F#
pshiryaev [Mon, 7 Sep 2009 14:30:44 +0000 (18:30 +0400)] 
add support for F#

14 years ago[CHANGE] workaround: $self not working on centos with swig 1.3.29, use
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

14 years ago[FIX] non-directory files in /tmp on CentOS have d_type of DT_UNKNOWN
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

14 years ago[CHANGE] Add support for FreeBSD (submitted by eg)
Andy Verprauskus [Wed, 2 Sep 2009 23:37:26 +0000 (16:37 -0700)] 
[CHANGE] Add support for FreeBSD (submitted by eg)

14 years ago[FIX] Spelling correction for Objective-C
Robin Luckey [Wed, 2 Sep 2009 23:11:59 +0000 (16:11 -0700)] 
[FIX] Spelling correction for Objective-C

14 years ago[FIX] exit is a function; why no error/warning on MAC?
Andy Verprauskus [Tue, 1 Sep 2009 21:50:27 +0000 (14:50 -0700)] 
[FIX] exit is a function; why no error/warning on MAC?

14 years ago[FIX] We really need those null bytes
Benjamin Kramer [Tue, 1 Sep 2009 17:25:18 +0000 (19:25 +0200)] 
[FIX] We really need those null bytes

14 years ago[FIX] another off-by-one (forgot \0)
Benjamin Kramer [Tue, 1 Sep 2009 16:33:26 +0000 (18:33 +0200)] 
[FIX] another off-by-one (forgot \0)

14 years ago[FIX] work around some off-by-one errors
Benjamin Kramer [Tue, 1 Sep 2009 15:32:28 +0000 (17:32 +0200)] 
[FIX] work around some off-by-one errors

14 years ago[FIX] line was being used uninitialized
Benjamin Kramer [Tue, 1 Sep 2009 15:31:25 +0000 (17:31 +0200)] 
[FIX] line was being used uninitialized

14 years ago[FIX] sourcefile: detect errors from fread(3)
Benjamin Kramer [Tue, 1 Sep 2009 15:29:25 +0000 (17:29 +0200)] 
[FIX] sourcefile: detect errors from fread(3)

14 years ago[FIX] large files crashed during license detection; allocate buffer on
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

14 years ago[FIX] Allocate large 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.

14 years ago[FIX] change git url
Andy Verprauskus [Fri, 28 Aug 2009 23:27:39 +0000 (16:27 -0700)] 
[FIX] change git url

14 years ago[NEW] commit documentation files to repository
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.

14 years ago[FIX] crash handling empty file with no file suffix
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

14 years agoMerge branch 'master' of ssh://averprauskus@ohcount.git.sourceforge.net/gitroot/ohcou...
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

14 years ago[FIX] pclose the popen
Andy Verprauskus [Sat, 22 Aug 2009 01:47:24 +0000 (18:47 -0700)] 
[FIX] pclose the popen

14 years ago[CHANGE] diff large files from the shell
Andy Verprauskus [Sat, 22 Aug 2009 01:31:13 +0000 (18:31 -0700)] 
[CHANGE] diff large files from the shell

14 years ago[NEW] Gestalts for silverlight + popular JS libs
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.

14 years ago[NEW] flash and flex gestalts
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

14 years ago[FIX] Rename "Flex" to "MXML"
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.

14 years ago[CHANGE] remove MAC optimizations; optimize elsewhere
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

14 years ago[CHANGE] cleanup disambiguate_aspx
Andy Verprauskus [Fri, 14 Aug 2009 05:01:12 +0000 (22:01 -0700)] 
[CHANGE] cleanup disambiguate_aspx

14 years ago[FIX] bus error handling aspx file without <%@
Andy Verprauskus [Fri, 14 Aug 2009 04:13:41 +0000 (21:13 -0700)] 
[FIX] bus error handling aspx file without <%@

14 years ago[FIX] Clean up zombie processes
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.

14 years ago[FIX] Sylwester's idea: require += for QMake disambiguation
Andy Verprauskus [Tue, 11 Aug 2009 20:07:56 +0000 (13:07 -0700)] 
[FIX] Sylwester's idea: require += for QMake disambiguation

14 years ago[FIX] disambiguate pro (IDL/PVWAVE vs QMAKE)
Andy Verprauskus [Mon, 10 Aug 2009 19:14:51 +0000 (12:14 -0700)] 
[FIX] disambiguate pro (IDL/PVWAVE vs QMAKE)

14 years ago[FIX] delete architecture-specific files
Andy Verprauskus [Fri, 7 Aug 2009 22:29:37 +0000 (15:29 -0700)] 
[FIX] delete architecture-specific files

14 years ago[NEW] handle idl/pvwave/gdl; ported to C by andy verprauskus
Sylwester Arabas [Thu, 6 Aug 2009 04:36:56 +0000 (21:36 -0700)] 
[NEW] handle idl/pvwave/gdl; ported to C by andy verprauskus

14 years ago[FIX] build tests
Andy Verprauskus [Tue, 4 Aug 2009 09:47:39 +0000 (02:47 -0700)] 
[FIX] build tests

14 years ago[NEW] Adding Jasper gestalts (from jay via ohloh)
Andy Verprauskus [Thu, 30 Jul 2009 22:51:37 +0000 (15:51 -0700)] 
[NEW] Adding Jasper gestalts (from jay via ohloh)

14 years ago[CHANGE] source_file_test run by default
Andy Verprauskus [Thu, 30 Jul 2009 22:25:55 +0000 (15:25 -0700)] 
[CHANGE] source_file_test run by default

14 years agoFixed detector for files that need to be written to disk before using `file -b`.
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`.

14 years ago[NEW] add broken test identifying _diff problem
andy [Wed, 29 Jul 2009 22:28:24 +0000 (15:28 -0700)] 
[NEW] add broken test identifying _diff problem

14 years ago[CHANGE] add C# to clutter language keywords, tweak native_code tells
andy [Mon, 27 Jul 2009 05:10:11 +0000 (22:10 -0700)] 
[CHANGE] add C# to clutter language keywords, tweak native_code tells

14 years ago[CHANGE] ignore changes to test/unit/run_tests.dSYM/
andy [Mon, 27 Jul 2009 05:09:40 +0000 (22:09 -0700)] 
[CHANGE] ignore changes to test/unit/run_tests.dSYM/

14 years ago[NEW] add Rakefile so ruby/old ohcount users get what they expect when
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

14 years ago[CHANGE] more/clearer docs
andy [Wed, 15 Jul 2009 06:50:34 +0000 (23:50 -0700)] 
[CHANGE] more/clearer docs

14 years ago[CHANGE] Add more info to the README, mostly copied from the original
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

14 years agoMerge branch 'master' of git@github.com:andyverprauskus/ohcount
andy [Tue, 14 Jul 2009 18:58:08 +0000 (11:58 -0700)] 
Merge branch 'master' of git@github.com:andyverprauskus/ohcount

14 years ago[NEW] adding ubuntu-amd 64 binaries to files; the ohcount binary should be in an...
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

14 years ago[FIX] allow gestalts tests to be run by individually
andy [Tue, 14 Jul 2009 09:44:05 +0000 (02:44 -0700)] 
[FIX] allow gestalts tests to be run by individually

14 years ago[CHANGE] from robin: [CHANGE] The phrase "MIT/X11 licensed" is now accepted as a...
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

14 years ago[NEW] add new gestalts; from me and Robin
andy [Tue, 14 Jul 2009 08:30:59 +0000 (01:30 -0700)] 
[NEW] add new gestalts; from me and Robin

14 years ago[NEW] add simple README
Andy Verprauskus [Mon, 13 Jul 2009 18:29:55 +0000 (11:29 -0700)] 
[NEW] add simple README

14 years ago[CHANGE] build ruby bindings per architecture; useful for Ohloh since we run differen...
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

14 years agoAdded regex to Javascript parser to fix failing test.
mitchell [Thu, 9 Jul 2009 02:30:08 +0000 (22:30 -0400)] 
Added regex to Javascript parser to fix failing test.

14 years ago[FIX] remove bogus debug printf
Andy Verprauskus [Tue, 7 Jul 2009 17:59:28 +0000 (10:59 -0700)] 
[FIX] remove bogus debug printf

14 years ago[NEW] add chunk of javascript extracted from firebug.js to test files; it is not...
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

14 years ago[FIX] new gestalts, step 2/2
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

14 years ago[CHANGE] copy over changes to add more gestalts, by Robin and Andy
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

14 years ago[FIX] make SourceFileList.each work
Andy Verprauskus [Wed, 24 Jun 2009 20:44:28 +0000 (13:44 -0700)] 
[FIX] make SourceFileList.each work

14 years ago[FIX] fix SourceFileList.analyze to accept an argument; my mistake in not specifying...
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

14 years agoFixes to pass Ruby extension tests.
mitchell [Tue, 23 Jun 2009 21:12:01 +0000 (17:12 -0400)] 
Fixes to pass Ruby extension tests.

14 years ago[FIX] broken unit test: sort the gestalt list before comparing
Andy Verprauskus [Tue, 23 Jun 2009 04:48:02 +0000 (21:48 -0700)] 
[FIX] broken unit test: sort the gestalt list before comparing

14 years ago[CHANGE] add next set of failures to tests
Andy Verprauskus [Tue, 23 Jun 2009 04:42:48 +0000 (21:42 -0700)] 
[CHANGE] add next set of failures to tests

14 years agoAdded code to Ruby extension to pass failing tests.
mitchell [Mon, 22 Jun 2009 22:29:28 +0000 (18:29 -0400)] 
Added code to Ruby extension to pass failing tests.

14 years agoFixed bugs in src/hash/languages.gperf related to 'cmake'.
mitchell [Mon, 22 Jun 2009 21:10:05 +0000 (17:10 -0400)] 
Fixed bugs in src/hash/languages.gperf related to 'cmake'.

14 years agoMerge branch 'master' of git://github.com/andyverprauskus/ohcount
mitchell [Mon, 22 Jun 2009 20:49:35 +0000 (16:49 -0400)] 
Merge branch 'master' of git://github.com/andyverprauskus/ohcount

14 years ago[CHANGE] complete last commit, add second necessary test
Andy Verprauskus [Sun, 21 Jun 2009 16:03:52 +0000 (09:03 -0700)] 
[CHANGE] complete last commit, add second necessary test

14 years ago[NEW] add tests (currently broken) for source_file_list
Andy Verprauskus [Sat, 20 Jun 2009 06:56:16 +0000 (23:56 -0700)] 
[NEW] add tests (currently broken) for source_file_list

14 years ago[FIX] temp fix for missing language in language_percents
Andy Verprauskus [Fri, 19 Jun 2009 22:20:47 +0000 (15:20 -0700)] 
[FIX] temp fix for missing language in language_percents

14 years ago[CHANGE] change src/diff.c for mitchell
Andy Verprauskus [Fri, 19 Jun 2009 22:19:08 +0000 (15:19 -0700)] 
[CHANGE] change src/diff.c for mitchell

14 years agoEdited build to build on Mac OSX.
mitchell [Thu, 11 Jun 2009 12:11:46 +0000 (05:11 -0700)] 
Edited build to build on Mac OSX.

14 years agoFixed build regexen to compile on Mac OSX.
mitchell [Wed, 10 Jun 2009 11:47:11 +0000 (04:47 -0700)] 
Fixed build regexen to compile on Mac OSX.

14 years agoMerge branch 'master' of git@github.com:andyverprauskus/ohcount
Andy Verprauskus [Fri, 5 Jun 2009 15:37:35 +0000 (08:37 -0700)] 
Merge branch 'master' of git@github.com:andyverprauskus/ohcount

14 years ago[FIX] make src/parsers/compile work on MACOS
Andy Verprauskus [Fri, 5 Jun 2009 15:37:13 +0000 (08:37 -0700)] 
[FIX] make src/parsers/compile work on MACOS

14 years agoMerge branch 'master' of git://github.com/andyverprauskus/ohcount
mitchell [Tue, 2 Jun 2009 01:20:09 +0000 (21:20 -0400)] 
Merge branch 'master' of git://github.com/andyverprauskus/ohcount

14 years agoChange shbang so build runs on Ubuntu.
mitchell [Mon, 1 Jun 2009 21:39:41 +0000 (17:39 -0400)] 
Change shbang so build runs on Ubuntu.

14 years ago[FIX] force build to use bash instead of default shell, makes build work 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

14 years agoSince directories are added to SourceFileLists, don't mistake as extensions.
mitchell [Wed, 27 May 2009 01:43:05 +0000 (21:43 -0400)] 
Since directories are added to SourceFileLists, don't mistake as extensions.

14 years agoUpdated test/unit/sourcefile_test.h for completeness.
mitchell [Sun, 24 May 2009 19:18:43 +0000 (15:18 -0400)] 
Updated test/unit/sourcefile_test.h for completeness.

14 years agoAdded documentation to src/ohcount.h noting gestalts require Ruby extension.
mitchell [Sun, 24 May 2009 18:50:16 +0000 (14:50 -0400)] 
Added documentation to src/ohcount.h noting gestalts require Ruby extension.

14 years agoRemoved gestalt options from C ohcount (use ruby/gestalt.rb).
mitchell [Sun, 24 May 2009 18:41:12 +0000 (14:41 -0400)] 
Removed gestalt options from C ohcount (use ruby/gestalt.rb).

14 years agoFixed license detection for source files with no parsed languages.
mitchell [Sun, 24 May 2009 18:39:15 +0000 (14:39 -0400)] 
Fixed license detection for source files with no parsed languages.

14 years agoChanged build to use platform-specific Ruby include directory via mkmf.
mitchell [Sun, 24 May 2009 16:24:24 +0000 (12:24 -0400)] 
Changed build to use platform-specific Ruby include directory via mkmf.

14 years agoruby/gestalt.rb will print gestalts if it is run.
mitchell [Sun, 24 May 2009 15:59:45 +0000 (11:59 -0400)] 
ruby/gestalt.rb will print gestalts if it is run.

14 years agoRemove ruby/ohcount.so in build clean.
mitchell [Sun, 24 May 2009 14:56:57 +0000 (10:56 -0400)] 
Remove ruby/ohcount.so in build clean.

14 years agoAdded gestalt_test.rb helper and run it on build of Ruby extension.
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.

14 years agoForgot to delete hash/*.h files in build.
mitchell [Sun, 24 May 2009 05:10:00 +0000 (01:10 -0400)] 
Forgot to delete hash/*.h files in build.

14 years agoAdded documentation for compiling Ruby extension; src/ohcount.h
mitchell [Sun, 24 May 2009 05:07:04 +0000 (01:07 -0400)] 
Added documentation for compiling Ruby extension; src/ohcount.h

14 years agoAdded gestalts.
mitchell [Sun, 24 May 2009 04:59:03 +0000 (00:59 -0400)] 
Added gestalts.

14 years agoRemoved hash header include guards; they're unnecessary.
mitchell [Sun, 24 May 2009 04:56:53 +0000 (00:56 -0400)] 
Removed hash header include guards; they're unnecessary.

14 years agoAdded Ruby interface.
mitchell [Sun, 24 May 2009 04:56:18 +0000 (00:56 -0400)] 
Added Ruby interface.

14 years agoRenamed ParsedLanguage->language to ParsedLanguage->name.
mitchell [Sat, 23 May 2009 22:41:08 +0000 (18:41 -0400)] 
Renamed ParsedLanguage->language to ParsedLanguage->name.

14 years agoAdded extra Doxygen doc; src/sourcefile.c
mitchell [Sat, 23 May 2009 19:09:39 +0000 (15:09 -0400)] 
Added extra Doxygen doc; src/sourcefile.c

14 years agoChanged BINARY from NULL to "\1" for faster binary file detection.
mitchell [Sat, 23 May 2009 19:08:58 +0000 (15:08 -0400)] 
Changed BINARY from NULL to "\1" for faster binary file detection.

14 years agoAdded #include guards for src/hash/ headers.
mitchell [Fri, 22 May 2009 22:30:04 +0000 (18:30 -0400)] 
Added #include guards for src/hash/ headers.

14 years agoAdd option to build file to build Ohcount as shared library.
mitchell [Wed, 20 May 2009 19:51:13 +0000 (15:51 -0400)] 
Add option to build file to build Ohcount as shared library.

14 years agoUse diskpath field if necessary for getting file contents; src/sourcefile.c
mitchell [Mon, 18 May 2009 21:09:49 +0000 (17:09 -0400)] 
Use diskpath field if necessary for getting file contents; src/sourcefile.c