geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

stats.c File Reference
#include "general.h"
#include <stdio.h>
#include "entry_p.h"
#include "options_p.h"
#include "stats_p.h"
Include dependency graph for stats.c:

Go to the source code of this file.

Macros

#define plural(value)   (((unsigned long)(value) == 1L) ? "" : "s")
 

Functions

void addTotals (const unsigned int files, const long unsigned int lines, const long unsigned int bytes)
 
void printTotals (const clock_t *const timeStamps, bool append, sortType sorted)
 

Variables

struct {
   long   files
 
   long   lines
 
   long   bytes
 
Totals = { 0, 0, 0 }
 

Macro Definition Documentation

◆ plural

#define plural (   value)    (((unsigned long)(value) == 1L) ? "" : "s")

Definition at line 27 of file stats.c.

Function Documentation

◆ addTotals()

void addTotals ( const unsigned int  files,
const long unsigned int  lines,
const long unsigned int  bytes 
)

Definition at line 38 of file stats.c.

References bytes, files, lines, and Totals.

Referenced by closeInputFile(), and parseFileWithMio().

◆ printTotals()

void printTotals ( const clock_t *const  timeStamps,
bool  append,
sortType  sorted 
)

Definition at line 47 of file stats.c.

References maxTagsLine(), numTagsAdded(), numTagsTotal(), plural, SO_UNSORTED, and Totals.

Referenced by batchMakeTags().

Variable Documentation

◆ bytes

◆ files

long files

Definition at line 32 of file stats.c.

Referenced by add_group_keys(), addTotals(), batchMakeTags(), and open_selected_files().

◆ lines

◆ 

struct { ... } Totals

Referenced by addTotals(), and printTotals().