This file is indexed.

/usr/include/osl/effect_action/promote.h is in libosl-dev 0.4.2-1.

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
#ifndef _PROMOTE_MOVE_ACTION_H
#define _PROMOTE_MOVE_ACTION_H
#include "osl/move_action/concept.h"
namespace osl
{
  namespace effect_action
  {
    /**
     * SimplePromote と違って, unknownMove を呼ぶ
     */
    template<class Action>
    class Promote
    {
      BOOST_CLASS_REQUIRE(Action,osl::move_action,Concept);
    private:
      const NumEffectState& state;
      Action & ac;
    public:
      Promote(const NumEffectState& s, Action& a) 
	: state(s), ac(a)
      {
      }
      template<Player P,Ptype Type>
      void doActionPtype(Piece p1,Square to){
	Square from=p1.square();
	if(p1.isPromoted())
	  ac.unknownMove(from,to,state.pieceAt(to),promote(Type),false,P);
	else if(to.canPromote<P>() || from.canPromote<P>())
	  ac.unknownMove(from,to,state.pieceAt(to),promote(Type),true,P);
      }
      template<Player P>
      void doAction(Piece p1,Square to){
	Square from=p1.square();
	Ptype ptype=p1.ptype();
	if(p1.isPromoted())
	  ac.unknownMove(from,to,state.pieceAt(to),ptype,false,P);
	else if(to.canPromote<P>() || from.canPromote<P>())
	  ac.unknownMove(from,to,state.pieceAt(to),promote(ptype),true,P);
      }
      bool done() const{ return false;}
    };
  } // namespace effect_action
} // namespace osl
#endif
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: