This file is indexed.

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

   Standard falcon allocator.
   -------------------------------------------------------------------
   Author: Giancarlo Niccolai
   Begin: mar ago 3 2004

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

   See LICENSE file for licensing details.
*/

#ifndef flc_ALLOCATOR_H
#define flc_ALLOCATOR_H

#include <falcon/memory.h>

namespace Falcon {

/** Standard falcon allocator.
   Bridges STL with falcon memory allocation.
*/

template<class _Tp> 
class Allocator
{
public:
      typedef size_t     size_type;
      typedef ptrdiff_t  difference_type;
      typedef _Tp*       pointer;
      typedef const _Tp* const_pointer;
      typedef _Tp&       reference;
      typedef const _Tp& const_reference;
      typedef _Tp        value_type;

      template<typename _Tp1>
        struct rebind
        { typedef Allocator<_Tp1> other; };

      Allocator() throw() {}
      //Allocator(const Allocator&) throw() {}
      template<typename _Tp1>
        Allocator(const Allocator<_Tp1>&) throw() {}
      ~Allocator() throw() {}

      pointer
      address(reference __x) const { return &__x; }

      const_pointer
      address(const_reference __x) const { return &__x; }

      size_type max_size() const throw() { return size_t(-1) / sizeof(_Tp); }

      void construct(pointer __p, const _Tp& __val) { new(__p) _Tp(__val); }
      void destroy(pointer __p) { __p->~_Tp(); }


   _Tp* allocate( size_type n, const void* = 0 )
   {
      return reinterpret_cast<_Tp*>( memAlloc( n * sizeof( _Tp ) ) );
   }

   void deallocate( _Tp* p, size_type n )
   {
      memFree( p );
   }

#ifdef _MSC_VER
   void deallocate( void* p, size_type n )
   {
      memFree( p );
   }
   _Tp* _Charalloc( size_type n )
   {
      return allocate( n );
   }
#endif
};

template <class T1, class T2>
bool operator== (const Allocator<T1>& one,
               const Allocator<T2>& two) throw() {
   if ( &one == &two ) return true;
   return false;
}

template <class T1, class T2>
bool operator!= (const Allocator<T1>& one,
               const Allocator<T2>& two) throw() {
   if ( &one == &two ) return false;
}

}

#endif
/* end of flc_allocator.h */