This file is indexed.

/usr/include/falcon/deptab.h is in falconpl-dev 0.9.6.9-git20120606-2.1+b1.

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
/*
   FALCON - The Falcon Programming Language.
   FILE: flc_deptab.h

   Dependency table declaration
   -------------------------------------------------------------------
   Author: Giancarlo Niccolai
   Begin: dom ago 8 2004

   -------------------------------------------------------------------
   (C) Copyright 2004: the FALCON developers (see list in AUTHORS file)

   See LICENSE file for licensing details.
*/

#ifndef flc_DEPTAB_H
#define flc_DEPTAB_H

#include <falcon/string.h>
#include <falcon/genericmap.h>

/** \file
   Dependency table support for modules - header - .
*/

namespace Falcon {

class Module;
class Stream;

/** Class storing dependency data. */
class ModuleDepData: public BaseAlloc
{
   String m_modName;
   bool m_bPrivate;
   bool m_bFile;

public:
   ModuleDepData( const String modName, bool bPrivate = false, bool bFile = false ):
      m_modName( modName ),
      m_bPrivate( bPrivate ),
      m_bFile( bFile )
   {}

   const String &moduleName() const { return m_modName; }
   bool isPrivate() const { return m_bPrivate; }
   bool isFile() const { return m_bFile; }
   void setPrivate( bool mode ) { m_bPrivate = mode; }
};

/** Module dependency table.
   Actually it's just a string map supporting module-aware serialization.
   The strings are actually held in the module string table.
*/
class FALCON_DYN_CLASS DependTable: public Map
{
public:
   DependTable();
   ~DependTable();

   bool save( Stream *out ) const ;
   bool load( Module *mod, Stream *in );

   /** Adds a dependency to the table.
      This method creates a new dependency entry with a given
      dependency local alias, a physical or logical module name
      and a privacy setting.

      \note Strings must be pointers to Strings held in the module
      string table.

      \param alias The local module alias.
      \param name The logical or physical module name.
      \param bPrivate true if the module is private, false to honor its exports.
   */
   void addDependency( const String &alias, const String &name, bool bPrivate, bool bFile=false );

   /** Adds a dependency to the table.
      This version of the function adds a dependency with the same physical
      or logical name as the local alias.
   */
   void addDependency( const String &name, bool bPrivate = false, bool bFile = false ) {
      addDependency( name, name, bPrivate, bFile );
   }

   ModuleDepData *findModule( const String &name ) const
   {
      ModuleDepData **data = (ModuleDepData **) find( &name );
      if( data == 0 )
         return 0;

      return *data;
   }
};

}

#endif

/* end of flc_deptab.h */