~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.h

  • Committer: Monty Taylor
  • Date: 2009-04-25 20:29:54 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425202954-slopmkjj7vxal5lk
Migrated archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
 
4
 *  Copyright (C) 2008 Mark Atwood
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
25
25
#ifndef DRIZZLED_ERRMSG_PRINT_H
26
26
#define DRIZZLED_ERRMSG_PRINT_H
27
27
 
28
 
namespace drizzled
29
 
{
 
28
//void sql_print_error (const char *format, ...);
 
29
//void sql_print_warning (const char *format, ...);
 
30
//void sql_print_information (const char *format, ...);
 
31
//void sql_perror (const char *message);
30
32
 
31
33
#define ERRMSG_LVL_DBUG 1
32
34
#define ERRMSG_LVL_INFO 2
33
35
#define ERRMSG_LVL_WARN 3
34
36
#define ERRMSG_LVL_ERROR 4
35
37
 
36
 
bool errmsg_printf(int priority, char const *format, ...)
37
 
  __attribute__((format(printf, 2, 3)));
38
 
 
39
 
void sql_perror(const char *message);
40
 
 
41
 
} /* namespace drizzled */
 
38
// todo: add __attribute__((format(printf, 1, 2)))
 
39
bool errmsg_printf (int priority, char const *format, ...);
 
40
 
 
41
void sql_perror (const char *message);
42
42
 
43
43
#endif /* DRIZZLED_ERRMSG_PRINT_H */
44
44