You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@locus.apache.org on 2000/03/02 21:42:43 UTC

cvs commit: modperl/src/modules/perl mod_perl.h perl_util.c

dougm       00/03/02 12:42:42

  Modified:    src/modules/perl mod_perl.h perl_util.c
  Log:
  5.5.670 tweaks
  
  Revision  Changes    Path
  1.94      +1 -0      modperl/src/modules/perl/mod_perl.h
  
  Index: mod_perl.h
  ===================================================================
  RCS file: /home/cvs/modperl/src/modules/perl/mod_perl.h,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- mod_perl.h	2000/03/02 20:21:03	1.93
  +++ mod_perl.h	2000/03/02 20:42:42	1.94
  @@ -111,6 +111,7 @@
   #define aTHXo_
   #define CopFILEGV(cop) cop->cop_filegv
   #define CopLINE(cop)   cop->cop_line
  +#define CopLINE_set(c,l) (CopLINE(c) = (l))
   #define SAVECOPFILE(cop) SAVESPTR(CopFILEGV(curcop));
   #define SAVECOPLINE(cop) SAVEI16(CopLINE(cop))
   #endif
  
  
  
  1.35      +2 -2      modperl/src/modules/perl/perl_util.c
  
  Index: perl_util.c
  ===================================================================
  RCS file: /home/cvs/modperl/src/modules/perl/perl_util.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- perl_util.c	2000/03/02 20:21:04	1.34
  +++ perl_util.c	2000/03/02 20:42:42	1.35
  @@ -835,7 +835,7 @@
   {
       dTHR;
       SV *name = Nullsv;
  -    if(curcop->cop_line) {
  +    if(CopLINE(curcop)) {
   #if 0
   	fprintf(stderr, "already know where: %s line %d\n",
   		SvPV(GvSV(CopFILEGV(curcop)),na), CopFILEGV(curcop));
  @@ -851,7 +851,7 @@
   
       sv_setpv(GvSV(CopFILEGV(curcop)), "");
       sv_catpvf(GvSV(CopFILEGV(curcop)), "%s subroutine `%_'", where, name);
  -    curcop->cop_line = 1;
  +    CopLINE_set(curcop, 1);
   
       if(name)
   	SvREFCNT_dec(name);