/usr/include/osl/neighboring8.h is in libosl-dev 0.6.0-3.
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 | /* neighboring8.h
*/
#ifndef OSL_NEIGHBORING8_H
#define OSL_NEIGHBORING8_H
#include "osl/boardTable.h"
namespace osl
{
struct Neighboring8
{
static bool isNeighboring8(Square from,Square to)
{
return (from != to)
&& (to == from+Board_Table.getShortOffsetNotKnight(Offset32(to,from)));
}
};
} // namespace osl
#endif /* OSL_NEIGHBORING8_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|