ohcount: /Users/andy/dev/ohcount/src/loc.h Source File

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# /Users/andy/dev/ohcount/src/loc.h

Go to the documentation of this file.

    00001 // loc.h written by Mitchell Foral. mitchell<att>caladbolg.net.
    00002 // See COPYING for license information.
    00003
    00004 #ifndef OHCOUNT_LOC_H
    00005 #define OHCOUNT_LOC_H
    00006
    00007 #include "structs.h"
    00008
    00021 Loc *ohcount_loc_new(const char *language, int code, int comments, int blanks,
    00022                      int filecount);
    00023
    00028 int ohcount_loc_total(Loc *loc);
    00029
    00037 void ohcount_loc_add_loc(Loc *loc, Loc *other);
    00038
    00044 int ohcount_loc_is_equal(Loc *loc, Loc *other);
    00045
    00050 void ohcount_loc_free(Loc *loc);
    00051
    00057 LocList *ohcount_loc_list_new();
    00058
    00065 void ohcount_loc_list_add_loc(LocList *list, Loc *loc);
    00066
    00074 void ohcount_loc_list_add_loc_list(LocList *list, LocList *loc_list);
    00075
    00083 Loc *ohcount_loc_list_get_loc(LocList *list, const char *language);
    00084
    00089 int ohcount_loc_list_code(LocList *list);
    00090
    00095 int ohcount_loc_list_comments(LocList *list);
    00096
    00101 int ohcount_loc_list_blanks(LocList *list);
    00102
    00107 int ohcount_loc_list_total(LocList *list);
    00108
    00113 int ohcount_loc_list_filecount(LocList *list);
    00114
    00121 LocList *ohcount_loc_list_new_compact(LocList *list);
    00122
    00127 void ohcount_loc_list_free(LocList *list);
    00128
    00144 LocDelta *ohcount_loc_delta_new(const char *language, int code_added,
    00145                                 int code_removed, int comments_added,
    00146                                 int comments_removed, int blanks_added,
    00147                                 int blanks_removed);
    00148
    00153 int ohcount_loc_delta_net_code(LocDelta *delta);
    00154
    00159 int ohcount_loc_delta_net_comments(LocDelta *delta);
    00160
    00165 int ohcount_loc_delta_net_blanks(LocDelta *delta);
    00166
    00171 int ohcount_loc_delta_net_total(LocDelta *delta);
    00172
    00180 void ohcount_loc_delta_add_loc_delta(LocDelta *delta, LocDelta *other);
    00181
    00186 int ohcount_loc_delta_is_changed(LocDelta *delta);
    00187
    00193 int ohcount_loc_delta_is_equal(LocDelta *delta, LocDelta *other);
    00194
    00199 void ohcount_loc_delta_free(LocDelta *delta);
    00200
    00206 LocDeltaList *ohcount_loc_delta_list_new();
    00207
    00214 void ohcount_loc_delta_list_add_loc_delta(LocDeltaList *list, LocDelta *delta);
    00215
    00223 void ohcount_loc_delta_list_add_loc_delta_list(LocDeltaList *list,
    00224                                                LocDeltaList *loc_delta_list);
    00225
    00233 LocDelta *ohcount_loc_delta_list_get_loc_delta(LocDeltaList *list,
    00234                                                const char *language);
    00235
    00240 int ohcount_loc_delta_list_code_added(LocDeltaList *list);
    00241
    00246 int ohcount_loc_delta_list_code_removed(LocDeltaList *list);
    00247
    00252 int ohcount_loc_delta_list_comments_added(LocDeltaList *list);
    00253
    00258 int ohcount_loc_delta_list_comments_removed(LocDeltaList *list);
    00259
    00264 int ohcount_loc_delta_list_blanks_added(LocDeltaList *list);
    00265
    00270 int ohcount_loc_delta_list_blanks_removed(LocDeltaList *list);
    00271
    00276 int ohcount_loc_delta_list_net_code(LocDeltaList *list);
    00277
    00282 int ohcount_loc_delta_list_net_comments(LocDeltaList *list);
    00283
    00288 int ohcount_loc_delta_list_net_blanks(LocDeltaList *list);
    00289
    00294 int ohcount_loc_delta_list_net_total(LocDeltaList *list);
    00295
    00302 LocDeltaList *ohcount_loc_delta_list_new_compact(LocDeltaList *list);
    00303
    00308 void ohcount_loc_delta_list_free(LocDeltaList *list);
    00309
    00310 #endif