* src/misc/timer.hh, src/misc/timer.cc: New files.
* src/misc/Makefile.am (misc_HEADERS, libmisc_la_SOURCES): Add them. * src/tgbatest/randtgba.cc: Use time_map to measure the algorithms. Add the -R option. * src/sanity/style.sh: Let me use `for (.*;;)'.
This commit is contained in:
parent
0531dfe6e5
commit
668666d246
6 changed files with 407 additions and 66 deletions
|
|
@ -110,7 +110,7 @@ for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
|
|||
grep '[ ];' $tmp &&
|
||||
diag 'No space before semicolon.'
|
||||
|
||||
grep -v 'for (;;)' $tmp | grep ';[^ ")]' &&
|
||||
grep -v 'for (.*;;)' $tmp | grep ';[^ ")]' &&
|
||||
diag 'Must have space or newline after semicolon.'
|
||||
|
||||
grep '}.*}' $tmp &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue