~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/default.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:
33
33
 --print-defaults         ; Print the modified command line and exit
34
34
****************************************************************************/
35
35
 
36
 
#include "drizzled/internal/mysys_priv.h"
 
36
#include "config.h"
 
37
 
 
38
#include "drizzled/internal/my_sys.h"
37
39
#include "drizzled/internal/m_string.h"
38
40
#include "drizzled/charset_info.h"
39
41
#include <drizzled/configmake.h>
48
50
#include <cstdio>
49
51
#include <algorithm>
50
52
 
51
 
 
52
 
using namespace drizzled;
53
53
using namespace std;
54
54
 
 
55
namespace drizzled
 
56
{
 
57
namespace internal
 
58
{
 
59
 
55
60
const char *my_defaults_file=0;
56
61
const char *my_defaults_group_suffix=0;
57
62
char *my_defaults_extra_file=0;
676
681
                                ptr, name, line)))
677
682
          goto err;
678
683
 
679
 
        drizzled::CachedDirectory dir_cache(ptr);
 
684
        CachedDirectory dir_cache(ptr);
680
685
 
681
686
        if (dir_cache.fail())
682
687
        {
691
696
          goto err;
692
697
        }
693
698
 
694
 
        drizzled::CachedDirectory::Entries files= dir_cache.getEntries();
695
 
        drizzled::CachedDirectory::Entries::iterator file_iter= files.begin();
 
699
        CachedDirectory::Entries files= dir_cache.getEntries();
 
700
        CachedDirectory::Entries::iterator file_iter= files.begin();
696
701
 
697
702
        while (file_iter != files.end())
698
703
        {
699
 
          drizzled::CachedDirectory::Entry *entry= *file_iter;
 
704
          CachedDirectory::Entry *entry= *file_iter;
700
705
          ext= fn_ext(entry->filename.c_str());
701
706
 
702
707
          /* check extension */
983
988
  ADD_COMMON_DIRECTORIES();
984
989
  ADD_DIRECTORY("~/");
985
990
}
 
991
 
 
992
} /* namespace internal */
 
993
} /* namespace drizzled */