Commit 423908a6 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Output code that calls restart_kom if illegal_fnc is ever attempted to

be called.
parent ce702017
#
# $Id: call-switch.awk,v 0.11 1996/06/14 15:41:46 byers Exp $
# $Id: call-switch.awk,v 0.12 1996/08/01 18:30:45 ceder Exp $
# Copyright (C) 1991, 1993, 1994, 1995 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: call-switch.awk,v 0.11 1996/06/14 15:41:46 byers Exp $
# $Id: call-switch.awk,v 0.12 1996/08/01 18:30:45 ceder Exp $
BEGIN {
printf("/* Don't edit this file - it is generated automatically");
printf(" from\n call-switch.awk and fncdef.txt */\n");
......@@ -82,4 +82,9 @@ $1 != "#" {
printf("\t break;\n\n");
}
END { printf("\t}\n"); }
END {
printf("\tcase illegal_fnc:\n");
print("\t restart_kom(\"unreachable code reached -- illegal_fnc\");");
printf("\t break;\n");
printf("\t}\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