~ubuntu-branches/ubuntu/jaunty/libapache2-mod-python/jaunty

« back to all changes in this revision

Viewing changes to src/include/psp_parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-09-06 20:27:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040906202757-yzpyu1bcabgpjtiu
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2004 Apache Software Foundation 
 
3
 * 
 
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 
5
 * may not use this file except in compliance with the License.  You
 
6
 * may obtain a copy of the License at
 
7
 *
 
8
 *      http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
13
 * implied.  See the License for the specific language governing
 
14
 * permissions and limitations under the License.
 
15
 * $Id: psp_parser.h,v 1.7 2004/02/16 19:47:28 grisha Exp $
 
16
 *
 
17
 */
 
18
 
 
19
#ifndef __PSP_PARSER_H
 
20
#define __PSP_PARSER_H
 
21
 
 
22
#include "psp_string.h"
 
23
#include <Python.h>
 
24
 
 
25
#define STATIC_STR(s) s, sizeof(s)-1
 
26
 
 
27
#define PSP_PG(v) (((psp_parser_t*)yyget_extra(yyscanner))->v)
 
28
 
 
29
typedef struct {
 
30
/*      PyObject   *files;   XXX removed until cache is fixed */
 
31
    psp_string  whitespace;     
 
32
    psp_string  pycode;
 
33
    char *      dir;
 
34
    unsigned    is_psp_echo : 1;
 
35
    unsigned    after_colon : 1;
 
36
    unsigned    seen_newline : 1;
 
37
} psp_parser_t;
 
38
 
 
39
#endif /* __PSP_PARSER_H */