Browse Source

ensure sec_factor is initialized

1.0.2
Georg Hopp 11 years ago
parent
commit
0cecd080e5
  1. 9
      Makefile.am
  2. 1
      src/timer_get.c

9
Makefile.am

@ -16,5 +16,12 @@ coverage-html:
-$(MAKE) -C tests $(AM_MAKEFLAGS) -k $@
endif
REGEX_CCLASS=/^[ \t]*\(TR_CLASS\|TR_INTERFACE\)\(([a-zA-Z0-9_]+)/\2/d,definition/
tags:
ctags -R -V --langdef=cclass --langmap=cclass:.h --regex-cclass='/^[ \t]*\(TR_CLASS\|TR_INTERFACE\)\(([a-zA-Z0-9_]+)/\2/d,definition/'
@ctags -R -V --langdef=cclass --langmap=cclass:.h \
--regex-cclass='$(REGEX_CCLASS)'
loc:
@find src/ include/ -not -path testers -and -name "*.[ch]" \
-exec sed '/\/\*/,/\*\//d;/\/\//d' {} \; | wc -l

1
src/timer_get.c

@ -43,6 +43,7 @@ TR_timerGet(TR_Timer this, unsigned long * missed)
case TR_TBASE_MIC:
sec_factor = 1000 * 1000;
break;
default:
case TR_TBASE_MIL:
sec_factor = 1000;
break;

Loading…
Cancel
Save