Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
6cb4d59a
Commit
6cb4d59a
authored
Feb 21, 1992
by
Per Cederqvist
Browse files
awk compatibility.
parent
cd9ac781
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/prot-a-parse-arg-c.awk
View file @
6cb4d59a
#
# $Id: prot-a-parse-arg-c.awk,v 0.
5
199
1/12/17 22:20:58
ceder Exp $
# $Id: prot-a-parse-arg-c.awk,v 0.
6
199
2/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
199
1/12/17 22:20:58
ceder Exp $
# $Id: prot-a-parse-arg-c.awk,v 0.
6
199
2/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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment