00001
00021
00022
00023
00024 #include <stdio.h>
00025 #include <signal.h>
00026 #include "djmenus.h"
00027 #include "intmatcher.h"
00028 #include "adaptmatch.h"
00029 #include "badwords.h"
00030 #include "sigmenu.h"
00031 #include "mfoutline.h"
00032 #include "normmatch.h"
00033 #include "speckle.h"
00034 #include "stopper.h"
00035
00036 #ifndef GRAPHICS_DISABLED
00037
00038
00039
00040 int handle_menu_16();
00041 int handle_menu_17();
00042 int handle_menu_18();
00043 int handle_menu_19();
00044 #endif
00045
00046
00047
00048
00052 void dj_cleanup() {
00053 EndAdaptiveClassifier();
00054 }
00055
00056
00060 void dj_statistics(FILE *File) {
00061 PrintAdaptiveStatistics(File);
00062 PrintBadWords(File);
00063 }
00064
00065
00069 void init_dj_debug() {
00070 static int first_time = 1;
00071
00072 if (first_time) {
00073 first_time = 0;
00074
00075 #ifndef GRAPHICS_DISABLED
00076 #ifndef SECURE_NAMES
00077 AddSignalMenuItem (SIGINT, 16, "Int Matcher Menu ...",
00078 handle_menu_16);
00079 AddSignalMenuItem (SIGINT, 17, "Stopping Criterion ...",
00080 handle_menu_17);
00081 AddSignalMenuItem (SIGINT, 18, "Adaptive Matcher ...",
00082 handle_menu_18);
00083 AddSignalMenuItem (SIGINT, 19, "Word Spacing ...",
00084 handle_menu_19);
00085 #endif
00086 #endif
00087 InitAdaptiveClassifierVars();
00088 InitMFOutlineVars();
00089 InitNormProtoVars();
00090 InitIntProtoVars();
00091 InitIntegerMatcherVars();
00092 InitSpeckleVars();
00093 InitStopperVars();
00094 }
00095 }
00096
00097
00101 #ifndef GRAPHICS_DISABLED
00102 handle_menu (16, handle_menu_16)
00103 handle_menu (17, handle_menu_17)
00104 handle_menu (18, handle_menu_18) handle_menu (19, handle_menu_19)
00105 #endif