summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2021-10-21 14:19:49 +1100
committerTony Cook <tony@develop-help.com>2021-11-15 11:35:42 +1100
commita889938046e1b9f7f2a4e0fa84eb5ff6e358854d (patch)
treec2a3da74c7e3f03bcecf0bd69b581af5d3626416 /cop.h
parent9c913148860b0e83e6149d37e86cdb29663ee812 (diff)
downloadperl-a889938046e1b9f7f2a4e0fa84eb5ff6e358854d.tar.gz
correct the comment distinguishing between threaded/unthreaded cop macros
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cop.h b/cop.h
index 662b8b360c..7b7805a281 100644
--- a/cop.h
+++ b/cop.h
@@ -524,6 +524,7 @@ string C<p>, creating the package if necessary.
*/
#ifdef USE_ITHREADS
+
# define CopFILE(c) ((c)->cop_file)
# define CopFILEGV(c) (CopFILE(c) \
? gv_fetchfile(CopFILE(c)) : NULL)
@@ -543,7 +544,9 @@ string C<p>, creating the package if necessary.
? alloccopstash(hv) \
: 0)
# define CopFILE_free(c) (PerlMemShared_free(CopFILE(c)),(CopFILE(c) = NULL))
-#else /* Above: no threads; Below yes threads */
+
+#else /* Above: yes threads; Below no threads */
+
# define CopFILEGV(c) ((c)->cop_filegv)
# define CopFILEGV_set(c,gv) ((c)->cop_filegv = (GV*)SvREFCNT_inc(gv))
# define CopFILE_set(c,pv) CopFILEGV_set((c), gv_fetchfile(pv))