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

awk compatibility.

parent cd9ac781
#
# $Id: prot-a-parse-arg-c.awk,v 0.5 1991/12/17 22:20:58 ceder Exp $
# $Id: prot-a-parse-arg-c.awk,v 0.6 1992/02/21 00:51:06 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: prot-a-parse-arg-c.awk,v 0.5 1991/12/17 22:20:58 ceder Exp $
# $Id: prot-a-parse-arg-c.awk,v 0.6 1992/02/21 00:51:06 ceder Exp $
BEGIN {
printf("/* Don't edit this file - it is generated automatically");
printf(" from\n prot-a-parse-arg-c.awk and fncdef.txt */\n\n");
......@@ -54,10 +54,10 @@ $1 != "#" {
if ( $i == "num" )
printf("\tclient->num%d = prot_a_parse_long(client);\n", num++);
else if ( $i == "c_string" )
printf("\tprot_a_parse_string(client, &client->c_string%d, %s);\n",
printf("\tprot_a_parse_string(client, &client->c_string%d, %s);\n",\
c_string++, $(++i));
else if ( $i == "string" )
printf("\tprot_a_parse_string(client, &client->string%d, %s);\n",
printf("\tprot_a_parse_string(client, &client->string%d, %s);\n",\
string++, $(++i));
else if ( $i == "priv_bits" )
printf("\tprot_a_parse_priv_bits(client, &client->priv_bits);\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