summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1998-05-14 18:09:01 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1998-05-14 18:09:01 +0000
commit34e9701933920a1b91b5f5717935652f86850872 (patch)
tree71af4c85e03dd559ba81b969efa4ea5ac1ede141 /toke.c
parent0559d6709bef71ddf2b29eb9894aa0c5747eb3ef (diff)
downloadperl-34e9701933920a1b91b5f5717935652f86850872.tar.gz
Changes to allow compiler with gcc-2.8.1 in C++ mode,
Remove K&R style functions, avoid struct/typedef clash. p4raw-id: //depot/ansiperl@972
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/toke.c b/toke.c
index 5605938274..d448e75328 100644
--- a/toke.c
+++ b/toke.c
@@ -318,16 +318,14 @@ restore_rsfp(void *f)
}
static void
-restore_expect(e)
-void *e;
+restore_expect(void *e)
{
/* a safe way to store a small integer in a pointer */
expect = (expectation)((char *)e - tokenbuf);
}
static void
-restore_lex_expect(e)
-void *e;
+restore_lex_expect(void *e)
{
/* a safe way to store a small integer in a pointer */
lex_expect = (expectation)((char *)e - tokenbuf);