Skip to content

Commit 7faa092

Browse files
committed
Move Perl_l?stat() from mathoms to macros in perl.h
1 parent db5e0da commit 7faa092

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

embed.fnc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,7 +2088,7 @@ Adpr |void |my_exit |U32 status
20882088
Adpr |void |my_failure_exit
20892089
Cdp |I32 |my_fflush_all
20902090
CTdp |Pid_t |my_fork
2091-
m |I32 |my_lstat
2091+
mp |I32 |my_lstat
20922092
Xp |I32 |my_lstat_flags |NULLOK const U32 flags
20932093
RTop |int |my_mkostemp_cloexec \
20942094
|NN char *templte \
@@ -2109,7 +2109,7 @@ CTdp |int |my_socketpair |int family \
21092109
|int type \
21102110
|int protocol \
21112111
|int fd[2]
2112-
m |I32 |my_stat
2112+
mp |I32 |my_stat
21132113
Xp |I32 |my_stat_flags |NULLOK const U32 flags
21142114
p |const char *|my_strerror \
21152115
|const int errnum \

embed.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,9 @@
11261126
# define mro_package_moved(a,b,c,d) Perl_mro_package_moved(aTHX_ a,b,c,d)
11271127
# define my_attrs(a,b) Perl_my_attrs(aTHX_ a,b)
11281128
# define my_clearenv() Perl_my_clearenv(aTHX)
1129+
# define my_lstat() Perl_my_lstat(aTHX)
11291130
# define my_lstat_flags(a) Perl_my_lstat_flags(aTHX_ a)
1131+
# define my_stat() Perl_my_stat(aTHX)
11301132
# define my_stat_flags(a) Perl_my_stat_flags(aTHX_ a)
11311133
# define my_strerror(a,b) Perl_my_strerror(aTHX_ a,b)
11321134
# define my_unexec() Perl_my_unexec(aTHX)

mathoms.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,6 @@ Perl_sv_nounlocking(pTHX_ SV *sv)
135135
PERL_UNUSED_ARG(sv);
136136
}
137137

138-
I32
139-
Perl_my_stat(pTHX)
140-
{
141-
return my_stat_flags(SV_GMAGIC);
142-
}
143-
144-
I32
145-
Perl_my_lstat(pTHX)
146-
{
147-
return my_lstat_flags(SV_GMAGIC);
148-
}
149-
150138
STRLEN
151139
Perl_is_utf8_char_buf(const U8 *buf, const U8* buf_end)
152140
{

perl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4536,8 +4536,8 @@ struct Perl_OpDumpContext;
45364536
#include "utf8.h"
45374537

45384538
/* these would be in doio.h if there was such a file */
4539-
#define my_stat() my_stat_flags(SV_GMAGIC)
4540-
#define my_lstat() my_lstat_flags(SV_GMAGIC)
4539+
#define Perl_my_stat(mTHX_) Perl_my_stat_flags(aTHX_ SV_GMAGIC)
4540+
#define Perl_my_lstat(mTHX) Perl_my_lstat_flags(aTHX_ SV_GMAGIC)
45414541

45424542
/* defined in sv.c, but also used in [ach]v.c */
45434543
#undef _XPV_HEAD

proto.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)