odin1314 / yara-project

Automatically exported from code.google.com/p/yara-project
Apache License 2.0
0 stars 0 forks source link

Yara uses C++ reserved words #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Yara uses the word 'namespace' which is a C++ reserved word in numerous 
locations as a variable name.

Trying to link yara into a C++ application leads to compilation errors.

Suggested fix is to simply rename the namespace variable to something that 
isn't a reserved word in the following locations:

yara.h lines 206, 295
ast.h line 164
libyara.c lines 201, 440
ast.c lines 28, 35, 166

yara-python.c contains the word namespace, but since this becomes a python 
module, not as much of a concern.

Original issue reported on code.google.com by mjwia...@gmail.com on 18 Jan 2011 at 3:04

GoogleCodeExporter commented 9 years ago
Fixed on r84.

Original comment by plus...@gmail.com on 16 Feb 2011 at 10:54