42 result = g_malloc0 (
sizeof (
CRPseudo));
57 guchar *result = NULL;
58 GString *str_buf = NULL;
60 g_return_val_if_fail (a_this, NULL);
62 str_buf = g_string_new (NULL);
67 if (a_this->
name == NULL) {
71 name = (guchar *) g_strndup (a_this->
name->stryng->str,
72 a_this->
name->stryng->len);
75 g_string_append (str_buf, (
const gchar *) name);
83 if (a_this->
name == NULL)
86 name = (guchar *) g_strndup (a_this->
name->stryng->str,
87 a_this->
name->stryng->len);
90 arg = (guchar *) g_strndup (a_this->
extra->stryng->str,
91 a_this->
extra->stryng->len);
95 g_string_append_printf (str_buf,
"%s(", name);
100 g_string_append (str_buf, (
const gchar *) arg);
105 g_string_append_c (str_buf,
')');
110 result = (guchar *) str_buf->str;
111 g_string_free (str_buf, FALSE);
118 g_string_free (str_buf, TRUE);
133 guchar *tmp_str = NULL;
138 fprintf (a_fp,
"%s", tmp_str);
154 g_return_if_fail (a_this);
163 a_this->
extra = NULL;
CRPseudo * cr_pseudo_new(void)
@CRPseudo: The definition of the CRPseudo class.
guchar * cr_pseudo_to_string(CRPseudo const *a_this)
cr_pseudo_to_string: @a_this: the current instance of #CRPseud.
void cr_string_destroy(CRString *a_this)
void cr_pseudo_destroy(CRPseudo *a_this)
cr_pseudo_destroy: @a_this: the current instance to destroy.
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.