~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_static.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-07-30 02:39:13 UTC
  • mto: (1115.3.11 captain)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: osullivan.padraig@gmail.com-20090730023913-o2zuocp32l6btnc2
Removing references to MY_BITMAP throughout the code base and updating calls
to MyBitmap in various places to use the new interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
21
 
#ifndef DRIZZLED_INTERNAL_MY_STATIC_H
22
 
#define DRIZZLED_INTERNAL_MY_STATIC_H
23
 
 
24
21
#include <signal.h>
25
22
 
26
23
#define MAX_SIGNALS     10              /* Max signals under a dont-allow */
28
25
#define MAX_KEYBLOCK    8192            /* Max keyblocklength == 8*IO_SIZE */
29
26
#define MAX_BLOCK_TYPES MAX_KEYBLOCK/MIN_KEYBLOCK
30
27
 
31
 
namespace drizzled
32
 
{
33
 
namespace internal
34
 
{
 
28
#ifdef __cplusplus
 
29
extern "C" {
 
30
#endif
 
31
 
 
32
struct st_remember {
 
33
  int number;
 
34
  void (*func)(int number);
 
35
};
35
36
 
36
37
/*
37
38
  Structure that stores information of a allocated memory block
55
56
extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
56
57
 
57
58
extern volatile int _my_signals;
 
59
extern struct st_remember _my_sig_remember[MAX_SIGNALS];
58
60
 
59
61
extern unsigned char    *sf_min_adress,*sf_max_adress;
60
62
extern uint     sf_malloc_count;
64
66
 
65
67
extern sigset_t my_signals;             /* signals blocked by mf_brkhant */
66
68
 
67
 
} /* namespace internal */
68
 
} /* namespace drizzled */
 
69
#ifdef __cplusplus
 
70
}
 
71
#endif
69
72
 
70
 
#endif /* DRIZZLED_INTERNAL_MY_STATIC_H */