diff options
author | Peter Johnson <peter@tortall.net> | 2010-08-18 06:21:08 +0000 |
---|---|---|
committer | Peter Johnson <peter@tortall.net> | 2010-08-18 06:21:08 +0000 |
commit | 72df1b52a25e8b4d6853ffe5a724921443413dee (patch) | |
tree | c5347c03e9dd5c793d7313451f763cc6b0f857fe | |
parent | 2f82e3a7bad36fde302d47ea3f64a48f9b90b9d3 (diff) | |
download | yasm-72df1b52a25e8b4d6853ffe5a724921443413dee.tar.gz |
Add yasm_dv_get_value() to get yasm_value from yasm_dataval.
svn path=/trunk/yasm/; revision=2362
-rw-r--r-- | libyasm/bc-data.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libyasm/bc-data.c b/libyasm/bc-data.c index 3191958b..1a62d200 100644 --- a/libyasm/bc-data.c +++ b/libyasm/bc-data.c @@ -480,6 +480,14 @@ yasm_dv_create_reserve(void) return retval; } +yasm_value * +yasm_dv_get_value(yasm_dataval *dv) +{ + if (dv->type != DV_VALUE) + return NULL; + return &dv->data.val; +} + void yasm_dv_set_multiple(yasm_dataval *dv, yasm_expr *e) { |