projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed all the licence notices in all the files.
[pspp]
/
src
/
som.h
diff --git
a/src/som.h
b/src/som.h
index 9ac69c86b9f5ccee2c41e0a449154ab0ca84d5ef..f5780edd2ab3c2dc1b986755c3a7cfdb30a00bf7 100644
(file)
--- a/
src/som.h
+++ b/
src/som.h
@@
-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. */
#if !som_h
#define som_h 1
#if !som_h
#define som_h 1
@@
-36,11
+36,18
@@
desired, and in fact almost every operation performed by som may be
overridden in a table class. */
desired, and in fact almost every operation performed by som may be
overridden in a table class. */
-/* Table. */
-struct som_table
+enum som_type
+ {
+ SOM_TABLE,
+ SOM_CHART
+ } ;
+
+/* Entity (Table or Chart) . */
+struct som_entity
{
struct som_table_class *class; /* Table class. */
{
struct som_table_class *class; /* Table class. */
- void *ext; /* Owned by table class. */
+ enum som_type type; /* Table or Chart */
+ void *ext; /* Owned by */
};
/* Group styles. */
};
/* Group styles. */
@@
-70,7
+77,7
@@
struct outp_driver;
struct som_table_class
{
/* Set table, driver. */
struct som_table_class
{
/* Set table, driver. */
- void (*table) (struct som_
table
*);
+ void (*table) (struct som_
entity
*);
void (*driver) (struct outp_driver *);
/* Query columns and rows. */
void (*driver) (struct outp_driver *);
/* Query columns and rows. */
@@
-100,7
+107,7
@@
extern int subtable_num;
/* Submission. */
void som_new_series (void);
/* Submission. */
void som_new_series (void);
-void som_submit (struct som_
table
*t);
+void som_submit (struct som_
entity
*t);
/* Miscellaneous. */
void som_eject_page (void);
/* Miscellaneous. */
void som_eject_page (void);