Skip to content

Commit

Permalink
Fix header guards to comply with standards
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 16, 2014
1 parent b9463a5 commit ac61dd6
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions libyara/arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _ARENA_H
#define _ARENA_H
#ifndef YR_ARENA_H
#define YR_ARENA_H

#include <stdint.h>
#include <stddef.h>
Expand Down
4 changes: 2 additions & 2 deletions libyara/atoms.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ limitations under the License.
*/


#ifndef _ATOMS_H
#define _ATOMS_H
#ifndef YR_ATOMS_H
#define YR_ATOMS_H

#include "re.h"
#include "yara.h"
Expand Down
4 changes: 2 additions & 2 deletions libyara/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _COMPILER_H
#define _COMPILER_H
#ifndef YR_COMPILER_H
#define YR_COMPILER_H

#include <stdio.h>

Expand Down
4 changes: 2 additions & 2 deletions libyara/exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _EXEC_H
#define _EXEC_H
#ifndef YR_EXEC_H
#define YR_EXEC_H

#include "yara.h"

Expand Down
4 changes: 2 additions & 2 deletions libyara/exefiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _EXEFILES_H
#define _EXEFILES_H
#ifndef YR_EXEFILES_H
#define YR_EXEFILES_H

int yr_file_is_pe(
uint8_t* buffer,
Expand Down
3 changes: 3 additions & 0 deletions libyara/filemap.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef YR_FILEMAP_H
#define YR_FILEMAP_H

#ifdef WIN32
#include <windows.h>
#define FILE_DESCRIPTOR HANDLE
Expand Down
4 changes: 2 additions & 2 deletions libyara/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _HASH_H
#define _HASH_H
#ifndef YR_HASH_H
#define YR_HASH_H

#include "yara.h"

Expand Down
4 changes: 2 additions & 2 deletions libyara/mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _MEM_H
#define _MEM_H
#ifndef YR_MEM_H
#define YR_MEM_H

#include <stdio.h>

Expand Down
4 changes: 2 additions & 2 deletions libyara/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _PARSER_H
#define _PARSER_H
#ifndef YR_PARSER_H
#define YR_PARSER_H

#include "arena.h"
#include "compiler.h"
Expand Down
4 changes: 2 additions & 2 deletions libyara/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _PROC_H
#define _PROC_H
#ifndef YR_PROC_H
#define YR_PROC_H

#include "yara.h"

Expand Down
4 changes: 2 additions & 2 deletions libyara/re.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _RE_H
#define _RE_H
#ifndef YR_RE_H
#define YR_RE_H

#include "yara.h"
#include "sizedstr.h"
Expand Down
4 changes: 2 additions & 2 deletions libyara/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _UTILS_H
#define _UTILS_H
#ifndef YR_UTILS_H
#define YR_UTILS_H

size_t xtoi(const char* hexstr);

Expand Down
4 changes: 2 additions & 2 deletions libyara/yara.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _YARA_H
#define _YARA_H
#ifndef YR_YARA_H
#define YR_YARA_H

#include <stdio.h>
#include <stdint.h>
Expand Down

0 comments on commit ac61dd6

Please sign in to comment.