Swig question

In gnuradio/gr-usrp/src/usrp1.i line 265 is the code:

class usrp1_source_base : public gr_sync_block {
protected:

usrp1_sink_base (const std::string &name,
gr_io_signature_sptr input_signature,
int which_board,
unsigned int interp_rate,
int nchan,
int mux,
int fusb_block_size,
int fusb_nblocks,
const std::string fpga_filename,
const std::string firmware_filename
) throw (std::runtime_error);

Instead of the contructor “usrp1_source_base” we have the function
“usrp1_sink_base”. This isn’t what I would expect. Does swig care?

Thanks,

– Don W.

Don W. wrote:

Instead of the contructor “usrp1_source_base” we have the function
“usrp1_sink_base”. This isn’t what I would expect. Does swig care?

Well, it does, and this is a bug, but it we’re lucky that it doesn’t
cause any apparent harm. Good catch, I’ll fix on the trunk.


Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com

On Sun, Sep 16, 2007 at 10:02:08PM -0400, Don W. wrote:

int mux,

– Don W.

Thanks.

This could explain some of the exception handling problems we’ve seen.

Eric