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 
21 Loc *ohcount_loc_new(const char *language, int code, int comments, int blanks,
22  int filecount);
23 
28 int ohcount_loc_total(Loc *loc);
29 
37 void ohcount_loc_add_loc(Loc *loc, Loc *other);
38 
44 int ohcount_loc_is_equal(Loc *loc, Loc *other);
45 
50 void ohcount_loc_free(Loc *loc);
51 
58 
65 void ohcount_loc_list_add_loc(LocList *list, Loc *loc);
66 
74 void ohcount_loc_list_add_loc_list(LocList *list, LocList *loc_list);
75 
83 Loc *ohcount_loc_list_get_loc(LocList *list, const char *language);
84 
90 
96 
102 
108 
114 
122 
127 void ohcount_loc_list_free(LocList *list);
128 
144 LocDelta *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 
193 int ohcount_loc_delta_is_equal(LocDelta *delta, LocDelta *other);
194 
199 void ohcount_loc_delta_free(LocDelta *delta);
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