From f3cf0f579347a16120df8fc1c1ec3cd1f4e6d44e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 2 Jan 2011 23:20:31 +0000 Subject: simple properties split in parse similar to select in preparation for future generation svn path=/trunk/libcss/; revision=11188 --- src/parse/properties/border_bottom.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/parse/properties/border_bottom.c (limited to 'src/parse/properties/border_bottom.c') diff --git a/src/parse/properties/border_bottom.c b/src/parse/properties/border_bottom.c new file mode 100644 index 0000000..0ac1ebc --- /dev/null +++ b/src/parse/properties/border_bottom.c @@ -0,0 +1,35 @@ +/* + * This file is part of LibCSS. + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2009 John-Mark Bell + */ + +#include +#include + +#include "bytecode/bytecode.h" +#include "bytecode/opcodes.h" +#include "parse/properties/properties.h" +#include "parse/properties/utils.h" + +/** + * Parse border-bottom shorthand + * + * \param c Parsing context + * \param vector Vector of tokens to process + * \param ctx Pointer to vector iteration context + * \param result Pointer to location to receive resulting style + * \return CSS_OK on success, + * CSS_NOMEM on memory exhaustion, + * CSS_INVALID if the input is not valid + * + * Post condition: \a *ctx is updated with the next token to process + * If the input is invalid, then \a *ctx remains unchanged. + */ +css_error parse_border_bottom(css_language *c, + const parserutils_vector *vector, int *ctx, + css_style **result) +{ + return parse_border_side(c, vector, ctx, BORDER_SIDE_BOTTOM, result); +} -- cgit v1.2.3