This file is indexed.

/usr/include/osl/ntesuki/ntesukiMove.tcc is in libosl-dev 0.8.0-1.4.

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
/* ntesukiMove.tcc
 */
#include "osl/ntesuki/ntesukiMove.h"
#include "osl/ntesuki/ntesukiRecord.h"

template<osl::Player P>
void osl::ntesuki::NtesukiMove::
setImmediateCheckmate()
{
  if (P == osl::BLACK)
    flags |= (IS_SUCCESS_BLACK_MASK | IMMEDIATE_CHECKMATE);
  else
    flags |= (IS_SUCCESS_WHITE_MASK | IMMEDIATE_CHECKMATE);
};

/* private functions to check FLAGS for success/fail
 */
template <osl::Player P>
int osl::ntesuki::NtesukiMove::
is_success_flag(int pass_left) const
{
  ntesuki_assert(pass_left >= 0 && 
		 pass_left <= 3);
  if (P == osl::BLACK)
    return 1 << (IS_SUCCESS_BLACK_SHIFT + pass_left);
  if (P == osl::WHITE)
    return 1 << (IS_SUCCESS_WHITE_SHIFT + pass_left);
}

template <osl::Player P>
int osl::ntesuki::NtesukiMove::
is_fail_flag(int pass_left) const
{
  ntesuki_assert(pass_left >= 0 && 
		 pass_left <= 3);
  if (P == osl::BLACK)
    return 1 << (IS_FAIL_BLACK_SHIFT + pass_left);
  else
    return 1 << (IS_FAIL_WHITE_SHIFT + pass_left);
}

template<osl::Player P>
void
osl::ntesuki::NtesukiMove::
setCheckmateSuccess(int pass_left)
{
  ntesuki_assert(!(flags & is_success_flag<P>(pass_left)));
  ntesuki_assert(!(flags & is_fail_flag<P>(pass_left)));
  flags |= is_success_flag<P>(pass_left);
};

template<osl::Player P>
bool osl::ntesuki::NtesukiMove::
isCheckmateSuccess(int pass_left) const
{
  return (flags & is_success_flag<P>(pass_left)) == is_success_flag<P>(pass_left);
}

template<osl::Player P>
void osl::ntesuki::NtesukiMove::
setCheckmateFail(int pass_left)
{
  ntesuki_assert(!(flags & is_fail_flag<P>(pass_left)));
  ntesuki_assert(!(flags & is_success_flag<P>(pass_left)));
  flags |= is_fail_flag<P>(pass_left);
};


template<osl::Player P>
bool osl::ntesuki::NtesukiMove::
isCheckmateFail(int pass_left) const
{
  return (flags & is_fail_flag<P>(pass_left)) == is_fail_flag<P>(pass_left);
}

// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: