mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
Revert "[qfcc} Mark some more functions as pure"
This reverts commit 65b48c734c
.
I forgot that get_type calls convert_name, which most definitely is not
pure. Fixes the segfault in scheme.
This commit is contained in:
parent
e22579d70e
commit
f738639d68
2 changed files with 3 additions and 3 deletions
|
@ -264,7 +264,7 @@ extern expr_t *local_expr;
|
|||
\return Pointer to the type description, or null if the expression
|
||||
type (expr_t::type) is inappropriate.
|
||||
*/
|
||||
struct type_s *get_type (expr_t *e) __attribute__((pure));
|
||||
struct type_s *get_type (expr_t *e);
|
||||
|
||||
/** Get the basic type code of the expression result.
|
||||
|
||||
|
@ -272,7 +272,7 @@ struct type_s *get_type (expr_t *e) __attribute__((pure));
|
|||
\return Pointer to the type description, or ev_type_count if
|
||||
get_type() returns null.
|
||||
*/
|
||||
etype_t extract_type (expr_t *e) __attribute__((pure));
|
||||
etype_t extract_type (expr_t *e);
|
||||
|
||||
/** Create a new expression node.
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ get_hash (const void *_cl, void *unused)
|
|||
return Hash_Buffer (&val->v, sizeof (val->v)) + val->lltype;
|
||||
}
|
||||
|
||||
static int __attribute__((pure))
|
||||
static int
|
||||
compare (const void *_cla, const void *_clb, void *unused)
|
||||
{
|
||||
case_label_t *cla = (case_label_t *) _cla;
|
||||
|
|
Loading…
Reference in a new issue