Results 1 to 2 of 2

Thread: support for none case sensitive languages

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4

    support for none case sensitive languages

    there are some defines in UPPERCASE with the same name in lowercase

    for example:
    typedef float cl_float
    and later
    #define CL_FLOAT

    happy number crunching

    Joshy
    (Sorry about my bad English)

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Posts
    7

    Re: support for none case sensitive languages

    Yeah, CL naming scheme causes quite a lot of naming collisions in non-case sensitive languages (such as Delphi).

    cl_device_type, CL_DEVICE_TYPE
    cl_context_properties, CL_CONTEXT_PROPERTIES
    cl_mem_flags, CL_MEM_FLAGS
    etc.

    OpenGL seems to have a lot less collisions, because only the function names + types are able to collide, and it seems unlikely that you'd have new functions called "glInt()", "glEnum()" etc. The constants + type names can't collide because they start with "GL_" or "GL".

    I think we're stuck with the current system now, so the way I work around it in Delphi is to have all the types prefixed with "T", which is a normal Delphi convention, and leave all the constants as they are:
    eg.
    Tcl_char = ShortInt;
    Tcl_uchar = Byte;
    ...

    This allows one rule to prevent the collisions, which seems easier to handle than just renaming the specific names that collide.

Similar Threads

  1. IN case of OMX_CONF_WaitForResourcesTest
    By jaeryul in forum OpenMAX IL
    Replies: 1
    Last Post: 08-22-2008, 08:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •