~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to lib/sql-tokenizer.l

  • Committer: Kay Roepke
  • Date: 2009-09-02 14:04:24 UTC
  • Revision ID: kay@sun.com-20090902140424-j795532tpi1y06lt
Fix linking errors on Win32:
 * chassis-timing was missing CHASSIS_API
 * evutil_socketpair was not exported

Suppress superfluous warnings from MSVC and fix a couple of valid ones (unused variables etc).

Add third path to the dllexport macros, to be used in testcases which are statically linked (fixes linker warnings).
Fixes PR-237

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <unistd.h>
31
31
#endif
32
32
 
 
33
#ifdef WIN32
 
34
#include <io.h>  /* for read */
 
35
#include <stdlib.h>  /* for exit */
 
36
#endif
 
37
 
33
38
#define YY_DECL int sql_tokenizer_internal(GPtrArray *tokens)
34
39
 
35
40
static void sql_token_append(GPtrArray *tokens, sql_token_id token_id, gchar *text);