summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-07 16:32:08 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-07 16:33:17 +0100
commit8fe45877a27292c018a81ab3b3ede6f770a9667d (patch)
treeddfc71d4a4312f3b7fc631d0396cf58416bec35f
parent546e8e270c2af68ebbe8240feabd91ae66f81d2f (diff)
downloadefl-8fe45877a27292c018a81ab3b3ede6f770a9667d.tar.gz
eolian: better doc
-rw-r--r--src/lib/eolian/Eolian.h8
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);