#include <stdio.h>
#include <signal.h>
#include "djmenus.h"
#include "intmatcher.h"
#include "adaptmatch.h"
#include "badwords.h"
#include "sigmenu.h"
#include "mfoutline.h"
#include "normmatch.h"
#include "speckle.h"
#include "stopper.h"
Go to the source code of this file.
void dj_cleanup | ( | ) |
Call at end of program to clean up.
* (c) Copyright 1990, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License.
Definition at line 52 of file djmenus.cpp.
References EndAdaptiveClassifier().
Referenced by program_editdown().
00052 { 00053 EndAdaptiveClassifier(); 00054 }
void dj_statistics | ( | FILE * | File | ) |
Call at end of program to print out statistics gathered.
Definition at line 60 of file djmenus.cpp.
References PrintAdaptiveStatistics(), and PrintBadWords().
Referenced by save_summary().
00060 { 00061 PrintAdaptiveStatistics(File); 00062 PrintBadWords(File); 00063 }
handle_menu_17 handle_menu | ( | 18 | , | |
handle_menu_18 | ||||
) |
handle_menu | ( | 16 | , | |
handle_menu_16 | ||||
) |
Initialize the traps for handling the debug stuff.
int handle_menu_16 | ( | ) |
* (c) Copyright 1989, Hewlett-Packard Company. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License.
Referenced by init_dj_debug().
int handle_menu_17 | ( | ) |
Referenced by init_dj_debug().
int handle_menu_18 | ( | ) |
Referenced by init_dj_debug().
int handle_menu_19 | ( | ) |
Referenced by init_dj_debug().
void init_dj_debug | ( | ) |
Initialize the traps for handling the splitter debug stuff.
Definition at line 69 of file djmenus.cpp.
References AddSignalMenuItem(), handle_menu_16(), handle_menu_17(), handle_menu_18(), handle_menu_19(), InitAdaptiveClassifierVars(), InitIntegerMatcherVars(), InitIntProtoVars(), InitMFOutlineVars(), InitNormProtoVars(), InitSpeckleVars(), and InitStopperVars().
Referenced by program_editup().
00069 { 00070 static int first_time = 1; 00071 00072 if (first_time) { 00073 first_time = 0; 00074 /* Set up the interrupts */ 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 }