Changeset 676dc44cb59a8fb684940300c42aea812eab4fe5

Show
Ignore:
Timestamp:
06/26/2008 04:46:35 PM (2 months ago)
Author:
Robin Luckey <robin@ohloh.net>
git-committer:
Robin Luckey <robin@ohloh.net> 1214523995 -0700
git-parent:

[adfc63c96dc82134b341c1fc225397eea16d4167]

git-author:
Robin Luckey <robin@ohloh.net> 1214523995 -0700
Message:

[FIX] increase MAX_LANGUAGE_NAME

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ext/ohcount_native/common.h

    radfc63c r676dc44  
    1616#define MAX_LANGUAGE_BREAKDOWN_SIZE 8 
    1717// The longest a language name can be 
    18 #define MAX_LANGUAGE_NAME 2
     18#define MAX_LANGUAGE_NAME 4
    1919 
    2020/******************************************* 
  • ext/ohcount_native/ragel_parser.c

    rcf74c60 r676dc44  
    234234  parse_buffer_len = buffer_len; 
    235235  int i; 
    236   for (i = 0; strlen(languages[i].name) != 0; i++) 
     236  for (i = 0; strlen(languages[i].name) != 0; i++) { 
    237237    if (strcmp(languages[i].name, lang) == 0) { 
    238238      languages[i].parser(buffer, buffer_len, count, ragel_parser_callback); 
    239239      return 1; 
    240240    } 
     241  } 
    241242  return 0; 
    242243}