~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-security

« back to all changes in this revision

Viewing changes to src/lexer_v3.l

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id$ */
 
1
/* $Id: lexer_v3.l 6766 2009-01-12 04:27:36Z relson $ */
2
2
 
3
3
%{
4
4
/*
117
117
static word_t *yy_text(void)
118
118
{
119
119
    static word_t yyt;
120
 
    yyt.text = (byte *)yytext;
 
120
    yyt.u.text = (byte *)yytext;
121
121
    yyt.leng = yyleng;
122
122
    return &yyt;
123
123
}
225
225
 
226
226
<INITIAL>{ENCODED_TOKEN}                        { word_t *raw = yy_text();
227
227
                                                  word_t *txt = text_decode(raw);
228
 
                                                  yy_unput(txt->text, txt->leng);
 
228
                                                  yy_unput(txt->u.text, txt->leng);
229
229
                                                }
230
230
 
231
231
<INITIAL>^(To|CC|From|Return-Path|Subject|Received):    { set_tag(yytext); }