Go to the source code of this file.
◆ ohcount_parsed_language_add_code()
void ohcount_parsed_language_add_code |
( |
ParsedLanguage * |
parsed_language, |
|
|
char * |
p, |
|
|
int |
length |
|
) |
| |
Adds some code to the code buffer for the given ParsedLanguage.
- Parameters
-
◆ ohcount_parsed_language_add_comment()
void ohcount_parsed_language_add_comment |
( |
ParsedLanguage * |
parsed_language, |
|
|
char * |
p, |
|
|
int |
length |
|
) |
| |
Adds a comment to the comment buffer for the given ParsedLanguage.
- Parameters
-
◆ ohcount_parsed_language_free()
◆ ohcount_parsed_language_list_free()
Frees the memory allocated for the given ParsedLanguageList.
- Parameters
-
◆ ohcount_parsed_language_list_new()
Creates a new ParsedLanguageList that is initially empty.
- Returns
- ParsedLanguageList
◆ ohcount_parsed_language_new()
ParsedLanguage * ohcount_parsed_language_new |
( |
const char * |
language, |
|
|
int |
buffer_size |
|
) |
| |
Creates a new ParsedLanguage for the given language and buffer size. The given language is not copied and may not be 'free'd. Use a language defined in src/languages.h.
- Parameters
-
language | The parsed language. |
buffer_size | The size of the buffers to store parsed code and comment text. |
- Returns
- ParsedLanguage