debug.cc
来自「Larbin互联网蜘蛛索引系统」· CC 代码 · 共 51 行
CC
51 行
// Larbin// Sebastien Ailleret// 15-11-99 -> 06-06-00#include <iostream.h>#include "types.h"#ifndef NDEBUGuint statePipe; // where is fetchPipeuint stateNonBlock; // where is fetchNonBlockuint stateBlock; // where are fetchBlockuint sites = 0; // Number of occupied sitesuint debUrl = 0; // How many urls in ramuint debPars = 0; // How many parsers are there#endif // NDEBUG#ifndef NOSTATSuint siteSeen = 0;uint siteDNS = 0; // has a DNS entryuint siteRobots = 0;uint robotsOK = 0;uint hashUrls = 0;uint urls = 0;uint pages = 0;uint interestingPage = 0;uint interestingSeen = 0;uint interestingExtension = 0;uint extensionTreated = 0;uint answers[nbAnswers] = {0,0,0,0,0,0,0,0,0};#endif // NOSTATSvoid myAssert (bool b, char *s) { if (!b) {#ifndef NDEBUG#endif // NDEBUG#ifndef NOSTATS#endif // NOSTATS cerr << s << "\n"; exit(1); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?