~ubuntu-branches/ubuntu/trusty/luajit/trusty

« back to all changes in this revision

Viewing changes to src/lj_cparse.h

  • Committer: Package Import Robot
  • Author(s): Enrico Tassi
  • Date: 2012-11-03 14:07:56 UTC
  • mfrom: (1.2.1) (15.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121103140756-z0zcnyrwqlvuc2m5
Tags: 2.0.0+dfsg-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
** C declaration parser.
3
 
** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h
 
3
** Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
4
4
*/
5
5
 
6
6
#ifndef _LJ_CPARSE_H
23
23
#define CPARSE_MODE_DIRECT      4       /* Accept direct declarators. */
24
24
#define CPARSE_MODE_FIELD       8       /* Accept field width in bits, too. */
25
25
#define CPARSE_MODE_NOIMPLICIT  16      /* Reject implicit declarations. */
 
26
#define CPARSE_MODE_SKIP        32      /* Skip definitions, ignore errors. */
26
27
 
27
28
typedef int CPChar;     /* C parser character. Unsigned ext. from char. */
28
29
typedef int CPToken;    /* C parser token. */
47
48
  SBuf sb;              /* String buffer for tokens. */
48
49
  lua_State *L;         /* Lua state. */
49
50
  CTState *cts;         /* C type state. */
 
51
  TValue *param;        /* C type parameters. */
50
52
  const char *srcname;  /* Current source name. */
51
53
  BCLine linenumber;    /* Input line counter. */
52
54
  int depth;            /* Recursive declaration depth. */