"Re: [xslt] set/get functions for xslDebugStatus"



Hi,

Daniel Veillard wrote:

> On Wed, Oct 22, 2003 at 11:41:39AM +0200, Kasimier Buchcik wrote:
>>Could the following get/set functions to set/get the xslDebugStatus 
>>variable be added to xsltutils? In order to manipulate them from pascal, 
>>functions are needed (well, one can set variables but not without doing 
>>some dirty hacking).
> 
>   okay, but send me a contextual patch (diff -c or diff -p) and preferably
> as an attachment,

Done.

Thanks,

Kasimier Buchcik

Index: libxslt/xsltutils.h
===================================================================
RCS file: /cvs/gnome/libxslt/libxslt/xsltutils.h,v
retrieving revision 1.37
diff -c -r1.37 xsltutils.h
*** xsltutils.h	27 Aug 2003 10:08:03 -0000	1.37
--- xsltutils.h	22 Oct 2003 10:06:11 -0000
***************
*** 229,234 ****
--- 229,238 ----
  typedef int (*xsltAddCallCallback) (xsltTemplatePtr templ, xmlNodePtr source);
  typedef void (*xsltDropCallCallback) (void);
  
+ XSLTPUBFUN void XSLTCALL
+ 		xsltSetDebuggerStatus		(int value);
+ XSLTPUBFUN int XSLTCALL
+ 		xsltGetDebuggerStatus		(void);
  XSLTPUBFUN int XSLTCALL		
  		xsltSetDebuggerCallbacks	(int no, void *block);
  XSLTPUBFUN int XSLTCALL	
Index: libxslt/xsltutils.c
===================================================================
RCS file: /cvs/gnome/libxslt/libxslt/xsltutils.c,v
retrieving revision 1.77
diff -c -r1.77 xsltutils.c
*** xsltutils.c	3 Aug 2003 08:00:05 -0000	1.77
--- xsltutils.c	22 Oct 2003 10:11:59 -0000
***************
*** 1732,1737 ****
--- 1732,1760 ----
  int xslDebugStatus;
  
  /**
+  * xsltSetDebuggerStatus:
+  * @value : the value to be set
+  * 
+  * This function sets the value of xslDebugStatus.
+  */
+ void
+ xsltSetDebuggerStatus(int value)
+ {
+     xslDebugStatus = value;	
+ }
+ 
+ /**
+  * xsltGetDebuggerStatus: 
+  * 
+  * This function returns the value of xslDebugStatus.
+  */
+ int
+ xsltGetDebuggerStatus(void)
+ {
+     return(xslDebugStatus);	
+ }
+ 
+ /**
   * xsltSetDebuggerCallbacks:
   * @no : number of callbacks
   * @block : the block of callbacks


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]