Commit 7d412302 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Make certain that the final entry, that is only used to skip all

arguments of requests that are not implemented, gets a unique number.
(Bug 381).
parent 8d05da59
#
# $Id: fnc-def-init.awk,v 0.8 1999/05/24 09:34:24 ceder Exp $
# $Id: fnc-def-init.awk,v 0.9 2002/02/11 21:15:37 ceder Exp $
# Copyright (C) 1991, 1996, 1999 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,11 +22,11 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Id: fnc-def-init.awk,v 0.8 1999/05/24 09:34:24 ceder Exp $
# $Id: fnc-def-init.awk,v 0.9 2002/02/11 21:15:37 ceder Exp $
BEGIN {
printf("/* Don't edit this file - it is generated automatically");
printf(" from\n fnc-def-init.awk and fncdef.txt */\n\n");
cnt=0;
m = 0;
}
$1 == "#ifdef" {
printf("#ifdef %s\n", $2);
......@@ -37,7 +37,9 @@ $1 == "#endif" {
next;
}
$1 != "#" && $1 != "" {
cnt ++;
if (m < $1)
m = $1;
printf(" { ");
printf("%s, ", $1);
......@@ -49,5 +51,5 @@ $1 != "#" && $1 != "" {
printf("prot_a_parse_arg_%s },\n", $3);
}
END {
printf(" { %d, rt_success, prot_a_hunt_nl }\n", cnt);
printf(" { %d, rt_success, prot_a_hunt_nl }\n", m + 1);
}
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