Libcroco
Data Structures | Typedefs | Enumerations | Functions
cr-pseudo.h File Reference
#include <stdio.h>
#include <glib.h>
#include "cr-attr-sel.h"
#include "cr-parsing-location.h"

Go to the source code of this file.

Data Structures

struct  _CRPseudo
 The CRPseudo Class. More...
 

Typedefs

typedef struct _CRPseudo CRPseudo
 

Enumerations

enum  CRPseudoType { IDENT_PSEUDO = 0, FUNCTION_PSEUDO }
 

Functions

CRPseudocr_pseudo_new (void)
 @CRPseudo: The definition of the CRPseudo class. More...
 
guchar * cr_pseudo_to_string (CRPseudo const *a_this)
 cr_pseudo_to_string: @a_this: the current instance of #CRPseud. More...
 
void cr_pseudo_dump (CRPseudo const *a_this, FILE *a_fp)
 cr_pseudo_dump: @a_this: the current instance of pseudo @a_fp: the destination file pointer. More...
 
void cr_pseudo_destroy (CRPseudo *a_this)
 cr_pseudo_destroy: @a_this: the current instance to destroy. More...
 

Typedef Documentation

◆ CRPseudo

typedef struct _CRPseudo CRPseudo

Definition at line 39 of file cr-pseudo.h.

Enumeration Type Documentation

◆ CRPseudoType

Enumerator
IDENT_PSEUDO 
FUNCTION_PSEUDO 

Definition at line 33 of file cr-pseudo.h.

Function Documentation

◆ cr_pseudo_destroy()

void cr_pseudo_destroy ( CRPseudo a_this)

cr_pseudo_destroy: @a_this: the current instance to destroy.

destructor of the CRPseudo class.

Definition at line 152 of file cr-pseudo.c.

References cr_string_destroy(), _CRPseudo::extra, and _CRPseudo::name.

Referenced by cr_additional_sel_destroy(), and cr_additional_sel_set_pseudo().

◆ cr_pseudo_dump()

void cr_pseudo_dump ( CRPseudo const *  a_this,
FILE *  a_fp 
)

cr_pseudo_dump: @a_this: the current instance of pseudo @a_fp: the destination file pointer.

Dumps the pseudo to a file.

Definition at line 131 of file cr-pseudo.c.

References cr_pseudo_to_string().

◆ cr_pseudo_new()

CRPseudo* cr_pseudo_new ( void  )

@CRPseudo: The definition of the CRPseudo class.

cr_pseudo_new: Constructor of the CRPseudo class.

Returns the newly build instance.

Definition at line 38 of file cr-pseudo.c.

◆ cr_pseudo_to_string()

guchar* cr_pseudo_to_string ( CRPseudo const *  a_this)

cr_pseudo_to_string: @a_this: the current instance of #CRPseud.

Returns the serialized pseudo. Caller must free the returned string using g_free().

Definition at line 55 of file cr-pseudo.c.

References IDENT_PSEUDO, _CRPseudo::name, and _CRPseudo::type.

Referenced by cr_additional_sel_one_to_string(), cr_additional_sel_to_string(), and cr_pseudo_dump().