errno.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*-------------------------------------------------------------------------
  2. errno.h - Error codes used in the math functions
  3. Copyright (C) 2001, Jesus Calvino-Fraga jesusc@ieee.org
  4. Ported to PIC16 port by Vangelis Rokas, 2004 <vrokas AT otenet.gr>
  5. This library is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU General Public License as published by the
  7. Free Software Foundation; either version 2, or (at your option) any
  8. later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this library; see the file COPYING. If not, write to the
  15. Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
  16. MA 02110-1301, USA.
  17. As a special exception, if you link this library with other files,
  18. some of which are compiled with SDCC, to produce an executable,
  19. this library does not by itself cause the resulting executable to
  20. be covered by the GNU General Public License. This exception does
  21. not however invalidate any other reasons why the executable file
  22. might be covered by the GNU General Public License.
  23. -------------------------------------------------------------------------*/
  24. #ifndef _PIC16_ERRNO_H
  25. #define _PIC16_ERRNO_H
  26. /* link with C library */
  27. #pragma library c
  28. extern int errno;
  29. /* Error Codes: */
  30. #define EDOM 33 /* Math argument out of domain of functions */
  31. #define ERANGE 34 /* Math result not representable */
  32. #endif /* _PIC16_ERRNO_H */