OpenScop
0.9.0
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <osl/macros.h>
#include <osl/util.h>
#include <osl/interface.h>
#include <osl/extensions/null.h>
Go to the source code of this file.
Functions | |
void | osl_null_idump (FILE *file, osl_null_p null, int level) |
void | osl_null_dump (FILE *file, osl_null_p null) |
char * | osl_null_sprint (osl_null_p null) |
osl_null_p | osl_null_sread (char **input) |
osl_null_p | osl_null_malloc () |
void | osl_null_free (osl_null_p null) |
osl_null_p | osl_null_clone (osl_null_p null) |
int | osl_null_equal (osl_null_p c1, osl_null_p c2) |
osl_interface_p | osl_null_interface () |
osl_null_p osl_null_clone | ( | osl_null_p | null | ) |
osl_null_clone function: this function builds and returns a "hard copy" (not a pointer copy) of an osl_null_t data structure.
[in] | null | The pointer to the null structure to clone. |
Definition at line 218 of file null.c.
References osl_null_malloc().
Referenced by osl_null_interface().
void osl_null_dump | ( | FILE * | file, |
osl_null_p | null | ||
) |
osl_null_dump function: this function prints the content of an osl_null_t structure (*null) into a file (file, possibly stdout).
[in] | file | The file where the information has to be printed. |
[in] | null | The null structure to print. |
Definition at line 114 of file null.c.
References osl_null_idump().
int osl_null_equal | ( | osl_null_p | c1, |
osl_null_p | c2 | ||
) |
osl_null_equal function: this function returns true if the two null structures are the same (content-wise), false otherwise.
[in] | c1 | The first null structure. |
[in] | c2 | The second null structure. |
Definition at line 237 of file null.c.
References OSL_info.
Referenced by osl_null_interface().
void osl_null_free | ( | osl_null_p | null | ) |
osl_null_free function: this function frees the allocated memory for an osl_null_t structure.
[in,out] | null | The pointer to the null structure to free. |
Definition at line 199 of file null.c.
Referenced by osl_null_interface().
void osl_null_idump | ( | FILE * | file, |
osl_null_p | null, | ||
int | level | ||
) |
osl_null_idump function: this function displays an osl_null_t structure (*null) into a file (file, possibly stdout) in a way that trends to be understandable. It includes an indentation level (level) in order to work with others idump functions.
[in] | file | The file where the information has to be printed. |
[in] | null | The null structure to print. |
[in] | level | Number of spaces before printing, for each line. |
Definition at line 88 of file null.c.
Referenced by osl_null_dump(), and osl_null_interface().
osl_null_interface function: this function creates an interface structure corresponding to the null extension and returns it).
Definition at line 256 of file null.c.
References osl_interface_malloc(), osl_null_clone(), osl_null_equal(), osl_null_free(), osl_null_idump(), osl_null_malloc(), osl_null_sprint(), osl_null_sread(), OSL_strdup, and OSL_URI_NULL.
Referenced by osl_interface_get_default_registry().
osl_null_malloc function: this function allocates the memory space for an osl_null_t structure and sets its fields with default values. Then it returns a pointer to the allocated space.
Definition at line 185 of file null.c.
References OSL_malloc.
Referenced by osl_null_clone(), osl_null_interface(), and osl_null_sread().
char* osl_null_sprint | ( | osl_null_p | null | ) |
osl_null_sprint function: this function prints the content of an osl_null_t structure (*null) into a string (returned) in the OpenScop textual format.
[in] | null | The null structure to print. |
Definition at line 126 of file null.c.
References OSL_malloc.
Referenced by osl_null_interface().
osl_null_p osl_null_sread | ( | char ** | input | ) |
osl_null_sread function: this function reads a null structure from a string complying to the OpenScop textual format and returns a pointer to this null structure. The input parameter is updated to the position in the input string this function reach right after reading the null structure.
[in,out] | input | The input string where to find a null. Updated to the position after what has been read. |
Definition at line 154 of file null.c.
References OSL_debug, and osl_null_malloc().
Referenced by osl_null_interface().