Changeset 172


Ignore:
Timestamp:
05/21/06 10:58:32 (9 years ago)
Author:
xi
Message:

Add doxygen support.

Location:
libyaml/trunk
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/Makefile.am

    r169 r172  
    33 
    44SUBDIRS = include src . tests 
     5 
     6EXTRA_DIST = doc/doxygen.cfg 
     7 
     8maintainer-clean-local: 
     9        -rm -f aclocal.m4 config.h.in configure config/* 
     10        -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' 
     11 
     12.PHONY: bootstrap 
     13bootstrap: maintainer-clean 
     14        ./bootstrap 
     15 
  • libyaml/trunk/configure.ac

    r169 r172  
    5656AC_PROG_LIBTOOL 
    5757 
     58AC_CHECK_PROG(DOXYGEN, [doxygen], [true], [false]) 
     59AM_CONDITIONAL(DOXYGEN, [test "$DOXYGEN" = true]) 
     60 
    5861# Checks for header files. 
    5962AC_HEADER_STDC 
  • libyaml/trunk/include/Makefile.am

    r169 r172  
    1 nobase_include_HEADERS = yaml/yaml.h yaml/yaml_version.h yaml/yaml_error.h 
     1INCLUDES = yaml/yaml.h yaml/yaml_version.h yaml/yaml_error.h 
     2DOXYGEN_CFG = $(top_srcdir)/doc/doxygen.cfg 
     3 
     4nobase_include_HEADERS = $(INCLUDES) 
     5 
     6if DOXYGEN 
     7 
     8html: $(INCLUDES) $(DOXYGEN_CFG) 
     9        PACKAGE=$(PACKAGE) VERSION=$(VERSION) top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) doxygen $(DOXYGEN_CFG) 
     10 
     11endif 
     12 
     13distclean-local: 
     14        -rm -rf $(top_builddir)/doc/html 
     15 
     16dist-hook: html 
     17        cp -a $(top_builddir)/doc/html $(top_distdir)/doc 
  • libyaml/trunk/include/yaml/yaml.h

    r169 r172  
     1/** 
     2 * @file yaml.h 
     3 * @brief Public interface for libyaml. 
     4 *  
     5 * Include the header file with 
     6 * @code 
     7 * #include <yaml/yaml.h> 
     8 * @endcode 
     9 */ 
    110 
    211#ifndef YAML_H 
  • libyaml/trunk/include/yaml/yaml_version.h

    r169 r172  
     1/** 
     2 * @file yaml_version.h 
     3 * @brief Version information. 
     4 * 
     5 * Do not include yaml_version.h directly. 
     6 */ 
     7 
    18#ifndef YAML_VERSION_H 
    29#define YAML_VERSION_H 
     
    613#endif 
    714 
     15/** 
     16 * @brief Get the library version. 
     17 */ 
     18 
    819const char * 
    920yaml_get_version_string(void); 
    1021 
     22/** 
     23 * @brief Get the library version numbers. 
     24 */ 
     25 
    1126void 
    1227yaml_get_version(int *major, int *minor, int *patch); 
    13  
    14 int 
    15 yaml_check_version(int major, int minor, int patch); 
    1628 
    1729#ifdef __cplusplus 
  • libyaml/trunk/src/version.c

    r169 r172  
    2020} 
    2121 
    22 int 
    23 yaml_check_version(int major, int minor, int patch) 
    24 { 
    25     return (major == YAML_VERSION_MAJOR 
    26             && minor == YAML_VERSION_MINOR 
    27             && patch >= YAML_VERSION_PATCH); 
    28 } 
    29  
  • libyaml/trunk/tests/Makefile.am

    r169 r172  
    11AM_CPPFLAGS = -I$(top_srcdir)/include 
    2 LDADD = $(top_srcdir)/src/libyaml.la 
     2LDADD = $(top_builddir)/src/libyaml.la 
    33TESTS = test-version 
    44check_PROGRAMS = test-version 
  • libyaml/trunk/tests/test-version.c

    r169 r172  
    88main(void) 
    99{ 
    10     int major, minor, patch; 
     10    int major = -1; 
     11    int minor = -1; 
     12    int patch = -1; 
    1113    char buf[64]; 
    1214 
     
    1416    sprintf(buf, "%d.%d.%d", major, minor, patch); 
    1517    assert(strcmp(buf, yaml_get_version_string()) == 0); 
    16     assert(yaml_check_version(major+1, minor, patch) == 0); 
    17     assert(yaml_check_version(major, minor+1, patch) == 0); 
    18     assert(yaml_check_version(major, minor, patch+1) == 1); 
    19     assert(yaml_check_version(major, minor, patch) == 1); 
    20     assert(yaml_check_version(major, minor, patch-1) == 0); 
    2118 
    2219    return 0; 
Note: See TracChangeset for help on using the changeset viewer.