aboutsummaryrefslogtreecommitdiffstats
path: root/figs.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-22 14:08:58 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-22 14:08:58 +0100
commit74e2beb5b80470a26054c8c51665996b10303f68 (patch)
tree55032f4b62aea432d03c8a49adfab51740b4640b /figs.cpp
parente05c1b5903709651aac348fd5144de3ccbbd77a3 (diff)
downloadetisnoop-74e2beb5b80470a26054c8c51665996b10303f68.tar.gz
etisnoop-74e2beb5b80470a26054c8c51665996b10303f68.tar.bz2
etisnoop-74e2beb5b80470a26054c8c51665996b10303f68.zip
Add repetition rate analyser
Diffstat (limited to 'figs.cpp')
-rw-r--r--figs.cpp52
1 files changed, 27 insertions, 25 deletions
diff --git a/figs.cpp b/figs.cpp
index 4e7e94c..a1557d7 100644
--- a/figs.cpp
+++ b/figs.cpp
@@ -74,33 +74,33 @@ void figs_cleardb()
}
-void fig0_select(fig0_common_t& fig0, int indent)
+bool fig0_select(fig0_common_t& fig0, int indent)
{
switch (fig0.ext()) {
- case 0: fig0_0(fig0, indent); break;
- case 1: fig0_1(fig0, indent); break;
- case 2: fig0_2(fig0, indent); break;
- case 3: fig0_3(fig0, indent); break;
- case 5: fig0_5(fig0, indent); break;
- case 6: fig0_6(fig0, indent); break;
- case 8: fig0_8(fig0, indent); break;
- case 9: fig0_9(fig0, indent); break;
- case 10: fig0_10(fig0, indent); break;
- case 11: fig0_11(fig0, indent); break;
- case 13: fig0_13(fig0, indent); break;
- case 14: fig0_14(fig0, indent); break;
- case 16: fig0_16(fig0, indent); break;
- case 17: fig0_17(fig0, indent); break;
- case 18: fig0_18(fig0, indent); break;
- case 19: fig0_19(fig0, indent); break;
- case 21: fig0_21(fig0, indent); break;
- case 22: fig0_22(fig0, indent); break;
- case 24: fig0_24(fig0, indent); break;
- case 25: fig0_25(fig0, indent); break;
- case 26: fig0_26(fig0, indent); break;
- case 27: fig0_27(fig0, indent); break;
- case 28: fig0_28(fig0, indent); break;
- case 31: fig0_31(fig0, indent); break;
+ case 0: return fig0_0(fig0, indent); break;
+ case 1: return fig0_1(fig0, indent); break;
+ case 2: return fig0_2(fig0, indent); break;
+ case 3: return fig0_3(fig0, indent); break;
+ case 5: return fig0_5(fig0, indent); break;
+ case 6: return fig0_6(fig0, indent); break;
+ case 8: return fig0_8(fig0, indent); break;
+ case 9: return fig0_9(fig0, indent); break;
+ case 10: return fig0_10(fig0, indent); break;
+ case 11: return fig0_11(fig0, indent); break;
+ case 13: return fig0_13(fig0, indent); break;
+ case 14: return fig0_14(fig0, indent); break;
+ case 16: return fig0_16(fig0, indent); break;
+ case 17: return fig0_17(fig0, indent); break;
+ case 18: return fig0_18(fig0, indent); break;
+ case 19: return fig0_19(fig0, indent); break;
+ case 21: return fig0_21(fig0, indent); break;
+ case 22: return fig0_22(fig0, indent); break;
+ case 24: return fig0_24(fig0, indent); break;
+ case 25: return fig0_25(fig0, indent); break;
+ case 26: return fig0_26(fig0, indent); break;
+ case 27: return fig0_27(fig0, indent); break;
+ case 28: return fig0_28(fig0, indent); break;
+ case 31: return fig0_31(fig0, indent); break;
default: {
char desc[256];
sprintf(desc, "FIG 0/%d: unknown", fig0.ext());
@@ -108,5 +108,7 @@ void fig0_select(fig0_common_t& fig0, int indent)
break;
}
}
+
+ return false;
}