This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document some bogus compiler warnings in README.solaris
[perl5.git] / mathoms.c
CommitLineData
7ee2227d
SP
1/* mathoms.c
2 *
3 * Copyright (C) 2005, by Larry Wall and others
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
7 *
8 */
9
10/*
11 * "Anything that Hobbits had no immediate use for, but were unwilling to
12 * throw away, they called a mathom. Their dwellings were apt to become
13 * rather crowded with mathoms, and many of the presents that passed from
14 * hand to hand were of that sort."
15 */
16
17/*
18 * This file contains mathoms, various binary artifacts from previous
f2f0f092
NC
19 * versions of Perl. For binary or source compatibility reasons, though,
20 * we cannot completely remove them from the core code.
7ee2227d
SP
21 *
22 * SMP - Oct. 24, 2005
23 *
24 */
25
26#include "EXTERN.h"
27#define PERL_IN_MATHOMS_C
28#include "perl.h"
29
30/* ref() is now a macro using Perl_doref;
31 * this version provided for binary compatibility only.
32 */
33OP *
34Perl_ref(pTHX_ OP *o, I32 type)
35{
36 return doref(o, type, TRUE);
37}
38
aae9cea0 39/*
174c73e3
NC
40=for apidoc sv_unref
41
42Unsets the RV status of the SV, and decrements the reference count of
43whatever was being referenced by the RV. This can almost be thought of
44as a reversal of C<newSVrv>. This is C<sv_unref_flags> with the C<flag>
45being zero. See C<SvROK_off>.
46
47=cut
48*/
49
50void
51Perl_sv_unref(pTHX_ SV *sv)
52{
53 sv_unref_flags(sv, 0);
54}
55
56/*
aae9cea0
NC
57=for apidoc sv_taint
58
59Taint an SV. Use C<SvTAINTED_on> instead.
60=cut
61*/
62
63void
64Perl_sv_taint(pTHX_ SV *sv)
65{
66 sv_magic((sv), Nullsv, PERL_MAGIC_taint, Nullch, 0);
67}
68
7ee2227d
SP
69/* sv_2iv() is now a macro using Perl_sv_2iv_flags();
70 * this function provided for binary compatibility only
71 */
72
73IV
74Perl_sv_2iv(pTHX_ register SV *sv)
75{
76 return sv_2iv_flags(sv, SV_GMAGIC);
77}
78
79/* sv_2uv() is now a macro using Perl_sv_2uv_flags();
80 * this function provided for binary compatibility only
81 */
82
83UV
84Perl_sv_2uv(pTHX_ register SV *sv)
85{
86 return sv_2uv_flags(sv, SV_GMAGIC);
87}
88
89/* sv_2pv() is now a macro using Perl_sv_2pv_flags();
90 * this function provided for binary compatibility only
91 */
92
93char *
94Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp)
95{
96 return sv_2pv_flags(sv, lp, SV_GMAGIC);
97}
98
5abc721d 99/*
cb2f1b7b
NC
100=for apidoc sv_2pv_nolen
101
102Like C<sv_2pv()>, but doesn't return the length too. You should usually
103use the macro wrapper C<SvPV_nolen(sv)> instead.
104=cut
105*/
106
107char *
108Perl_sv_2pv_nolen(pTHX_ register SV *sv)
109{
110 return sv_2pv(sv, 0);
111}
112
113/*
114=for apidoc sv_2pvbyte_nolen
115
116Return a pointer to the byte-encoded representation of the SV.
117May cause the SV to be downgraded from UTF-8 as a side-effect.
118
119Usually accessed via the C<SvPVbyte_nolen> macro.
120
121=cut
122*/
123
124char *
125Perl_sv_2pvbyte_nolen(pTHX_ register SV *sv)
126{
127 return sv_2pvbyte(sv, 0);
128}
129
130/*
131=for apidoc sv_2pvutf8_nolen
132
133Return a pointer to the UTF-8-encoded representation of the SV.
134May cause the SV to be upgraded to UTF-8 as a side-effect.
135
136Usually accessed via the C<SvPVutf8_nolen> macro.
137
138=cut
139*/
140
141char *
142Perl_sv_2pvutf8_nolen(pTHX_ register SV *sv)
143{
144 return sv_2pvutf8(sv, 0);
145}
146
147/*
5abc721d
NC
148=for apidoc sv_force_normal
149
150Undo various types of fakery on an SV: if the PV is a shared string, make
151a private copy; if we're a ref, stop refing; if we're a glob, downgrade to
152an xpvmg. See also C<sv_force_normal_flags>.
153
154=cut
155*/
156
157void
158Perl_sv_force_normal(pTHX_ register SV *sv)
159{
160 sv_force_normal_flags(sv, 0);
161}
7ee2227d
SP
162
163/* sv_setsv() is now a macro using Perl_sv_setsv_flags();
164 * this function provided for binary compatibility only
165 */
166
167void
168Perl_sv_setsv(pTHX_ SV *dstr, register SV *sstr)
169{
170 sv_setsv_flags(dstr, sstr, SV_GMAGIC);
171}
172
173/* sv_catpvn() is now a macro using Perl_sv_catpvn_flags();
174 * this function provided for binary compatibility only
175 */
176
177void
178Perl_sv_catpvn(pTHX_ SV *dsv, const char* sstr, STRLEN slen)
179{
180 sv_catpvn_flags(dsv, sstr, slen, SV_GMAGIC);
181}
182
b347df82
NC
183/*
184=for apidoc sv_catpvn_mg
185
186Like C<sv_catpvn>, but also handles 'set' magic.
187
188=cut
189*/
190
191void
192Perl_sv_catpvn_mg(pTHX_ register SV *sv, register const char *ptr, register STRLEN len)
193{
194 sv_catpvn_flags(sv,ptr,len,SV_GMAGIC|SV_SMAGIC);
195}
196
7ee2227d
SP
197/* sv_catsv() is now a macro using Perl_sv_catsv_flags();
198 * this function provided for binary compatibility only
199 */
200
201void
202Perl_sv_catsv(pTHX_ SV *dstr, register SV *sstr)
203{
204 sv_catsv_flags(dstr, sstr, SV_GMAGIC);
205}
206
0feed65a 207/*
b347df82
NC
208=for apidoc sv_catsv_mg
209
210Like C<sv_catsv>, but also handles 'set' magic.
211
212=cut
213*/
214
215void
216Perl_sv_catsv_mg(pTHX_ SV *dsv, register SV *ssv)
217{
218 sv_catsv_flags(dsv,ssv,SV_GMAGIC|SV_SMAGIC);
219}
220
221/*
0feed65a
NC
222=for apidoc sv_iv
223
224A private implementation of the C<SvIVx> macro for compilers which can't
225cope with complex macro expressions. Always use the macro instead.
226
227=cut
228*/
229
230IV
231Perl_sv_iv(pTHX_ register SV *sv)
232{
233 if (SvIOK(sv)) {
234 if (SvIsUV(sv))
235 return (IV)SvUVX(sv);
236 return SvIVX(sv);
237 }
238 return sv_2iv(sv);
239}
240
241/*
242=for apidoc sv_uv
243
244A private implementation of the C<SvUVx> macro for compilers which can't
245cope with complex macro expressions. Always use the macro instead.
246
247=cut
248*/
249
250UV
251Perl_sv_uv(pTHX_ register SV *sv)
252{
253 if (SvIOK(sv)) {
254 if (SvIsUV(sv))
255 return SvUVX(sv);
256 return (UV)SvIVX(sv);
257 }
258 return sv_2uv(sv);
259}
260
261/*
262=for apidoc sv_nv
263
264A private implementation of the C<SvNVx> macro for compilers which can't
265cope with complex macro expressions. Always use the macro instead.
266
267=cut
268*/
269
270NV
271Perl_sv_nv(pTHX_ register SV *sv)
272{
273 if (SvNOK(sv))
274 return SvNVX(sv);
275 return sv_2nv(sv);
276}
277
278/*
279=for apidoc sv_pv
280
281Use the C<SvPV_nolen> macro instead
282
283=for apidoc sv_pvn
284
285A private implementation of the C<SvPV> macro for compilers which can't
286cope with complex macro expressions. Always use the macro instead.
287
288=cut
289*/
290
291char *
292Perl_sv_pvn(pTHX_ SV *sv, STRLEN *lp)
293{
294 if (SvPOK(sv)) {
295 *lp = SvCUR(sv);
296 return SvPVX(sv);
297 }
298 return sv_2pv(sv, lp);
299}
300
301
302char *
303Perl_sv_pvn_nomg(pTHX_ register SV *sv, STRLEN *lp)
304{
305 if (SvPOK(sv)) {
306 *lp = SvCUR(sv);
307 return SvPVX(sv);
308 }
309 return sv_2pv_flags(sv, lp, 0);
310}
311
7ee2227d
SP
312/* sv_pv() is now a macro using SvPV_nolen();
313 * this function provided for binary compatibility only
314 */
315
316char *
317Perl_sv_pv(pTHX_ SV *sv)
318{
319 if (SvPOK(sv))
320 return SvPVX(sv);
321
322 return sv_2pv(sv, 0);
323}
324
325/* sv_pvn_force() is now a macro using Perl_sv_pvn_force_flags();
326 * this function provided for binary compatibility only
327 */
328
329char *
330Perl_sv_pvn_force(pTHX_ SV *sv, STRLEN *lp)
331{
332 return sv_pvn_force_flags(sv, lp, SV_GMAGIC);
333}
334
335/* sv_pvbyte () is now a macro using Perl_sv_2pv_flags();
336 * this function provided for binary compatibility only
337 */
338
339char *
340Perl_sv_pvbyte(pTHX_ SV *sv)
341{
342 sv_utf8_downgrade(sv,0);
343 return sv_pv(sv);
344}
345
0feed65a
NC
346/*
347=for apidoc sv_pvbyte
348
349Use C<SvPVbyte_nolen> instead.
350
351=for apidoc sv_pvbyten
352
353A private implementation of the C<SvPVbyte> macro for compilers
354which can't cope with complex macro expressions. Always use the macro
355instead.
356
357=cut
358*/
359
360char *
361Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp)
362{
363 sv_utf8_downgrade(sv,0);
364 return sv_pvn(sv,lp);
365}
366
7ee2227d
SP
367/* sv_pvutf8 () is now a macro using Perl_sv_2pv_flags();
368 * this function provided for binary compatibility only
369 */
370
371char *
372Perl_sv_pvutf8(pTHX_ SV *sv)
373{
374 sv_utf8_upgrade(sv);
375 return sv_pv(sv);
376}
377
0feed65a
NC
378/*
379=for apidoc sv_pvutf8
380
381Use the C<SvPVutf8_nolen> macro instead
382
383=for apidoc sv_pvutf8n
384
385A private implementation of the C<SvPVutf8> macro for compilers
386which can't cope with complex macro expressions. Always use the macro
387instead.
388
389=cut
390*/
391
392char *
393Perl_sv_pvutf8n(pTHX_ SV *sv, STRLEN *lp)
394{
395 sv_utf8_upgrade(sv);
396 return sv_pvn(sv,lp);
397}
398
205c02c2
NC
399/* sv_utf8_upgrade() is now a macro using sv_utf8_upgrade_flags();
400 * this function provided for binary compatibility only
401 */
402
403STRLEN
404Perl_sv_utf8_upgrade(pTHX_ register SV *sv)
405{
406 return sv_utf8_upgrade_flags(sv, SV_GMAGIC);
407}
408
7ee2227d
SP
409int
410Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
411{
412 dTHXs;
413 va_list(arglist);
414 va_start(arglist, format);
415 return PerlIO_vprintf(stream, format, arglist);
416}
417
418int
419Perl_printf_nocontext(const char *format, ...)
420{
421 dTHX;
422 va_list(arglist);
423 va_start(arglist, format);
424 return PerlIO_vprintf(PerlIO_stdout(), format, arglist);
425}
426
427#if defined(HUGE_VAL) || (defined(USE_LONG_DOUBLE) && defined(HUGE_VALL))
428/*
429 * This hack is to force load of "huge" support from libm.a
430 * So it is in perl for (say) POSIX to use.
431 * Needed for SunOS with Sun's 'acc' for example.
432 */
433NV
434Perl_huge(void)
435{
436# if defined(USE_LONG_DOUBLE) && defined(HUGE_VALL)
437 return HUGE_VALL;
438# endif
439 return HUGE_VAL;
440}
441#endif
442
f2f0f092
NC
443/* compatibility with versions <= 5.003. */
444void
445Perl_gv_fullname(pTHX_ SV *sv, const GV *gv)
446{
447 gv_fullname3(sv, gv, sv == (const SV*)gv ? "*" : "");
448}
449
450/* compatibility with versions <= 5.003. */
451void
452Perl_gv_efullname(pTHX_ SV *sv, const GV *gv)
453{
454 gv_efullname3(sv, gv, sv == (const SV*)gv ? "*" : "");
455}
456
2674aeec
NC
457void
458Perl_gv_fullname3(pTHX_ SV *sv, const GV *gv, const char *prefix)
459{
460 gv_fullname4(sv, gv, prefix, TRUE);
461}
462
463void
464Perl_gv_efullname3(pTHX_ SV *sv, const GV *gv, const char *prefix)
465{
466 gv_efullname4(sv, gv, prefix, TRUE);
467}
468
887986eb
NC
469/*
470=for apidoc gv_fetchmethod
471
472See L<gv_fetchmethod_autoload>.
473
474=cut
475*/
476
477GV *
478Perl_gv_fetchmethod(pTHX_ HV *stash, const char *name)
479{
480 return gv_fetchmethod_autoload(stash, name, TRUE);
481}
482
7a7b9979
NC
483HE *
484Perl_hv_iternext(pTHX_ HV *hv)
485{
486 return hv_iternext_flags(hv, 0);
487}
488
bc5cdc23
NC
489void
490Perl_hv_magic(pTHX_ HV *hv, GV *gv, int how)
491{
492 sv_magic((SV*)hv, (SV*)gv, how, Nullch, 0);
493}
494
495#if 0 /* use the macro from hv.h instead */
496
497char*
498Perl_sharepvn(pTHX_ const char *sv, I32 len, U32 hash)
499{
500 return HEK_KEY(share_hek(sv, len, hash));
501}
502
503#endif
504
b966a812
SP
505AV *
506Perl_av_fake(pTHX_ register I32 size, register SV **strp)
507{
508 register SV** ary;
509 register AV * const av = (AV*)NEWSV(9,0);
510
511 sv_upgrade((SV *)av, SVt_PVAV);
512 Newx(ary,size+1,SV*);
513 AvALLOC(av) = ary;
514 Copy(strp,ary,size,SV*);
515 AvREIFY_only(av);
516 SvPV_set(av, (char*)ary);
517 AvFILLp(av) = size - 1;
518 AvMAX(av) = size - 1;
519 while (size--) {
520 assert (*strp);
521 SvTEMP_off(*strp);
522 strp++;
523 }
524 return av;
525}
526
34d367cd 527bool
e4dba786
NC
528Perl_do_open(pTHX_ GV *gv, register const char *name, I32 len, int as_raw,
529 int rawmode, int rawperm, PerlIO *supplied_fp)
530{
531 return do_openn(gv, name, len, as_raw, rawmode, rawperm,
532 supplied_fp, (SV **) NULL, 0);
533}
534
535bool
34d367cd
SP
536Perl_do_open9(pTHX_ GV *gv, register const char *name, I32 len, int
537as_raw,
538 int rawmode, int rawperm, PerlIO *supplied_fp, SV *svs,
539 I32 num_svs)
540{
541 PERL_UNUSED_ARG(num_svs);
542 return do_openn(gv, name, len, as_raw, rawmode, rawperm,
543 supplied_fp, &svs, 1);
544}
545
546int
547Perl_do_binmode(pTHX_ PerlIO *fp, int iotype, int mode)
548{
549 /* The old body of this is now in non-LAYER part of perlio.c
550 * This is a stub for any XS code which might have been calling it.
551 */
552 const char *name = ":raw";
553#ifdef PERLIO_USING_CRLF
554 if (!(mode & O_BINARY))
555 name = ":crlf";
556#endif
557 return PerlIO_binmode(aTHX_ fp, iotype, mode, name);
558}
559
a9f96b3f
NC
560#ifndef OS2
561bool
562Perl_do_aexec(pTHX_ SV *really, register SV **mark, register SV **sp)
563{
564 return do_aexec5(really, mark, sp, 0, 0);
565}
566#endif
567
9555a685
NC
568#ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION
569bool
570Perl_do_exec(pTHX_ const char *cmd)
571{
572 return do_exec3(cmd,0,0);
573}
574#endif
575
f95f476d
NC
576#ifdef HAS_PIPE
577void
578Perl_do_pipe(pTHX_ SV *sv, GV *rgv, GV *wgv)
579{
580 register IO *rstio;
581 register IO *wstio;
582 int fd[2];
583
584 if (!rgv)
585 goto badexit;
586 if (!wgv)
587 goto badexit;
588
589 rstio = GvIOn(rgv);
590 wstio = GvIOn(wgv);
591
592 if (IoIFP(rstio))
593 do_close(rgv,FALSE);
594 if (IoIFP(wstio))
595 do_close(wgv,FALSE);
596
597 if (PerlProc_pipe(fd) < 0)
598 goto badexit;
599 IoIFP(rstio) = PerlIO_fdopen(fd[0], "r"PIPE_OPEN_MODE);
600 IoOFP(wstio) = PerlIO_fdopen(fd[1], "w"PIPE_OPEN_MODE);
601 IoOFP(rstio) = IoIFP(rstio);
602 IoIFP(wstio) = IoOFP(wstio);
603 IoTYPE(rstio) = IoTYPE_RDONLY;
604 IoTYPE(wstio) = IoTYPE_WRONLY;
605 if (!IoIFP(rstio) || !IoOFP(wstio)) {
606 if (IoIFP(rstio)) PerlIO_close(IoIFP(rstio));
607 else PerlLIO_close(fd[0]);
608 if (IoOFP(wstio)) PerlIO_close(IoOFP(wstio));
609 else PerlLIO_close(fd[1]);
610 goto badexit;
611 }
612
613 sv_setsv(sv,&PL_sv_yes);
614 return;
615
616badexit:
617 sv_setsv(sv,&PL_sv_undef);
618 return;
619}
620#endif
621
89552e80
NC
622/* Backwards compatibility. */
623int
624Perl_init_i18nl14n(pTHX_ int printwarn)
625{
626 return init_i18nl10n(printwarn);
627}
628
ad5d783e
NC
629/* XXX kept for BINCOMPAT only */
630void
631Perl_save_hints(pTHX)
632{
633 Perl_croak(aTHX_ "internal error: obsolete function save_hints() called");
634}
635
c78ff979
NC
636#if 0
637OP *
638Perl_ck_retarget(pTHX_ OP *o)
639{
640 Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
641 /* STUB */
642 return o;
643}
644#endif
645
646OP *
647Perl_oopsCV(pTHX_ OP *o)
648{
649 Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
650 /* STUB */
651 PERL_UNUSED_ARG(o);
652 NORETURN_FUNCTION_END;
653}
654
655PP(pp_padany)
656{
657 DIE(aTHX_ "NOT IMPL LINE %d",__LINE__);
658}
659
660PP(pp_threadsv)
661{
662 DIE(aTHX_ "tried to access per-thread data in non-threaded perl");
663}
664
665PP(pp_mapstart)
666{
667 DIE(aTHX_ "panic: mapstart"); /* uses grepstart */
668}
669
0b612f93
NC
670/* These ops all have the same body as pp_null. */
671PP(pp_scalar)
672{
673 return NORMAL;
674}
675
676PP(pp_regcmaybe)
677{
678 return NORMAL;
679}
680
681PP(pp_lineseq)
682{
683 return NORMAL;
684}
685
686PP(pp_scope)
687{
688 return NORMAL;
689}
690
691/* Ops that are calls to do_kv. */
692PP(pp_values)
693{
694 return do_kv();
695}
696
697PP(pp_keys)
698{
699 return do_kv();
700}
701
702/* Ops that are simply calls to other ops. */
703PP(pp_dump)
704{
705 return pp_goto();
706 /*NOTREACHED*/
707}
708
709PP(pp_dofile)
710{
711 return pp_require();
712}
713
714PP(pp_dbmclose)
715{
716 return pp_untie();
717}
718
719PP(pp_read)
720{
721 return pp_sysread();
722}
723
724PP(pp_recv)
725{
726 return pp_sysread();
727}
728
729PP(pp_seek)
730{
731 return pp_sysseek();
732}
733
734PP(pp_fcntl)
735{
736 return pp_ioctl();
737}
738
739PP(pp_gsockopt)
740{
741 return pp_ssockopt();
742}
743
744PP(pp_getsockname)
745{
746 return pp_getpeername();
747}
748
749PP(pp_lstat)
750{
751 return pp_stat();
752}
753
754PP(pp_fteowned)
755{
756 return pp_ftrowned();
757}
758
759PP(pp_ftbinary)
760{
761 return pp_fttext();
762}
763
764PP(pp_localtime)
765{
766 return pp_gmtime();
767}
768
769PP(pp_shmget)
770{
771 return pp_semget();
772}
773
774PP(pp_shmctl)
775{
776 return pp_semctl();
777}
778
779PP(pp_shmread)
780{
781 return pp_shmwrite();
782}
783
784PP(pp_msgget)
785{
786 return pp_semget();
787}
788
789PP(pp_msgctl)
790{
791 return pp_semctl();
792}
793
794PP(pp_ghbyname)
795{
796 return pp_ghostent();
797}
798
799PP(pp_ghbyaddr)
800{
801 return pp_ghostent();
802}
803
804PP(pp_gnbyname)
805{
806 return pp_gnetent();
807}
808
809PP(pp_gnbyaddr)
810{
811 return pp_gnetent();
812}
813
814PP(pp_gpbyname)
815{
816 return pp_gprotoent();
817}
818
819PP(pp_gpbynumber)
820{
821 return pp_gprotoent();
822}
823
824PP(pp_gsbyname)
825{
826 return pp_gservent();
827}
828
829PP(pp_gsbyport)
830{
831 return pp_gservent();
832}
833
834PP(pp_gpwnam)
835{
836 return pp_gpwent();
837}
838
839PP(pp_gpwuid)
840{
841 return pp_gpwent();
842}
843
844PP(pp_ggrnam)
845{
846 return pp_ggrent();
847}
848
849PP(pp_ggrgid)
850{
851 return pp_ggrent();
852}
853
957b0e1d
NC
854PP(pp_ftsize)
855{
4992681b 856 return pp_ftis();
957b0e1d
NC
857}
858
859PP(pp_ftmtime)
860{
4992681b 861 return pp_ftis();
957b0e1d
NC
862}
863
864PP(pp_ftatime)
865{
4992681b 866 return pp_ftis();
957b0e1d
NC
867}
868
869PP(pp_ftctime)
870{
4992681b 871 return pp_ftis();
957b0e1d
NC
872}
873
f1cb2d48
NC
874PP(pp_ftzero)
875{
876 return pp_ftrowned();
877}
878
879PP(pp_ftsock)
880{
881 return pp_ftrowned();
882}
883
884PP(pp_ftchr)
885{
886 return pp_ftrowned();
887}
888
889PP(pp_ftblk)
890{
891 return pp_ftrowned();
892}
893
894PP(pp_ftfile)
895{
896 return pp_ftrowned();
897}
898
899PP(pp_ftdir)
900{
901 return pp_ftrowned();
902}
903
904PP(pp_ftpipe)
905{
906 return pp_ftrowned();
907}
908
17ad201a
NC
909PP(pp_ftsuid)
910{
911 return pp_ftrowned();
912}
913
914PP(pp_ftsgid)
915{
916 return pp_ftrowned();
917}
918
919PP(pp_ftsvtx)
920{
921 return pp_ftrowned();
922}
923
605b9385
NC
924PP(pp_unlink)
925{
926 return pp_chown();
927}
928
929PP(pp_chmod)
930{
931 return pp_chown();
932}
933
934PP(pp_utime)
935{
936 return pp_chown();
937}
938
939PP(pp_kill)
940{
941 return pp_chown();
942}
943
038e8d3c
NC
944U8 *
945Perl_uvuni_to_utf8(pTHX_ U8 *d, UV uv)
946{
947 return Perl_uvuni_to_utf8_flags(aTHX_ d, uv, 0);
948}
949
814fafa7
NC
950bool
951Perl_is_utf8_string_loc(pTHX_ const U8 *s, STRLEN len, const U8 **ep)
952{
953 return is_utf8_string_loclen(s, len, ep, 0);
954}
955
7ee2227d 956/*
d5b2b27b
NC
957=for apidoc sv_nolocking
958
959Dummy routine which "locks" an SV when there is no locking module present.
960Exists to avoid test for a NULL function pointer and because it could
961potentially warn under some level of strict-ness.
962
963"Superseded" by sv_nosharing().
964
965=cut
966*/
967
968void
969Perl_sv_nolocking(pTHX_ SV *sv)
970{
971 PERL_UNUSED_ARG(sv);
972}
973
974
975/*
976=for apidoc sv_nounlocking
977
978Dummy routine which "unlocks" an SV when there is no locking module present.
979Exists to avoid test for a NULL function pointer and because it could
980potentially warn under some level of strict-ness.
981
982"Superseded" by sv_nosharing().
983
984=cut
985*/
986
987void
988Perl_sv_nounlocking(pTHX_ SV *sv)
989{
990 PERL_UNUSED_ARG(sv);
991}
992
993/*
7ee2227d
SP
994 * Local variables:
995 * c-indentation-style: bsd
996 * c-basic-offset: 4
997 * indent-tabs-mode: t
998 * End:
999 *
1000 * ex: set ts=8 sts=4 sw=4 noet:
1001 */