This file is indexed.

/usr/include/falcon/modulecache.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
/*
   FALCON - The Falcon Programming Language.
   FILE: modulecache.h

   Cache-sensible module loader.
   -------------------------------------------------------------------
   Author: Giancarlo Niccolai
   Begin: Sun, 30 May 2010 15:12:30 +0200

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

   See LICENSE file for licensing details.
*/

#ifndef FALCON_MODULECACHE_H_
#define FALCON_MODULECACHE_H_

#include <falcon/setup.h>
#include <falcon/basealloc.h>
#include <falcon/string.h>
#include <falcon/module.h>
#include <falcon/mt.h>
#include <falcon/genericmap.h>

namespace Falcon {

/** The cache where modules are stored.

    Updates are threadsafe.
 */
class ModuleCache: public BaseAlloc
{
public:
   ModuleCache();

   /** When the cache is destroyed, all the modules in it are decreffed. */
   ~ModuleCache();

   /** Adds a module to the cache.
      The module is increffed when added to the cache. If another module with the
      same name is already in the map, the old module is returned (increffed),
      and the incoming module is decreffed.
   */
   Module* add( const String& muri, Module* module );

   /** Removes a module from the cache.
       If the module is in the cache, it is decreffed.
   */
   bool remove( const String& muri );

   /** Returns a module if it is in cache, or 0 if not found.
       The returned instance is increffed.
   */
   Module* find( const String& muri );

private:
   Mutex m_mtx;
   int m_refCount;
   Map m_modMap;
};

}

#endif

/* end of modulecache.h */