Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Embedding ruby - name clashes

Reply
Thread Tools

Embedding ruby - name clashes

 
 
Brian Candler
Guest
Posts: n/a
 
      07-22-2003
Something to consider when embedding ruby: ruby.h defines some short names
which may clash with your main program.

Right now I am working on openldap-2.2.0alpha and trying to incorporate a
back-ruby backend (based on back-perl). Unfortunately, both Ruby and
OpenLDAP define a constant called 'ID'

In fact they are compatible - both are

typedef unsigned long ID;

So I'm having to do macro tricks to get around this. Also note that
RE_DUP_MAX, defined in [archdir]/ruby.h, is a duplicate of RE_DUP_MAX in
<sys/syslimits.h> under FreeBSD, although the macros are compatible and so I
just get a warning rather than an error.

Just thought I'd mention it anyway.

Cheers,

Brian.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PDB command <-> variable clashes Kääriäinen Anssi Python 3 10-09-2011 02:52 AM
Dealing with name clashes in pypi Patrick Sabin Python 0 05-22-2011 06:34 PM
Inheritance and name clashes Rock Python 20 10-05-2010 01:29 AM
Clashes between type conversion and operator[] Arne Schmitz C++ 6 11-14-2005 01:46 PM
Why aren't signed/unsigned type clashes checked? Clint Olsen C Programming 10 07-11-2003 01:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57