%PDF- %PDF-
| Direktori : /proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/builtins/file/ |
| Current File : //proc/thread-self/root/usr/lib/python3/dist-packages/pythran/pythonic/builtins/file/seek.hpp |
#ifndef PYTHONIC_BUILTIN_FILE_SEEK_HPP
#define PYTHONIC_BUILTIN_FILE_SEEK_HPP
#include "pythonic/include/builtins/file/seek.hpp"
#include "pythonic/types/file.hpp"
#include "pythonic/utils/functor.hpp"
PYTHONIC_NS_BEGIN
namespace builtins
{
namespace file
{
void seek(types::file &f, long offset)
{
f.seek(offset);
}
void seek(types::file &&f, long offset)
{
// Nothing have to be done as it is a lvalue
}
void seek(types::file &f, long offset, long whence)
{
f.seek(offset, whence);
}
void seek(types::file &&f, long offset, long whence)
{
// Nothing have to be done as it is a lvalue
}
}
}
PYTHONIC_NS_END
#endif