#ifndef __RECTYPES_H
#define __RECTYPES_H


#define NOERR   0
#define FIELDERR -1

// @T
typedef long  TRecnotype;
// @END

enum TFilelock { _excllock = 0x100, _autolock = 0x200,
                 _manulock = 0x400};
enum TReclock { _unlock = 0x1000, _nolock = 0x2000, _lock = 0x4000,
                _testandlock = (int)0x8000} ;
                enum TRecstates { _valid, _deleted};
enum TDirtype { _nordir, _comdir } ;
enum TDirop { _nordirop, _sysdirop };
enum TFieldtypes { _nullfld, _alfafld, _intfld, _longfld, _realfld,
                   _datefld, _wordfld, _charfld, _boolfld , _intzerofld, _longzerofld} ;
                   enum TIsamop { _isfirst = 0x0, _islast = 0x1, _isnext= 0x2, 
                                  _isprev = 0x4, _iscurr = 0x8, _isequal = 0x10,
                                  _isgreat = 0x20, _isgteq = 0x40, _isnextn = 0x100,
                                  _isprevn = 0x200} ;
                                  enum TIsamerr { _iseof = 201, _isbof = 202, _isfileovf = 203,
                                                  _iskeynotfound = 204, _isemptyfile = 205,
                                                  _isdupkey = 206, _isnocurkey = 207,
                                                  _iskeyrangeerr = 211, _iskeyerr = 212,
                                                  _iskeylenerr = 214, _ispatherr = 216, _ispathfull = 217,
                                                  _isnrecerr = 218, _isfilefull = 219, _isnotopen = 220,
                                                  _isnotcurr = 221, _isalropen = 222, _isdeadlock = 223,
                                                  _isreinsert = 224, _islocked = 225} ;
                                                  typedef long  TRecnotype;

#endif // __RECTYPES_H