mirror of https://github.com/swig/swig
Revert some insignificant changes done in historical C branch
This undoes parts of a2dc2756c
(Several major fixes for: arrays, static
members, member func.ptrs., exceptions, ... Lots of tests runs ok now.,
2009-04-13) that shouldn't have been done in the first place.
This commit is contained in:
parent
6a96b8d477
commit
0fcdec302c
|
@ -9,14 +9,10 @@
|
|||
int globalints[] = {100, 200, 300};
|
||||
const int constglobalints[] = {400, 500, 600};
|
||||
|
||||
class CC {};
|
||||
|
||||
struct Bar {
|
||||
static int ints[];
|
||||
static CC ccs[];
|
||||
};
|
||||
int Bar::ints[] = {700, 800, 900};
|
||||
CC Bar::ccs[] = {CC(), CC()};
|
||||
|
||||
double arr_bool(bool array[], int length) { double sum=0.0; int i=0; for(; i<length; i++) { sum += array[i]; array[i]=!array[i]; } return sum; }
|
||||
double arr_char(char array[], int length) { double sum=0.0; int i=0; for(; i<length; i++) { sum += array[i]; array[i]*=2; } return sum; }
|
||||
|
|
Loading…
Reference in New Issue