projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed double-counted sample size
[pspp-builds.git]
/
src
/
var-labs.c
diff --git
a/src/var-labs.c
b/src/var-labs.c
index 87916977297c31d7d438b8719a411ec67e713a24..65da79082bbeefea8e44e7291eb13ee601fcc0ce 100644
(file)
--- a/
src/var-labs.c
+++ b/
src/var-labs.c
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#include <config.h>
#include <stdio.h>
#include <config.h>
#include <stdio.h>
@@
-27,6
+27,9
@@
#include "str.h"
#include "var.h"
#include "str.h"
#include "var.h"
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
#include "debug-print.h"
int
#include "debug-print.h"
int
@@
-68,3
+71,14
@@
cmd_variable_labels (void)
while (token != '.');
return CMD_SUCCESS;
}
while (token != '.');
return CMD_SUCCESS;
}
+
+
+
+const char *
+var_to_string(const struct variable *var)
+{
+ if ( !var )
+ return 0;
+
+ return ( var->label ? var->label : var->name);
+}