Skip to content

Commit

Permalink
It looks like the previous patch is working fine on UNIXish boxes,
Browse files Browse the repository at this point in the history
but is failing on Windows.  Anyways sv_utf8_upgrade_nomg() is
a macro anyways, so moving the documentation to sv.h.
  • Loading branch information
smpeters committed Dec 20, 2008
1 parent 985dc10 commit dc96081
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
1 change: 0 additions & 1 deletion embed.fnc
Expand Up @@ -1257,7 +1257,6 @@ AmdbR |char* |sv_pv |NN SV *sv
AmdbR |char* |sv_pvutf8 |NN SV *sv
AmdbR |char* |sv_pvbyte |NN SV *sv
Amdb |STRLEN |sv_utf8_upgrade|NN SV *sv
Amdb |STRLEN |sv_utf8_upgrade_nomg|NN SV *sv
ApdM |bool |sv_utf8_downgrade|NN SV *const sv|const bool fail_ok
Apd |void |sv_utf8_encode |NN SV *const sv
ApdM |bool |sv_utf8_decode |NN SV *const sv
Expand Down
1 change: 0 additions & 1 deletion global.sym
Expand Up @@ -663,7 +663,6 @@ Perl_sv_pv
Perl_sv_pvutf8
Perl_sv_pvbyte
Perl_sv_utf8_upgrade
Perl_sv_utf8_upgrade_nomg
Perl_sv_utf8_downgrade
Perl_sv_utf8_encode
Perl_sv_utf8_decode
Expand Down
22 changes: 11 additions & 11 deletions pod/perlapi.pod
Expand Up @@ -25,7 +25,7 @@ unadorned names, but this support may be disabled in a future release.
Perl was originally written to handle US-ASCII only (that is characters
whose ordinal numbers are in the range 0 - 127).
And documentation and comments may still use the term ASCII, when
sometimes in fact the entire range from 0 - 256 is meant.
sometimes in fact the entire range from 0 - 255 is meant.

Note that Perl can be compiled and run under EBCDIC (See L<perlebcdic>)
or ASCII. Most of the documentation (and even comments in the code)
Expand Down Expand Up @@ -5134,6 +5134,16 @@ Like C<sv_setsv> but doesn't process magic.
=for hackers
Found in file sv.h

=item sv_utf8_upgrade_nomg
X<sv_utf8_upgrade_nomg>

Like sv_utf8_upgrade, but doesn't do magic on C<sv>

STRLEN sv_utf8_upgrade_nomg(NN SV *sv)

=for hackers
Found in file sv.h


=back

Expand Down Expand Up @@ -6534,16 +6544,6 @@ use the Encode extension for that.
=for hackers
Found in file sv.c

=item sv_utf8_upgrade_nomg
X<sv_utf8_upgrade_nomg>

Like sv_utf8_upgrade, but doesn't do magic on C<sv>

STRLEN sv_utf8_upgrade_nomg(SV *sv)

=for hackers
Found in file sv.c

=item sv_vcatpvf
X<sv_vcatpvf>

Expand Down
5 changes: 0 additions & 5 deletions proto.h
Expand Up @@ -3969,11 +3969,6 @@ PERL_CALLCONV void Perl_reginitcolors(pTHX);
#define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE \
assert(sv)

/* PERL_CALLCONV STRLEN Perl_sv_utf8_upgrade_nomg(pTHX_ SV *sv)
__attribute__nonnull__(pTHX_1); */
#define PERL_ARGS_ASSERT_SV_UTF8_UPGRADE_NOMG \
assert(sv)

PERL_CALLCONV bool Perl_sv_utf8_downgrade(pTHX_ SV *const sv, const bool fail_ok)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_SV_UTF8_DOWNGRADE \
Expand Down
4 changes: 0 additions & 4 deletions sv.c
Expand Up @@ -3154,10 +3154,6 @@ Returns the number of bytes in the converted string
This is not as a general purpose byte encoding to Unicode interface:
use the Encode extension for that.
=for apidoc sv_utf8_upgrade_nomg
Like sv_utf8_upgrade, but doesn't do magic on C<sv>
=for apidoc sv_utf8_upgrade_flags
Converts the PV of an SV to its UTF-8-encoded form.
Expand Down
4 changes: 4 additions & 0 deletions sv.h
Expand Up @@ -1523,6 +1523,10 @@ Like C<sv_setsv> but doesn't process magic.
=for apidoc Am|void|sv_catsv_nomg|SV* dsv|SV* ssv
Like C<sv_catsv> but doesn't process magic.
=for apidoc Amdb|STRLEN|sv_utf8_upgrade_nomg|NN SV *sv
Like sv_utf8_upgrade, but doesn't do magic on C<sv>
=cut
*/

Expand Down

0 comments on commit dc96081

Please sign in to comment.