ohcount
sourcefile.h
Go to the documentation of this file.
1// sourcefile.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2// See COPYING for license information.
3
4#ifndef OHCOUNT_SOURCEFILE_H
5#define OHCOUNT_SOURCEFILE_H
6
7#include "loc.h"
8#include "parsed_language.h"
9
16SourceFile *ohcount_sourcefile_new(const char *filepath);
17
26 const char *diskpath);
27
35 const char *contents);
36
44
51
59 const char *language);
60
68
75
82 *sourcefile);
83
92 void (*callback) (const char *,
93 const char *, int,
94 int, void *),
95 void *userdata);
96
105 void (*callback)
106 (const char *,
107 const char *, int,
108 int, void *),
109 void *userdata);
110
119
129
140
154 const char *language,
155 SourceFile *to);
156
162
170
178 const char *filepath);
179
187 const char *directory);
188
195
201
202#endif
void ohcount_sourcefile_list_add_directory(SourceFileList *list, const char *directory)
LicenseList * ohcount_sourcefile_get_license_list(SourceFile *sourcefile)
void ohcount_sourcefile_set_diskpath(SourceFile *sourcefile, const char *diskpath)
LocList * ohcount_sourcefile_get_loc_list(SourceFile *sourcefile)
const char * ohcount_sourcefile_get_language(SourceFile *sourcefile)
void ohcount_sourcefile_parse(SourceFile *sourcefile)
SourceFileList * ohcount_sourcefile_list_new()
LocDeltaList * ohcount_sourcefile_diff(SourceFile *from, SourceFile *to)
void ohcount_sourcefile_set_contents(SourceFile *sourcefile, const char *contents)
ParsedLanguageList * ohcount_sourcefile_get_parsed_language_list(SourceFile *sourcefile)
char * ohcount_sourcefile_get_contents(SourceFile *sourcefile)
void ohcount_sourcefile_list_free(SourceFileList *list)
void ohcount_sourcefile_parse_entities_with_callback(SourceFile *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)
SourceFile * ohcount_sourcefile_new(const char *filepath)
void ohcount_sourcefile_list_add_file(SourceFileList *list, const char *filepath)
LocDelta * ohcount_sourcefile_calc_loc_delta(SourceFile *from, const char *language, SourceFile *to)
void ohcount_sourcefile_parse_with_callback(SourceFile *sourcefile, void(*callback)(const char *, const char *, int, int, void *), void *userdata)
LocList * ohcount_sourcefile_list_analyze_languages(SourceFileList *list)
void ohcount_sourcefile_free(SourceFile *sourcefile)
int ohcount_sourcefile_get_contents_size(SourceFile *sourcefile)
void ohcount_sourcefile_set_language(SourceFile *sourcefile, const char *language)
Holds a list of Licenses in a linked list.
Definition: structs.h:50
Tracks changes in lines of code, comments, and blank lines for multiple languages using a linked list...
Definition: structs.h:154
Tracks changes in lines of code, comments, and blank lines for a single language.
Definition: structs.h:125
Tracks total lines of code, comments, and blanks for multiple languages using a linked list.
Definition: structs.h:99
Holds a set of ParsedLanguages in a linked list.
Definition: structs.h:213
Contains a set of SourceFiles.
Definition: structs.h:315
Represents a single source code file.
Definition: structs.h:238