← Back to team overview

linux-traipu team mailing list archive

[Bug 715800] Re: Type Duplication

 

Marking as fixed.

** Changed in: drizzle
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to Drizzle.
https://bugs.launchpad.net/bugs/715800

Title:
  Type Duplication

Status in A Lightweight SQL Database for Cloud Infrastructure and Web Applications:
  Fix Released

Bug description:
  Forward declarations are useful, but ATM they're used in a way that causes type duplication. If the type of st_typelib / TYPELIB changes, all occurences of this typedef have to be changed. This is bad, IMO.
  One solution is to put such forward declarations in a _fwd header.

  drizzled\create_field.h(28):typedef struct st_typelib TYPELIB;
  drizzled\field.h(58):typedef struct st_typelib TYPELIB;
  drizzled\option.h(53):struct st_typelib;
  drizzled\option.h(62):  struct st_typelib *typelib;           /* Pointer to possible values */
  drizzled\sql_locale.h(26):typedef struct st_typelib TYPELIB;
  drizzled\strfunc.h(27):typedef struct st_typelib TYPELIB;
  drizzled\item\type_holder.h(26):typedef struct st_typelib TYPELIB;

To manage notifications about this bug go to:
https://bugs.launchpad.net/drizzle/+bug/715800/+subscriptions