~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
#include "drizzled/pthread_globals.h"
53
53
#include "drizzled/internal/iocache.h"
54
54
 
55
 
 
56
55
using namespace std;
57
 
using namespace drizzled;
 
56
 
 
57
namespace drizzled
 
58
{
58
59
 
59
60
extern bool volatile shutdown_in_progress;
60
61
 
69
70
static int open_unireg_entry(Session *session, Table *entry, TableList *table_list,
70
71
                             const char *alias,
71
72
                             char *cache_key, uint32_t cache_key_length);
72
 
extern "C"
73
 
{
74
 
  void free_cache_entry(void *entry);
75
 
  unsigned char *table_cache_key(const unsigned char *record,
76
 
                                 size_t *length,
77
 
                                 bool );
78
 
}
79
 
 
 
73
void free_cache_entry(void *entry);
 
74
unsigned char *table_cache_key(const unsigned char *record,
 
75
                               size_t *length,
 
76
                               bool );
80
77
 
81
78
 
82
79
unsigned char *table_cache_key(const unsigned char *record,
208
205
 
209
206
    if (db && my_strcasecmp(system_charset_info, db, entry->s->db.str))
210
207
      continue;
211
 
    if (wild && wild_compare(entry->s->table_name.str, wild, 0))
 
208
    if (wild && internal::wild_compare(entry->s->table_name.str, wild, 0))
212
209
      continue;
213
210
 
214
211
    for (it= open_list.begin(); it < open_list.end(); it++)
4573
4570
  pthread_kill(signal_thread, SIGTERM);
4574
4571
  shutdown_in_progress= 1;                      // Safety if kill didn't work
4575
4572
}
 
4573
 
 
4574
} /* namespace drizzled */