Commit 674d898b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum call_header): New value: illegal_fnc (which is always one

greater than the highest supported call number).
parent 423908a6
#
# $Id: com-h.awk,v 0.3 1991/09/15 10:32:58 linus Exp $
# $Id: com-h.awk,v 0.4 1996/08/01 18:31:07 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,7 +22,7 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# $Id: com-h.awk,v 0.3 1991/09/15 10:32:58 linus Exp $
# $Id: com-h.awk,v 0.4 1996/08/01 18:31:07 ceder Exp $
BEGIN {
printf("/*\n");
printf(" * Don't edit this file! It is generated from fncdef.txt\n");
......@@ -34,13 +34,11 @@ BEGIN {
$1 == "#" {
next;
}
cnt > 0 {
printf(",");
}
{
printf("\n call_fnc_%-20s = %d", $2, cnt++);
printf("\n call_fnc_%-20s = %d,", $2, cnt++);
}
END { printf("\n};\n\n");
END { printf("\n illegal_fnc = %d", cnt)
printf("\n};\n\n");
printf("typedef enum call_header Call_header;\n");
}
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