globus_rsl_print(3)

πŸ’– globus_rsl_print πŸ’–

okay bestie, welcome to the globus_rsl_print(3) page from the globus_rsl manual, and it's literally all about RSL Display πŸ’… so let's get into it, no cap.


✨ NAME ✨

globus_rsl_print β€” RSL Display 🌸

  • RSL Display.

πŸ¦‹ SYNOPSIS πŸ¦‹

Functions πŸŽ€

  • int globus_rsl_value_print_recursive (globus_rsl_value_t *globus_rsl_value_ptr) β€” Print the value of a globus_rsl_value_t to standard output.
  • char * globus_rsl_get_operator (int my_op) β€” Get the string representation of an RSL operator.
  • int globus_rsl_print_recursive (globus_rsl_t *ast_node) β€” Print the value of an RSL syntax tree to standard output.
  • char * globus_rsl_unparse (globus_rsl_t *rsl_spec) β€” Convert an RSL parse tree to a string.
  • char * globus_rsl_value_unparse (globus_rsl_value_t *rsl_value) β€” Convert an RSL value pointer to a string.

🌈 Detailed Description 🌈

RSL Display. That's the whole vibe, and honestly? Iconic. πŸ‘‘


πŸ’« Function Documentation πŸ’«

char * globus_rsl_get_operator (int my_op)

Get the string representation of an RSL operator. The globus_rsl_get_operator() function returns a pointer to a static string that represents the RSL operator you passed in through the my_op parameter. If the operator is not value, then globus_rsl_get_operator() hands you back a pointer to the string "??" β€” like, the saddest little shrug of a string 😭.

Parameters πŸ™ˆ

  • my_op β€” The RSL operator to return.

Returns 🫢

The globus_rsl_get_operator() function returns a pointer to the string representation of the my_op parameter, or "??" if that value is not a value RSL operator.


int globus_rsl_print_recursive (globus_rsl_t * ast_node)

Print the value of an RSL syntax tree to standard output. The globus_rsl_print_recursive() function prints a string representation of the RSL syntax tree pointed to by the ast_node parameter straight to standard output. Heads up though bestie β€” this function is not reentrant πŸ’€ so don't go calling it from everywhere at once.

Parameters 🌸

  • ast_node β€” A pointer to the RSL syntax tree to display.

Returns ⭐

The globus_rsl_print_recursive() function always returns GLOBUS_SUCCESS.


char * globus_rsl_unparse (globus_rsl_t * rsl_spec)

Convert an RSL parse tree to a string. The globus_rsl_unparse() function returns a new string which can be parsed into the RSL syntax tree you passed as the rsl_spec parameter. And listen β€” you, the caller, are responsible for freeing this string. Not it, not the library. You. 🧚

Parameters πŸŽ€

  • rsl_spec β€” A pointer to the RSL syntax tree to unparse.

Returns πŸ’–

Upon success, the globus_rsl_unparse() function returns a new string which represents the RSL parse tree passed as the rsl_spec parameter. If an error occurs, globus_rsl_unparse() returns NULL.


int globus_rsl_value_print_recursive (globus_rsl_value_t * globus_rsl_value_ptr)

Print the value of a globus_rsl_value_t to standard output. The globus_rsl_value_print_recursive() function prints a string representation of the RSL value node pointed to by the globus_rsl_value_ptr parameter to standard output. Same energy as before: this function is not reentrant 😭.

Parameters πŸ¦‹

  • globus_rsl_value_ptr β€” A pointer to the RSL value to display.

Returns πŸ”₯

The globus_rsl_value_print_recursive() function always returns GLOBUS_SUCCESS.


char * globus_rsl_value_unparse (globus_rsl_value_t * rsl_value)

Convert an RSL value pointer to a string. The globus_rsl_value_unparse() function returns a new string which can be parsed into the value of an RSL relation that has the same syntactic meaning as the rsl_value parameter. And again, bestie, the caller is responsible for freeing this string β€” that's a you job πŸ’….

Parameters 🌺

  • rsl_value β€” A pointer to the RSL value node to unparse.

Returns ✨

Upon success, the globus_rsl_value_unparse() function returns a new string which represents the RSL value ndoe passed as the rsl_value parameter. If an error occurs, globus_rsl_value_unparse() returns NULL.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for globus_rsl from the source code. Doxygen really said "I'll write this one myself" and honestly? Ate. πŸ’€


okay so that's the whole page, and the cute lil sign-off is: this is globus_rsl, Version 11.4, page globus_rsl_print(3) β€” go free those strings, bestie, and don't forget who owns them πŸ«ΆπŸ’–

πŸ“¦ where this page comes from