/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011, 2013, 2016 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
{
if (session != ds->session)
{
+ dataset_ref (ds);
if (ds->session != NULL)
session_remove_dataset (ds->session, ds);
if (session != NULL)
session_add_dataset (session, ds);
+ dataset_unref (ds);
}
}
void
dataset_set_session__ (struct dataset *ds, struct session *session)
{
- ds->session = session;
+ if (ds->session != session)
+ {
+ if (ds->session)
+ dataset_unref (ds->session);
+ ds->session = session;
+ if (session)
+ dataset_ref (session);
+ }
}
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011, 2013 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2006, 2007, 2009, 2010, 2011, 2013, 2016 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
\f
struct dataset *dataset_create (struct session *, const char *);
struct dataset *dataset_clone (struct dataset *, const char *);
-void dataset_destroy (struct dataset *);
+void dataset_unref (struct dataset *);
+struct dataset *dataset_ref (const struct dataset *);
void dataset_clear (struct dataset *);
/* PSPP - a program for statistical analysis.
- Copyright (C) 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ Copyright (C) 2010, 2011, 2012, 2013, 2016 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
s->active = NULL;
HMAPX_FOR_EACH_SAFE (ds, node, next, &s->datasets)
- dataset_destroy (ds);
+ dataset_unref (ds);
hmapx_destroy (&s->datasets);
free (s->syntax_encoding);
free (s);
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation
+ Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016 Free Software Foundation
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
output_driver_init (d, &psppire_output_class, "PSPPIRE",
SETTINGS_DEVICE_UNFILTERED);
output_driver_register (d);
+
+ text_item_submit (
+ text_item_create (TEXT_ITEM_PARAGRAPH,
+ _("This is a development version of PSPP. Please be "
+ "alert to the likely possibility that it contains "
+ "more bugs than a PSPP release. If you encounter "
+ "bugs, please consider reporting them to the PSPP "
+ "developers at bug-gnu-pspp@gnu.org, to enable them "
+ "to be fixed.")));
}
\f