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/caca/caca.c

    r1208 r1362  
    2525#   include <string.h>
    2626#   include <stdio.h>
    27 #   if defined(HAVE_ERRNO_H)
    28 #       include <errno.h>
    29 #   endif
    3027#   if defined(USE_PLUGINS)
    3128#       if defined(HAVE_DLFCN_H)
     
    7067    if(!dp)
    7168    {
    72 #if defined(HAVE_ERRNO_H)
    73         errno = ENOMEM;
    74 #endif
     69        seterrno(ENOMEM);
    7570        return NULL;
    7671    }
     
    8883#endif
    8984        free(dp);
    90 #if defined(HAVE_ERRNO_H)
    91         errno = ENODEV;
    92 #endif
     85        seterrno(ENODEV);
    9386        return NULL;
    9487    }
     
    10194#endif
    10295        free(dp);
    103 #if defined(HAVE_ERRNO_H)
    104         errno = ENODEV;
    105 #endif
     96        seterrno(ENODEV);
    10697        return NULL;
    10798    }
Note: See TracChangeset for help on using the changeset viewer.