Institut de Robòtica i Informàtica Industrial
KRD Group

The CuikSuite Project

error_world.c File Reference

Implementation of world error and warning functions. More...

#include "error_world.h"
#include "error.h"
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int ReadWorlderror (const char *s)
 Syntax errors in .world files.

Variables

unsigned int RWline = 0

Detailed Description

Implementation of world error and warning functions.

See also:
error_world.h

Definition in file error_world.c.


Function Documentation

int ReadWorlderror ( const char *  s  ) 

This function is called by the .world file parser when encountering syntax errors.

Parameters:
s A string generated by Bison (Normally it contains "Syntax Error").
Returns:
EXIT_FAILURE.
See also:
error.h

Definition at line 47 of file error_world.c.

References Error(), and RWline.

Here is the call graph for this function:


Variable Documentation

unsigned int RWline = 0

Number of the line currently parsed when reading a .world file.

Definition at line 45 of file error_world.c.

Referenced by ReadWorlderror().