ohcount
loc.h
Go to the documentation of this file.
1// loc.h written by Mitchell Foral. mitchell<att>caladbolg.net.
2// See COPYING for license information.
3
4#ifndef OHCOUNT_LOC_H
5#define OHCOUNT_LOC_H
6
7#include "structs.h"
8
21Loc *ohcount_loc_new(const char *language, int code, int comments, int blanks,
22 int filecount);
23
29
37void ohcount_loc_add_loc(Loc *loc, Loc *other);
38
44int ohcount_loc_is_equal(Loc *loc, Loc *other);
45
51
58
66
75
83Loc *ohcount_loc_list_get_loc(LocList *list, const char *language);
84
90
96
102
108
114
122
128
144LocDelta *ohcount_loc_delta_new(const char *language, int code_added,
145 int code_removed, int comments_added,
146 int comments_removed, int blanks_added,
147 int blanks_removed);
148
154
160
166
172
181
187
194
200
207
215
224 LocDeltaList *loc_delta_list);
225
234 const char *language);
235
241
247
253
259
265
271
277
283
289
295
303
309
310#endif
LocDeltaList * ohcount_loc_delta_list_new_compact(LocDeltaList *list)
void ohcount_loc_add_loc(Loc *loc, Loc *other)
int ohcount_loc_list_code(LocList *list)
void ohcount_loc_delta_list_add_loc_delta_list(LocDeltaList *list, LocDeltaList *loc_delta_list)
int ohcount_loc_delta_net_blanks(LocDelta *delta)
Loc * ohcount_loc_list_get_loc(LocList *list, const char *language)
void ohcount_loc_delta_free(LocDelta *delta)
int ohcount_loc_delta_list_comments_added(LocDeltaList *list)
Loc * ohcount_loc_new(const char *language, int code, int comments, int blanks, int filecount)
void ohcount_loc_delta_list_free(LocDeltaList *list)
void ohcount_loc_delta_add_loc_delta(LocDelta *delta, LocDelta *other)
int ohcount_loc_is_equal(Loc *loc, Loc *other)
LocDelta * ohcount_loc_delta_new(const char *language, int code_added, int code_removed, int comments_added, int comments_removed, int blanks_added, int blanks_removed)
int ohcount_loc_delta_net_code(LocDelta *delta)
int ohcount_loc_list_blanks(LocList *list)
int ohcount_loc_delta_net_total(LocDelta *delta)
int ohcount_loc_total(Loc *loc)
void ohcount_loc_delta_list_add_loc_delta(LocDeltaList *list, LocDelta *delta)
void ohcount_loc_list_add_loc(LocList *list, Loc *loc)
int ohcount_loc_list_comments(LocList *list)
LocList * ohcount_loc_list_new()
int ohcount_loc_delta_list_net_comments(LocDeltaList *list)
int ohcount_loc_delta_list_net_code(LocDeltaList *list)
int ohcount_loc_delta_list_net_blanks(LocDeltaList *list)
int ohcount_loc_delta_list_blanks_added(LocDeltaList *list)
void ohcount_loc_list_free(LocList *list)
void ohcount_loc_list_add_loc_list(LocList *list, LocList *loc_list)
LocList * ohcount_loc_list_new_compact(LocList *list)
LocDelta * ohcount_loc_delta_list_get_loc_delta(LocDeltaList *list, const char *language)
int ohcount_loc_delta_list_comments_removed(LocDeltaList *list)
int ohcount_loc_list_filecount(LocList *list)
int ohcount_loc_delta_is_equal(LocDelta *delta, LocDelta *other)
void ohcount_loc_free(Loc *loc)
int ohcount_loc_delta_is_changed(LocDelta *delta)
int ohcount_loc_delta_list_code_added(LocDeltaList *list)
int ohcount_loc_delta_list_blanks_removed(LocDeltaList *list)
int ohcount_loc_delta_list_net_total(LocDeltaList *list)
int ohcount_loc_list_total(LocList *list)
int ohcount_loc_delta_list_code_removed(LocDeltaList *list)
LocDeltaList * ohcount_loc_delta_list_new()
int ohcount_loc_delta_net_comments(LocDelta *delta)
#define code
Definition: parser_macros.h:130
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
Tracks total lines of code, comments, and blanks for a single language.
Definition: structs.h:76