Changeset 688 in MondoRescue for trunk/tools/quality


Ignore:
Timestamp:
Jul 17, 2006, 3:44:46 PM (18 years ago)
Author:
bcornec
Message:

Huge memory management patch.
Still not finished but a lot as been done.
What remains is around some functions returning strings, and some structure members.
(Could not finish due to laptop failure !)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/quality

    r146 r688  
    2828
    2929# How many sprintf/strcat/strcpy vs asprintf are they
    30 for s in asprintf sprintf strcat strcpy fgets malloc_string MAX_STR_LEN goto; do
     30for s in asprintf sprintf strcat strcpy strncpy fgets malloc malloc_string MAX_STR_LEN getcwd goto; do
    3131    echo "monodrescue $s usage : "
    32     for i in `find . -name '*.c' -o -name '*.h' |  egrep -v '\.svn' | egrep -v '/\*' | xargs grep -r -c -w $s | egrep -v ":0$"`; do
     32    tot=0
     33    for i in `find . -name '*.c' -o -name '*.h' |  egrep -v '\.svn|/\*|monitas' | xargs grep -r -c -w $s | egrep -v ":0$"`; do
    3334            echo " === $i"
     35            ((tot=$tot+`echo $i | cut -d: -f2`))
    3436    done
     37    echo "total $s usage : $tot"
    3538done
    3639
Note: See TracChangeset for help on using the changeset viewer.