becopyopt: Fix typos in comments.
[libfirm] / ir / common / firm_common.c
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @author    Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
9  */
10 #include "config.h"
11
12 #include "irgraph.h"
13 #include "irloop.h"
14 #include "tv.h"
15
16 /**
17  * Ideally, this macro would check if size bytes could be read at
18  * pointer p. No generic solution.
19  */
20 #define POINTER_READ(p, size) (p)
21
22 /* returns the kind of the thing */
23 firm_kind get_kind(const void *firm_thing)
24 {
25         return POINTER_READ(firm_thing, sizeof(firm_kind)) ? *(firm_kind *)firm_thing : k_BAD;
26 }