projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Unselect data in data editor when the datasheet is replaced.
[pspp]
/
src
/
libpspp
/
tower.c
diff --git
a/src/libpspp/tower.c
b/src/libpspp/tower.c
index e8d253d086731c61dd539962cbc79f9c2b3b0750..863da820c3bf081ec1ed374d36a6411ceade7f9e 100644
(file)
--- a/
src/libpspp/tower.c
+++ b/
src/libpspp/tower.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007
, 2009, 2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-16,12
+16,13
@@
#include <config.h>
#include <config.h>
-#include
<libpspp/tower.h>
+#include
"libpspp/tower.h"
#include <limits.h>
#include <limits.h>
-#include <libpspp/assertion.h>
-#include <libpspp/compiler.h>
+#include "libpspp/assertion.h"
+#include "libpspp/cast.h"
+#include "libpspp/compiler.h"
static struct tower_node *abt_to_tower_node (const struct abt_node *);
static struct tower_node *first_node (const struct tower *);
static struct tower_node *abt_to_tower_node (const struct abt_node *);
static struct tower_node *first_node (const struct tower *);
@@
-184,7
+185,7
@@
tower_lookup (const struct tower *t_,
unsigned long height,
unsigned long *node_start)
{
unsigned long height,
unsigned long *node_start)
{
- struct tower *t =
(struct tower *) t_
;
+ struct tower *t =
CONST_CAST (struct tower *, t_)
;
struct abt_node *p;
assert (height < tower_height (t));
struct abt_node *p;
assert (height < tower_height (t));
@@
-237,7
+238,7
@@
tower_lookup (const struct tower *t_,
struct tower_node *
tower_get (const struct tower *t_, unsigned long int index)
{
struct tower_node *
tower_get (const struct tower *t_, unsigned long int index)
{
- struct tower *t =
(struct tower *) t_
;
+ struct tower *t =
CONST_CAST (struct tower *, t_)
;
struct abt_node *p;
assert (index < tower_count (t));
struct abt_node *p;
assert (index < tower_count (t));