From: Jarkko Hietaniemi Date: Fri, 23 Nov 2001 14:44:19 +0000 (+0000) Subject: regen_headers. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a5a0c38d81f8514d109f773aaadbf70b29e85b9;p=p5sagit%2Fp5-mst-13.2.git regen_headers. p4raw-id: //depot/perl@13197 --- diff --git a/embed.h b/embed.h index fabd31c..269a117 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 1158a86..86e1491 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 9870898..8528c90 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. See C 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. +Coerces the given SV to an unsigned integer and returns it. Guarantees to +evaluate sv only once. Use the more efficient C 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 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. - UV SvUVx(SV* sv) + UV SvUVX(SV* sv) =for hackers Found in file sv.h diff --git a/proto.h b/proto.h index 6143cfd..a042c5a 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);