summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-23 14:44:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-23 14:44:19 +0000
commit2a5a0c38d81f8514d109f773aaadbf70b29e85b9 (patch)
treee738a41ff3755178c474aff842b4b0c7adf11259
parenta68a8aba34e0f4387538e8f112fee61bffa705bf (diff)
downloadperl-2a5a0c38d81f8514d109f773aaadbf70b29e85b9.tar.gz
regen_headers.
p4raw-id: //depot/perl@13197
-rw-r--r--embed.h2
-rw-r--r--global.sym1
-rw-r--r--pod/perlapi.pod27
-rw-r--r--proto.h1
4 files changed, 23 insertions, 8 deletions
diff --git a/embed.h b/embed.h
index fabd31c84e..269a1178ac 100644
--- a/embed.h
+++ b/embed.h
@@ -399,6 +399,7 @@
#define mess Perl_mess
#define vmess Perl_vmess
#define qerror Perl_qerror
+#define sortsv Perl_sortsv
#define mg_clear Perl_mg_clear
#define mg_copy Perl_mg_copy
#define mg_find Perl_mg_find
@@ -1915,6 +1916,7 @@
#endif
#define vmess(a,b) Perl_vmess(aTHX_ a,b)
#define qerror(a) Perl_qerror(aTHX_ a)
+#define sortsv(a,b,c) Perl_sortsv(aTHX_ a,b,c)
#define mg_clear(a) Perl_mg_clear(aTHX_ a)
#define mg_copy(a,b,c,d) Perl_mg_copy(aTHX_ a,b,c,d)
#define mg_find(a,b) Perl_mg_find(aTHX_ a,b)
diff --git a/global.sym b/global.sym
index 1158a86a76..86e1491b24 100644
--- a/global.sym
+++ b/global.sym
@@ -217,6 +217,7 @@ Perl_grok_oct
Perl_markstack_grow
Perl_mess
Perl_vmess
+Perl_sortsv
Perl_mg_clear
Perl_mg_copy
Perl_mg_find
diff --git a/pod/perlapi.pod b/pod/perlapi.pod
index 9870898ad4..8528c90e5a 100644
--- a/pod/perlapi.pod
+++ b/pod/perlapi.pod
@@ -2039,6 +2039,17 @@ Recursively unlocks a shared sv.
=for hackers
Found in file sharedsv.c
+=item sortsv
+
+Sort an array. Here is an example:
+
+ sortsv(AvARRAY(av), av_len(av)+1, Perl_sv_cmp_locale);
+
+ void sortsv(SV ** array, size_t num_elts, SVCOMPARE_t cmp)
+
+=for hackers
+Found in file pp_sort.c
+
=item SP
Stack pointer. This is usually handled by C<xsubpp>. See C<dSP> and
@@ -2956,22 +2967,22 @@ for a version which guarantees to evaluate sv only once.
=for hackers
Found in file sv.h
-=item SvUVX
+=item SvUVx
-Returns the raw value in the SV's UV slot, without checks or conversions.
-Only use when you are sure SvIOK is true. See also C<SvUV()>.
+Coerces the given SV to an unsigned integer and returns it. Guarantees to
+evaluate sv only once. Use the more efficient C<SvUV> otherwise.
- UV SvUVX(SV* sv)
+ UV SvUVx(SV* sv)
=for hackers
Found in file sv.h
-=item SvUVx
+=item SvUVX
-Coerces the given SV to an unsigned integer and returns it. Guarantees to
-evaluate sv only once. Use the more efficient C<SvUV> otherwise.
+Returns the raw value in the SV's UV slot, without checks or conversions.
+Only use when you are sure SvIOK is true. See also C<SvUV()>.
- UV SvUVx(SV* sv)
+ UV SvUVX(SV* sv)
=for hackers
Found in file sv.h
diff --git a/proto.h b/proto.h
index 6143cfd459..a042c5ac94 100644
--- a/proto.h
+++ b/proto.h
@@ -457,6 +457,7 @@ PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
;
PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV void Perl_qerror(pTHX_ SV* err);
+PERL_CALLCONV void Perl_sortsv(pTHX_ SV ** array, size_t num_elts, SVCOMPARE_t cmp);
PERL_CALLCONV int Perl_mg_clear(pTHX_ SV* sv);
PERL_CALLCONV int Perl_mg_copy(pTHX_ SV* sv, SV* nsv, const char* key, I32 klen);
PERL_CALLCONV MAGIC* Perl_mg_find(pTHX_ SV* sv, int type);