Ignore:
Timestamp:
Nov 12, 2006, 4:26:13 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
  • More debugging information in the import/export and font functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cucul/frame.c

    r1357 r1362  
    2323#   include <stdlib.h>
    2424#   include <string.h>
    25 #   if defined(HAVE_ERRNO_H)
    26 #       include <errno.h>
    27 #   endif
    2825#endif
    2926
     
    6764    if(frame >= cv->framecount)
    6865    {
    69 #if defined(HAVE_ERRNO_H)
    70         errno = EINVAL;
    71 #endif
     66        seterrno(EINVAL);
    7267        return -1;
    7368    }
     
    161156    if(id >= cv->framecount)
    162157    {
    163 #if defined(HAVE_ERRNO_H)
    164         errno = EINVAL;
    165 #endif
     158        seterrno(EINVAL);
    166159        return -1;
    167160    }
     
    169162    if(cv->framecount == 1)
    170163    {
    171 #if defined(HAVE_ERRNO_H)
    172         errno = EINVAL;
    173 #endif
     164        seterrno(EINVAL);
    174165        return -1;
    175166    }
Note: See TracChangeset for help on using the changeset viewer.