#define SPREADSHEET_READ_H 1
#include <stdbool.h>
+#include <libpspp/compiler.h>
struct casereeader;
struct casereader * spreadsheet_make_reader (struct spreadsheet *, const struct spreadsheet_read_options *);
-const char * spreadsheet_get_sheet_name (struct spreadsheet *s, int n);
-char * spreadsheet_get_sheet_range (struct spreadsheet *s, int n);
+const char * spreadsheet_get_sheet_name (struct spreadsheet *s, int n) OPTIMIZE(2);
+char * spreadsheet_get_sheet_range (struct spreadsheet *s, int n) OPTIMIZE(2);
char * create_cell_ref (int col0, int row0);
/* PSPP - a program for statistical analysis.
- Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009, 2010, 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
#define SENTINEL(IDX)
#endif
+
+/* This attribute indicates that the function should be compiled
+ with the specified LEVEL, regardless of what has been specified
+ on the command line */
+#if __GNUC__ > 3
+#define OPTIMIZE(LEVEL) ATTRIBUTE ((optimize(LEVEL)))
+#else
+#define OPTIMIZE(LEVEL)
+#endif
+
+
#endif /* compiler.h */