cr-additional-sel.c revision 6b15695578f07a3f72c4c9475c1a261a3021472a
/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
/*
* This file is part of The Croco Library
*
* modify it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* Author: Dodji Seketeli
* See COPYRIGHTS file for copyright information.
*
*/
#include "cr-additional-sel.h"
#include "string.h"
/**
*Default constructor of #CRAdditionalSel.
*@return the newly build instance of #CRAdditionalSel.
*/
cr_additional_sel_new (void)
{
cr_utils_trace_debug ("Out of memory");
return NULL;
}
return result;
}
/**
*Constructor of #CRAdditionalSel.
*@param a_sel_type the type of the newly built instance
*of #CRAdditionalSel.
*@return the newly built instance of #CRAdditionalSel.
*/
{
result = cr_additional_sel_new ();
return result;
}
/**
*Sets a new class name to a
*CLASS additional selector.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_class_name the new class name to set.
*
*/
void
{
}
}
/**
*Sets a new id name to an
*ID additional selector.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_id the new id to set.
*/
void
{
}
}
/**
*Sets a new pseudo to a
*PSEUDO additional selector.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_pseudo the new pseudo to set.
*/
void
{
}
}
/**
*Sets a new instance of #CRAttrSel to
*a ATTRIBUTE additional selector.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_sel the new instance of #CRAttrSel to set.
*/
void
{
}
}
/**
*Appends a new instance of #CRAdditional to the
*current list of #CRAdditional.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_sel the new instance to #CRAdditional to append.
*@return the new list of CRAdditionalSel or NULL if an error arises.
*/
{
return a_sel;
}
return NULL;
return a_this;
}
/**
*Preppends a new instance of #CRAdditional to the
*current list of #CRAdditional.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*@param a_sel the new instance to #CRAdditional to preappend.
*@return the new list of CRAdditionalSel or NULL if an error arises.
*/
{
return a_sel;
}
return a_sel;
}
guchar *
{
case CLASS_ADD_SELECTOR:
{
if (name) {
(str_buf, ".%s",
name);
}
}
}
break;
case ID_ADD_SELECTOR:
{
if (name) {
(str_buf, "#%s",
name);
}
}
}
break;
{
if (tmp_str) {
(str_buf, ":%s",
tmp_str);
}
}
}
break;
case ATTRIBUTE_ADD_SELECTOR:
if (tmp_str) {
}
}
break;
default:
break;
}
}
if (str_buf) {
}
return result;
}
guchar *
{
case CLASS_ADD_SELECTOR:
{
if (name) {
(str_buf, ".%s",
name);
}
}
}
break;
case ID_ADD_SELECTOR:
{
if (name) {
(str_buf, "#%s",
name);
}
}
}
break;
{
if (tmp_str) {
(str_buf, ":%s",
tmp_str);
}
}
}
break;
case ATTRIBUTE_ADD_SELECTOR:
if (tmp_str) {
}
}
break;
default:
break;
}
if (str_buf) {
}
return result;
}
/**
*Dumps the current instance of #CRAdditionalSel to a file
*@param a_this the "this pointer" of the current instance of
*#CRAdditionalSel.
*@param a_fp the destination file.
*/
void
{
if (a_this) {
if (tmp_str) {
}
}
}
/**
*Destroys an instance of #CRAdditional.
*@param a_this the "this pointer" of the current instance
*of #CRAdditionalSel .
*/
void
{
case CLASS_ADD_SELECTOR:
break;
break;
case ID_ADD_SELECTOR:
break;
case ATTRIBUTE_ADD_SELECTOR:
break;
default:
break;
}
}
}