special cases and other things in wxPython, and since I plan on making several more, I've decided to put the SWIG sources in wxPython's CVS instead of relying on maintaining patches. This effectivly becomes a fork of an obsolete version of SWIG, :-( but since SWIG 1.3 still doesn't have some things I rely on in 1.1, not to mention that my custom patches would all have to be redone, I felt that this is the easier road to take. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			OpenEdge ABL
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			OpenEdge ABL
		
	
	
	
	
	
| //
 | |
| // memory.i
 | |
| // Dave Beazley
 | |
| // November 30, 1996
 | |
| // SWIG file for memory operations
 | |
| //
 | |
| 
 | |
| %module memory
 | |
| %{
 | |
| #include <string.h>
 | |
| %}
 | |
| 
 | |
| %section "Memory Manipulation Module",after,info,nosort,pre,chop_left=3,chop_bottom=0,chop_top=0,chop_right=0,skip=1
 | |
| 
 | |
| %text %{
 | |
| %include memory.i
 | |
| 
 | |
| This module provides support for a few memory operations from the C
 | |
| <string.h> library.  These functions can be used to manipulate binary
 | |
| data. s and t are of type void *, cs and ct are both of type const void *.
 | |
| %}
 | |
| 
 | |
| void *memcpy(void *s, const void *ct, int n);
 | |
| /* Copy n characters from ct to s, and return s */
 | |
| 
 | |
| void *memmove(void *s, const void *ct, int n);
 | |
| /* Same as memcpy except that it works even if the objects overlap. */
 | |
| 
 | |
| int memcmp(const void *cs, const void *ct, int n);
 | |
| /* Compare the first n characters of cs with ct.  Returns 0 if
 | |
|    they are equal, <0 if cs < ct, and >0 if cs > ct. */
 | |
| 
 | |
| void *memchr(const void *cs, char c, int n);
 | |
| /* Returns pointer to the first occurrence of character c in cs. */
 | |
| 
 | |
| void *memset(void *s, char c, int n);
 | |
| /* Place character c into first n characters of s, return s */
 | |
| 
 | |
| 
 |