summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-06-02 00:48:50 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-06-02 00:48:50 +0000
commitba106d47906768b6e657462b9a484fe0c3a0f0d5 (patch)
treefe43417a2002a0c21277647d86a96e9b4b23368f /sv.c
parent58a40671cc13fcd5c38641be59cb1e7f87a5e905 (diff)
downloadperl-ba106d47906768b6e657462b9a484fe0c3a0f0d5.tar.gz
remove stray K&R-isms
p4raw-id: //depot/perl@3515
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/sv.c b/sv.c
index d616b8e42d..9cec7879f7 100644
--- a/sv.c
+++ b/sv.c
@@ -116,9 +116,8 @@ static I32 registry_size;
#define REG_ADD(sv) REG_REPLACE(sv,Nullsv,sv)
#define REG_REMOVE(sv) REG_REPLACE(sv,sv,Nullsv)
-static void
-reg_add(sv)
-SV* sv;
+STATIC void
+reg_add(SV *sv)
{
if (PL_sv_count >= (registry_size >> 1))
{
@@ -144,17 +143,15 @@ SV* sv;
++PL_sv_count;
}
-static void
-reg_remove(sv)
-SV* sv;
+STATIC void
+reg_remove(SV *sv)
{
REG_REMOVE(sv);
--PL_sv_count;
}
-static void
-visit(f)
-SVFUNC f;
+STATIC void
+visit(SVFUNC f)
{
I32 i;
@@ -166,10 +163,7 @@ SVFUNC f;
}
void
-sv_add_arena(ptr, size, flags)
-char* ptr;
-U32 size;
-U32 flags;
+sv_add_arena(char *ptr, U32 size, U32 flags)
{
if (!(flags & SVf_FAKE))
Safefree(ptr);