Changeset 2109 for libcaca/trunk


Ignore:
Timestamp:
Dec 1, 2007, 6:57:50 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Import io.c from TOIlet directly into libcucul. Can you see where this is going?
Location:
libcaca/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r2108 r2109  
    116116  AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the `fldln2' and other floating points operands.])],
    117117 [AC_MSG_RESULT(no)])
     118
     119AC_CHECK_HEADERS(zlib.h)
     120AC_CHECK_LIB(z, gzopen, [ZLIB_LIBS="${ZLIB_LIBS} -lz"])
    118121
    119122AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")
     
    310313
    311314AC_SUBST(MATH_LIBS)
     315AC_SUBST(ZLIB_LIBS)
    312316AC_SUBST(GETOPT_LIBS)
    313317AC_SUBST(CACA_LIBS)
  • libcaca/trunk/cucul/Makefile.am

    r2087 r2109  
    2929        import.c \
    3030        export.c \
     31        file.c \
    3132        $(NULL)
    3233libcucul_la_DEPENDENCIES = \
     
    3637AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul
    3738libcucul_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@
    38 libcucul_la_LIBADD =
     39libcucul_la_LIBADD = $(ZLIB_LIBS)
    3940
  • libcaca/trunk/cucul/cucul.h

    r2074 r2109  
    4646/** font structure */
    4747typedef struct cucul_font cucul_font_t;
     48/** file handle structure */
     49typedef struct cucul_file cucul_file_t;
    4850
    4951/** \defgroup cucul_attr libcucul attribute definitions
  • libcaca/trunk/cucul/cucul_internals.h

    r2057 r2109  
    7272extern void _cucul_load_frame_info(cucul_canvas_t *);
    7373
     74/* File functions */
     75extern cucul_file_t *_cucul_file_open(const char *, const char *);
     76extern int _cucul_file_close(cucul_file_t *);
     77extern int _cucul_file_eof(cucul_file_t *);
     78extern char *_cucul_file_gets(char *, int, cucul_file_t *);
     79
    7480#endif /* __CUCUL_INTERNALS_H__ */
Note: See TracChangeset for help on using the changeset viewer.