fixed %template within %extend, test added
fixed language symbol table nested classes name separator, test added fixed %feature "flatnested" working with %extend fixed Swig_offset_string for empty string added simple template to save/restore values in current scope (readability reasons)
This commit is contained in:
parent
8dba8b1fde
commit
b4fef06c42
12 changed files with 55 additions and 39 deletions
|
|
@ -1154,13 +1154,13 @@ String *Swig_string_strip(String *s) {
|
|||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
void Swig_offset_string(String *s, int number) {
|
||||
char *res;
|
||||
char *p;
|
||||
char *end;
|
||||
char *res, *p, *end, *start;
|
||||
/* count a number of lines in s */
|
||||
int lines = 1;
|
||||
int len = Len(s);
|
||||
char *start = strchr(Char(s), '\n');
|
||||
if (len == 0)
|
||||
return;
|
||||
start = strchr(Char(s), '\n');
|
||||
while (start) {
|
||||
++lines;
|
||||
start = strchr(start + 1, '\n');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue