Commit 6ca0b2a7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_text_numbers): New variable.

(check_texts): Print a line for each checked text if dump_text_numbers
	is set.
(main): Set dump_text_numbers if -t was given.  Changed usage-messages
	to include [-t].
parent be6e0f20
/*
* $Id: dbck.c,v 0.25 1995/10/07 14:28:27 ceder Exp $
* $Id: dbck.c,v 0.26 1995/11/02 20:29:23 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -28,7 +28,7 @@
* Author: Per Cederqvist.
*/
static char *rcsid = "$Id: dbck.c,v 0.25 1995/10/07 14:28:27 ceder Exp $";
static char *rcsid = "$Id: dbck.c,v 0.26 1995/11/02 20:29:23 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -74,6 +74,10 @@ int sflag=0; /* Statistic flag. */
present here due to a bug in lyskomd 1.6.1. */
int unset_change_name_is_error=0;
/* A list of all available text numbers was useful when developing
new data structures in lyskomd in 1995. Option: -t. */
int dump_text_numbers=0;
int modifications = 0;
typedef struct {
......@@ -638,6 +642,9 @@ check_texts(void)
}
else
{
if (dump_text_numbers)
log("Checking text_no %ld\n", (unsigned long)ct);
bytes += ctp->no_of_chars;
if ( ctp->no_of_chars > max_bytes )
{
......@@ -1282,9 +1289,14 @@ main (int argc,
unset_change_name_is_error = 1;
break;
case 't':
dump_text_numbers++;
break;
default:
restart_kom("usage: %s %s [config_file]\n",
argv[0], "[-d ...] [-i] [-r] [-v] [-g] [-s] [-c]");
argv[0],
"[-d ...] [-i] [-r] [-v] [-g] [-s] [-c] [-t]");
}
}
......@@ -1303,7 +1315,7 @@ main (int argc,
if (i != argc)
restart_kom("usage: %s %s [config_file]\n",
argv[0], "[-d ...] [-i] [-r] [-v] [-g] [-s] [-c]");
argv[0], "[-d ...] [-i] [-r] [-v] [-g] [-s] [-c] [-t]");
s_set_storage_management(smalloc, srealloc, sfree);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment