/* -*- 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 the COPYRIGHTS file for copyright information.
*/
#include <string.h>
#include "cr-parsing-location.h"
/**
*@CRParsingLocation:
*
*Definition of the #CRparsingLocation class.
*/
/**
* cr_parsing_location_new:
*Instanciates a new parsing location.
*
*Returns the newly instanciated #CRParsingLocation.
*Must be freed by cr_parsing_location_destroy()
*/
cr_parsing_location_new (void)
{
if (!result) {
cr_utils_trace_info ("Out of memory error") ;
return NULL ;
}
return result ;
}
/**
* cr_parsing_location_init:
*@a_this: the current instance of #CRParsingLocation.
*
*Initializes the an instance of #CRparsingLocation.
*
*Returns CR_OK upon succesful completion, an error code otherwise.
*/
enum CRStatus
{
return CR_OK ;
}
/**
* cr_parsing_location_copy:
*@a_to: the destination of the copy.
*Must be allocated by the caller.
*@a_from: the source of the copy.
*
*Copies an instance of CRParsingLocation into another one.
*
*Returns CR_OK upon succesful completion, an error code
*otherwise.
*/
enum CRStatus
CRParsingLocation const *a_from)
{
return CR_OK ;
}
/**
* cr_parsing_location_to_string:
*@a_this: the current instance of #CRParsingLocation.
*@a_mask: a bitmap that defines which parts of the
*parsing location are to be serialized (line, column or byte offset)
*
*Returns the serialized string or NULL in case of an error.
*/
gchar *
{
if (!a_mask) {
}
if (!result)
return NULL ;
}
if (a_mask & DUMP_COLUMN) {
}
if (a_mask & DUMP_BYTE_OFFSET) {
a_this->byte_offset) ;
}
} else {
}
return str ;
}
/**
* cr_parsing_location_dump:
* @a_this: current instance of #CRParsingLocation
* @a_mask: the serialization mask.
* @a_fp: the file pointer to dump the parsing location to.
*/
void
{
if (str) {
}
}
/**
* cr_parsing_location_destroy:
*@a_this: the current instance of #CRParsingLocation. Must
*have been allocated with cr_parsing_location_new().
*
*Destroys the current instance of #CRParsingLocation
*/
void
{
}