X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Futilities%2Fset.q;h=9a7e841707f535076bf1ad0126f454dd17aa1ba8;hb=1c14db584d9a90589ae04889975944e4e7ca3a77;hp=e6e816a8b79ea57cfc5b21c4057efdbb458ac872;hpb=8d97f848e3452e0d013d15f6e20b1dcc089caa41;p=pspp diff --git a/src/language/utilities/set.q b/src/language/utilities/set.q index e6e816a8b7..9a7e841707 100644 --- a/src/language/utilities/set.q +++ b/src/language/utilities/set.q @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012, 2013 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 @@ -872,6 +872,13 @@ show_width (const struct dataset *ds UNUSED) return xasprintf ("%d", settings_get_viewwidth ()); } +static char * +show_workspace (const struct dataset *ds UNUSED) +{ + size_t ws = settings_get_workspace () / 1024L; + return xasprintf ("%zu", ws); +} + static char * show_current_directory (const struct dataset *ds UNUSED) { @@ -963,6 +970,7 @@ const struct show_sbc show_table[] = {"WIB", show_wib}, {"WRB", show_wrb}, {"WIDTH", show_width}, + {"WORKSPACE", show_workspace}, }; static void