doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Enumerations | Functions
getdate.c File Reference
#include "setup.h"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "getdate.h"

Go to the source code of this file.

Classes

struct  _TABLE
 
struct  _CURL_CONTEXT
 
union  YYSTYPE
 

Macros

#define YYBISON   1 /* Identify Bison output. */
 
#define tAGO   257
 
#define tDAY   258
 
#define tDAY_UNIT   259
 
#define tDAYZONE   260
 
#define tDST   261
 
#define tHOUR_UNIT   262
 
#define tID   263
 
#define tMERIDIAN   264
 
#define tMINUTE_UNIT   265
 
#define tMONTH   266
 
#define tMONTH_UNIT   267
 
#define tSEC_UNIT   268
 
#define tSNUMBER   269
 
#define tUNUMBER   270
 
#define tYEAR_UNIT   271
 
#define tZONE   272
 
#define YYDEBUG   0
 
#define IN_CTYPE_DOMAIN(c)   1
 
#define ISSPACE(c)   (IN_CTYPE_DOMAIN (c) && isspace (c))
 
#define ISALPHA(c)   (IN_CTYPE_DOMAIN (c) && isalpha (c))
 
#define ISUPPER(c)   (IN_CTYPE_DOMAIN (c) && isupper (c))
 
#define ISDIGIT_LOCALE(c)   (IN_CTYPE_DOMAIN (c) && isdigit (c))
 
#define ISDIGIT(c)   ((unsigned) (c) - '0' <= 9)
 
#define YYMAXDEPTH   0
 
#define __attribute__(x)
 
#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))
 
#define yymaxdepth   Curl_gd_maxdepth
 
#define yyparse   Curl_gd_parse
 
#define yylex   Curl_gd_lex
 
#define yyerror   Curl_gd_error
 
#define yylval   Curl_gd_lval
 
#define yychar   Curl_gd_char
 
#define yydebug   Curl_gd_debug
 
#define yypact   Curl_gd_pact
 
#define yyr1   Curl_gd_r1
 
#define yyr2   Curl_gd_r2
 
#define yydef   Curl_gd_def
 
#define yychk   Curl_gd_chk
 
#define yypgo   Curl_gd_pgo
 
#define yyact   Curl_gd_act
 
#define yyexca   Curl_gd_exca
 
#define yyerrflag   Curl_gd_errflag
 
#define yynerrs   Curl_gd_nerrs
 
#define yyps   Curl_gd_ps
 
#define yypv   Curl_gd_pv
 
#define yys   Curl_gd_s
 
#define yy_yys   Curl_gd_yys
 
#define yystate   Curl_gd_state
 
#define yytmp   Curl_gd_tmp
 
#define yyv   Curl_gd_v
 
#define yy_yyv   Curl_gd_yyv
 
#define yyval   Curl_gd_val
 
#define yylloc   Curl_gd_lloc
 
#define yyreds   Curl_gd_reds /* With YYDEBUG defined */
 
#define yytoks   Curl_gd_toks /* With YYDEBUG defined */
 
#define yylhs   Curl_gd_yylhs
 
#define yylen   Curl_gd_yylen
 
#define yydefred   Curl_gd_yydefred
 
#define yydgoto   Curl_gd_yydgoto
 
#define yysindex   Curl_gd_yysindex
 
#define yyrindex   Curl_gd_yyrindex
 
#define yygindex   Curl_gd_yygindex
 
#define yytable   Curl_gd_yytable
 
#define yycheck   Curl_gd_yycheck
 
#define EPOCH   1970
 
#define HOUR(x)   ((x) * 60)
 
#define MAX_BUFF_LEN   128 /* size of buffer to read the date into */
 
#define YYPARSE_PARAM   cookie
 
#define YYLEX_PARAM   cookie
 
#define context   ((CURL_CONTEXT *) cookie)
 
#define const
 
#define YYFINAL   61
 
#define YYFLAG   -32768
 
#define YYNTBASE   22
 
#define YYTRANSLATE(x)   ((unsigned)(x) <= 272 ? yytranslate[x] : 32)
 
#define YYLAST   51
 
#define YYPURE   1
 
#define YYSTACK_ALLOC   malloc
 
#define yyerrok   (yyerrstatus = 0)
 
#define yyclearin   (yychar = YYEMPTY)
 
#define YYEMPTY   -2
 
#define YYEOF   0
 
#define YYACCEPT   goto yyacceptlab
 
#define YYABORT   goto yyabortlab
 
#define YYERROR   goto yyerrlab1
 
#define YYFAIL   goto yyerrlab
 
#define YYRECOVERING()   (!!yyerrstatus)
 
#define YYBACKUP(token, value)
 
#define YYTERROR   1
 
#define YYERRCODE   256
 
#define YYLEX   yylex(&yylval, YYLEX_PARAM)
 
#define YYINITDEPTH   200
 
#define YYMAXDEPTH   10000
 
#define YYPARSE_PARAM_ARG   YYPARSE_PARAM
 
#define YYPARSE_PARAM_DECL   void *YYPARSE_PARAM;
 
#define YYPOPSTACK   (yyvsp--, yyssp--)
 
#define TM_YEAR_ORIGIN   1900
 

Typedefs

typedef struct _TABLE TABLE
 
typedef enum _MERIDIAN MERIDIAN
 
typedef struct _CURL_CONTEXT CURL_CONTEXT
 

Enumerations

enum  _MERIDIAN { MERam, MERpm, MER24 }
 

Functions

int yyparse (YYPARSE_PARAM_ARG)
 
struct tm * gmtime (const time_t *)
 
struct tm * localtime (const time_t *)
 
time_t mktime (struct tm *)
 
time_t curl_getdate (const char *p, const time_t *now)
 

Macro Definition Documentation

#define __attribute__ (   x)

Definition at line 122 of file getdate.c.

#define ATTRIBUTE_UNUSED   __attribute__ ((__unused__))

Definition at line 126 of file getdate.c.

#define const

Definition at line 251 of file getdate.c.

#define context   ((CURL_CONTEXT *) cookie)

Definition at line 236 of file getdate.c.

#define EPOCH   1970

Definition at line 183 of file getdate.c.

#define HOUR (   x)    ((x) * 60)

Definition at line 184 of file getdate.c.

#define IN_CTYPE_DOMAIN (   c)    1

Definition at line 88 of file getdate.c.

#define ISALPHA (   c)    (IN_CTYPE_DOMAIN (c) && isalpha (c))

Definition at line 94 of file getdate.c.

#define ISDIGIT (   c)    ((unsigned) (c) - '0' <= 9)

Definition at line 106 of file getdate.c.

#define ISDIGIT_LOCALE (   c)    (IN_CTYPE_DOMAIN (c) && isdigit (c))

Definition at line 96 of file getdate.c.

#define ISSPACE (   c)    (IN_CTYPE_DOMAIN (c) && isspace (c))

Definition at line 93 of file getdate.c.

#define ISUPPER (   c)    (IN_CTYPE_DOMAIN (c) && isupper (c))

Definition at line 95 of file getdate.c.

#define MAX_BUFF_LEN   128 /* size of buffer to read the date into */

Definition at line 186 of file getdate.c.

#define tAGO   257

Definition at line 11 of file getdate.c.

#define tDAY   258

Definition at line 12 of file getdate.c.

#define tDAY_UNIT   259

Definition at line 13 of file getdate.c.

#define tDAYZONE   260

Definition at line 14 of file getdate.c.

#define tDST   261

Definition at line 15 of file getdate.c.

#define tHOUR_UNIT   262

Definition at line 16 of file getdate.c.

#define tID   263

Definition at line 17 of file getdate.c.

#define TM_YEAR_ORIGIN   1900

Definition at line 1967 of file getdate.c.

#define tMERIDIAN   264

Definition at line 18 of file getdate.c.

#define tMINUTE_UNIT   265

Definition at line 19 of file getdate.c.

#define tMONTH   266

Definition at line 20 of file getdate.c.

#define tMONTH_UNIT   267

Definition at line 21 of file getdate.c.

#define tSEC_UNIT   268

Definition at line 22 of file getdate.c.

#define tSNUMBER   269

Definition at line 23 of file getdate.c.

#define tUNUMBER   270

Definition at line 24 of file getdate.c.

#define tYEAR_UNIT   271

Definition at line 25 of file getdate.c.

#define tZONE   272

Definition at line 26 of file getdate.c.

#define yy_yys   Curl_gd_yys

Definition at line 164 of file getdate.c.

#define yy_yyv   Curl_gd_yyv

Definition at line 168 of file getdate.c.

#define YYABORT   goto yyabortlab

Definition at line 500 of file getdate.c.

#define YYACCEPT   goto yyacceptlab

Definition at line 499 of file getdate.c.

#define yyact   Curl_gd_act

Definition at line 157 of file getdate.c.

#define YYBACKUP (   token,
  value 
)
Value:
if (yychar == YYEMPTY && yylen == 1) \
{ yychar = (token), yylval = (value); \
yychar1 = YYTRANSLATE (yychar); \
goto yybackup; \
} \
else \
{ yyerror ("syntax error: cannot back up"); YYERROR; } \
while (0)
GLsizei const GLfloat * value
Definition: glext.h:3614
#define YYTRANSLATE(x)
Definition: getdate.c:261
#define YYERROR
Definition: getdate.c:501
#define yyerror
Definition: getdate.c:147
#define YYEMPTY
Definition: getdate.c:497
#define YYPOPSTACK
#define yylen
Definition: getdate.c:174
#define yychar
Definition: getdate.c:149
#define yylval
Definition: getdate.c:148
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 508 of file getdate.c.

#define YYBISON   1 /* Identify Bison output. */

Definition at line 9 of file getdate.c.

#define yychar   Curl_gd_char

Definition at line 149 of file getdate.c.

#define yycheck   Curl_gd_yycheck

Definition at line 181 of file getdate.c.

#define yychk   Curl_gd_chk

Definition at line 155 of file getdate.c.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 496 of file getdate.c.

#define YYDEBUG   0

Definition at line 54 of file getdate.c.

#define yydebug   Curl_gd_debug

Definition at line 150 of file getdate.c.

#define yydef   Curl_gd_def

Definition at line 154 of file getdate.c.

#define yydefred   Curl_gd_yydefred

Definition at line 175 of file getdate.c.

#define yydgoto   Curl_gd_yydgoto

Definition at line 176 of file getdate.c.

#define YYEMPTY   -2

Definition at line 497 of file getdate.c.

#define YYEOF   0

Definition at line 498 of file getdate.c.

#define YYERRCODE   256

Definition at line 521 of file getdate.c.

#define yyerrflag   Curl_gd_errflag

Definition at line 159 of file getdate.c.

#define yyerrok   (yyerrstatus = 0)

Definition at line 495 of file getdate.c.

#define yyerror   Curl_gd_error

Definition at line 147 of file getdate.c.

#define YYERROR   goto yyerrlab1

Definition at line 501 of file getdate.c.

#define yyexca   Curl_gd_exca

Definition at line 158 of file getdate.c.

#define YYFAIL   goto yyerrlab

Definition at line 506 of file getdate.c.

#define YYFINAL   61

Definition at line 257 of file getdate.c.

#define YYFLAG   -32768

Definition at line 258 of file getdate.c.

#define yygindex   Curl_gd_yygindex

Definition at line 179 of file getdate.c.

#define YYINITDEPTH   200

Definition at line 568 of file getdate.c.

#define YYLAST   51

Definition at line 389 of file getdate.c.

#define yylen   Curl_gd_yylen

Definition at line 174 of file getdate.c.

#define yylex   Curl_gd_lex

Definition at line 146 of file getdate.c.

#define YYLEX   yylex(&yylval, YYLEX_PARAM)

Definition at line 536 of file getdate.c.

#define YYLEX_PARAM   cookie

Definition at line 235 of file getdate.c.

#define yylhs   Curl_gd_yylhs

Definition at line 173 of file getdate.c.

#define yylloc   Curl_gd_lloc

Definition at line 170 of file getdate.c.

#define yylval   Curl_gd_lval

Definition at line 148 of file getdate.c.

#define YYMAXDEPTH   0

Definition at line 579 of file getdate.c.

#define yymaxdepth   Curl_gd_maxdepth

Definition at line 144 of file getdate.c.

#define YYMAXDEPTH   10000

Definition at line 579 of file getdate.c.

#define yynerrs   Curl_gd_nerrs

Definition at line 160 of file getdate.c.

#define YYNTBASE   22

Definition at line 259 of file getdate.c.

#define yypact   Curl_gd_pact

Definition at line 151 of file getdate.c.

#define yyparse   Curl_gd_parse

Definition at line 145 of file getdate.c.

#define YYPARSE_PARAM   cookie

Definition at line 234 of file getdate.c.

#define YYPARSE_PARAM_ARG   YYPARSE_PARAM

Definition at line 639 of file getdate.c.

#define YYPARSE_PARAM_DECL   void *YYPARSE_PARAM;

Definition at line 640 of file getdate.c.

#define yypgo   Curl_gd_pgo

Definition at line 156 of file getdate.c.

#define YYPOPSTACK   (yyvsp--, yyssp--)
#define yyps   Curl_gd_ps

Definition at line 161 of file getdate.c.

#define YYPURE   1

Definition at line 409 of file getdate.c.

#define yypv   Curl_gd_pv

Definition at line 162 of file getdate.c.

#define yyr1   Curl_gd_r1

Definition at line 152 of file getdate.c.

#define yyr2   Curl_gd_r2

Definition at line 153 of file getdate.c.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 507 of file getdate.c.

#define yyreds   Curl_gd_reds /* With YYDEBUG defined */

Definition at line 171 of file getdate.c.

#define yyrindex   Curl_gd_yyrindex

Definition at line 178 of file getdate.c.

#define yys   Curl_gd_s

Definition at line 163 of file getdate.c.

#define yysindex   Curl_gd_yysindex

Definition at line 177 of file getdate.c.

#define YYSTACK_ALLOC   malloc

Definition at line 488 of file getdate.c.

#define yystate   Curl_gd_state

Definition at line 165 of file getdate.c.

#define yytable   Curl_gd_yytable

Definition at line 180 of file getdate.c.

#define YYTERROR   1

Definition at line 520 of file getdate.c.

#define yytmp   Curl_gd_tmp

Definition at line 166 of file getdate.c.

#define yytoks   Curl_gd_toks /* With YYDEBUG defined */

Definition at line 172 of file getdate.c.

#define YYTRANSLATE (   x)    ((unsigned)(x) <= 272 ? yytranslate[x] : 32)

Definition at line 261 of file getdate.c.

#define yyv   Curl_gd_v

Definition at line 167 of file getdate.c.

#define yyval   Curl_gd_val

Definition at line 169 of file getdate.c.

Typedef Documentation

typedef struct _CURL_CONTEXT CURL_CONTEXT
typedef enum _MERIDIAN MERIDIAN
typedef struct _TABLE TABLE

Enumeration Type Documentation

enum _MERIDIAN
Enumerator
MERam 
MERpm 
MER24 

Definition at line 201 of file getdate.c.

Function Documentation

time_t curl_getdate ( const char *  p,
const time_t *  now 
)

Definition at line 1991 of file getdate.c.

struct tm* gmtime ( const time_t *  )
struct tm* localtime ( const time_t *  )
time_t mktime ( struct tm *  )
int yyparse ( YYPARSE_PARAM_ARG  )

Definition at line 657 of file getdate.c.