This file is indexed.

/usr/include/freehdl/vaul-lexer.h is in libfreehdl0-dev 0.0.7-1.2ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* the lexical scanner

   Copyright (C) 1994-1997, 2003 University of Dortmund
   Department of Electrical Engineering, AG SIV

   VAUL is free software; you can redistribute it and/or modify it
   under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   VAUL is distributed in the hope that it will be useful, but WITHOUT
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General
   Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with VAUL; see the file COPYING.LIB.  If not, write
   to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
   Boston, MA 02111-1307 USA.

*/

#ifndef FREEHDL_VAUL_LEXER_H
#define FREEHDL_VAUL_LEXER_H

#include <freehdl/vaul-errors.h>
#include <freehdl/vaul-chunk.h>
#include <freehdl/vaul-mempool.h>
#include <freehdl/vaul-printer.h>

#include <stdio.h>
#include <stdarg.h>
#include <string.h>

using namespace std;

#undef yyFlexLexer
#define yyFlexLexer vaul_FlexLexer
#include <freehdl/FlexLexer.h>

// sind zwei VHDL-Namen gleich?
//
bool vaul_name_eq(const char *n1, const char *n2);
bool vaul_name_eq(pIIR_TextLiteral i1, pIIR_TextLiteral i2);
bool vaul_name_eq(pIIR_TextLiteral i1, const char *n2);
bool vaul_name_eq(const char *n1, pIIR_TextLiteral i2);

bool vaul_pos_eq (pIIR_PosInfo p1, pIIR_PosInfo p2);

// vaul_yystype hält den semantischen Wert von Token
//
union vaul_yystype {
  VAUL_Tree tree;
  IR_Direction dir;
  VAUL_ObjectClass obj_class;
  IR_Mode mode;
  IR_SignalKind signal_kind;
  bool boolean;
  IR_Kind kind;
};

// vaul_yyltype hält Informationen über die Position eines Tokens
//
struct vaul_yyltype {
  int first_line,
    last_line,
    first_column,
    last_column;
  char *text;

  operator int () { return first_line; }
};

// vaul_lexer enthält den von 'flex++' generierten lexikalischen
// Analysator.
//
struct vaul_lexer : public vaul_FlexLexer, vaul_error_source {

  vaul_lexer(const char *filename, FILE *f = NULL);
  // Öffnet die Datei 'filename' zum Lesen, wenn 'f == NULL'.
  // Sonst wird aus 'f' gelesen und 'filename' wird nur für
  // Fehlermeldungen verwendet.

  ~vaul_lexer();

  int lex(vaul_yystype *val, vaul_yyltype *loc);
  // Sucht das nächste Token und füllt '*val' und '*loc' mit
  // passenden Werten.

  int lineno;
  char *filename;

  void set_printer(vaul_printer *p, FILE *f) { prt = p; log = f; }
  void set_creator(vaul_node_creator *c)     { creator = c; }

  const char *context()
  {
    return yytext[0]? yytext : "end of input"; 
  }
  
  void stop();
  void skip_bodies (bool);

private:
  FILE *file;
  bool close_file;
  
  vaul_printer *prt;
  vaul_node_creator *creator;
  FILE *log;
  
  bool stopped;
  bool skipping;

  IR_String expand_bitstring(const char *, int len);
  
  int LexerInput(char *buf, int max_size);
  void LexerError(char *msg);
  void message(char *fmt, va_list ap);
  void message(vaul_yyltype &loc, char *fmt, va_list ap);

  void maybe_complain_about_improper_underscores (const char *id);
};

#endif