diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2014-08-07 16:32:08 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2014-08-07 16:33:17 +0100 |
commit | 8fe45877a27292c018a81ab3b3ede6f770a9667d (patch) | |
tree | ddfc71d4a4312f3b7fc631d0396cf58416bec35f | |
parent | 546e8e270c2af68ebbe8240feabd91ae66f81d2f (diff) | |
download | efl-8fe45877a27292c018a81ab3b3ede6f770a9667d.tar.gz |
eolian: better doc
-rw-r--r-- | src/lib/eolian/Eolian.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h index 3578bcdd97..59eaad5748 100644 --- a/src/lib/eolian/Eolian.h +++ b/src/lib/eolian/Eolian.h @@ -1111,13 +1111,19 @@ EAPI Eolian_Expression_Type eolian_expression_eval(const Eolian_Expression *expr EAPI Eolian_Expression_Type eolian_expression_eval_type(const Eolian_Expression *expr, const Eolian_Type *type, Eina_Value **val); /* - * @brief Convert the result of expression evaluation to string. + * @brief Convert the result of expression evaluation to a literal as in how + * it would appear in C (e.g. strings are quoted and escaped). * * @param[in] v the value. * @param[in] etp the eolian type of the value. * @return a stringshare containing the literal (quoted and escaped as needed) * or NULL. * + * For e.g. strings this only uses a subset of regular C escape sequences + * so that interoperability is wider than just C (no octal escapes). For + * languages that differ too much, you can write an equivalent function + * using the Eina_Value pointer provided by the eval. + * * @ingroup Eolian */ EAPI Eina_Stringshare *eolian_expression_value_to_literal(const Eina_Value *v, Eolian_Expression_Type etp); |