[Forensics-changes] [yara] 301/407: Implement declare_double() and set_double().

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit 4f8a039321ce4989b1fffee9ce1e9b44c488d55f
Author: Wesley Shields <wxs at atarininja.org>
Date:   Fri Jan 2 16:51:12 2015 -0500

    Implement declare_double() and set_double().
---
 libyara/include/yara/modules.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/libyara/include/yara/modules.h b/libyara/include/yara/modules.h
index 03fcfa1..dbdc48f 100644
--- a/libyara/include/yara/modules.h
+++ b/libyara/include/yara/modules.h
@@ -130,6 +130,15 @@ limitations under the License.
   }
 
 
+#define declare_double(name) { \
+    FAIL_ON_ERROR(yr_object_create( \
+        OBJECT_TYPE_DOUBLE, \
+        name, \
+        stack[stack_top], \
+        NULL)); \
+  }
+
+
 #define declare_integer_array(name) { \
     YR_OBJECT* array; \
     FAIL_ON_ERROR(yr_object_create( \
@@ -269,6 +278,10 @@ limitations under the License.
     yr_object_set_integer(value, object, __VA_ARGS__)
 
 
+#define set_double(value, object, ...) \
+    yr_object_set_double(value, object, __VA_ARGS__)
+
+
 #define set_sized_string(value, len, object, ...) \
     yr_object_set_string(value, len, object, __VA_ARGS__)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list