moment_parser.c File Reference

Go to the source code of this file.

Defines

#define this_domain   (this_quark())
#define SET_SEEN_DATETIME_FROM_TIME_T(tt_expr)

Enumerations

enum  { code_parse_error = 1, code_incomplete_input }

Functions

static GQuark this_quark ()
gboolean parse_moment (const char *s, time_t ctx, time_t now, time_t *result, GError **error)

Variables

static const char _fsm_actions []
static const short _fsm_key_offsets []
static const char _fsm_trans_keys []
static const char _fsm_single_lengths []
static const char _fsm_range_lengths []
static const short _fsm_index_offsets []
static const short _fsm_trans_targs_wi []
static const unsigned char _fsm_trans_actions_wi []
static const int fsm_start = 1
static const int fsm_first_final = 948
static const int fsm_error = 0
static const int fsm_en_main = 1

Define Documentation

#define SET_SEEN_DATETIME_FROM_TIME_T ( tt_expr   ) 
Value:
{                \
    time_t tt = (tt_expr);           \
    gmtime_r(&tt, &seen);          \
  }

Definition at line 20 of file moment_parser.c.

Referenced by parse_moment().

#define this_domain   (this_quark())

Definition at line 13 of file moment_parser.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
code_parse_error 
code_incomplete_input 

Definition at line 15 of file moment_parser.c.


Function Documentation

gboolean parse_moment ( const char *  s,
time_t  ctx,
time_t  now,
time_t *  result,
GError **  error 
)
static GQuark this_quark (  )  [static]

Definition at line 8 of file moment_parser.c.


Variable Documentation

const char _fsm_actions[] [static]

Definition at line 31 of file moment_parser.c.

Referenced by parse_moment().

const short _fsm_index_offsets[] [static]

Definition at line 698 of file moment_parser.c.

Referenced by parse_moment().

const short _fsm_key_offsets[] [static]

Definition at line 64 of file moment_parser.c.

Referenced by parse_moment().

const char _fsm_range_lengths[] [static]

Definition at line 576 of file moment_parser.c.

Referenced by parse_moment().

const char _fsm_single_lengths[] [static]

Definition at line 454 of file moment_parser.c.

Referenced by parse_moment().

const unsigned char _fsm_trans_actions_wi[] [static]

Definition at line 1161 of file moment_parser.c.

Referenced by parse_moment().

const char _fsm_trans_keys[] [static]

Definition at line 186 of file moment_parser.c.

Referenced by parse_moment().

const short _fsm_trans_targs_wi[] [static]

Definition at line 820 of file moment_parser.c.

Referenced by parse_moment().

const int fsm_en_main = 1 [static]

Definition at line 1506 of file moment_parser.c.

const int fsm_error = 0 [static]

Definition at line 1504 of file moment_parser.c.

Referenced by parse_moment().

const int fsm_first_final = 948 [static]

Definition at line 1503 of file moment_parser.c.

Referenced by parse_moment().

const int fsm_start = 1 [static]

Definition at line 1502 of file moment_parser.c.

Referenced by parse_moment().


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:00 2011 by Doxygen 1.6.1