summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07f44f8)
raw | patch | inline | side by side (parent: 07f44f8)
author | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 13:53:11 +0000 (13:53 +0000) | ||
committer | pjrm <pjrm@users.sourceforge.net> | |
Thu, 11 Oct 2007 13:53:11 +0000 (13:53 +0000) |
noop: Address some char* string literal warnings from g++-4.2.
src/dom/prop-svg.cpp | patch | blob | history |
diff --git a/src/dom/prop-svg.cpp b/src/dom/prop-svg.cpp
index bde6d1993fa0f3d1ea27eb8ad165905ff66dc899..6ae96e7a4e45b827560bc31f058e50af6383bc40 100644 (file)
--- a/src/dom/prop-svg.cpp
+++ b/src/dom/prop-svg.cpp
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
-
+#include <stdlib.h>
struct SvgProp_def
{
- char *name;
- char *values;
- char *defaultValue;
- char *appliesTo;
+ char const *name;
+ char const *values;
+ char const *defaultValue;
+ char const *appliesTo;
bool inherited;
- char *percentages;
- char *mediaGroups;
+ char const *percentages;
+ char const *mediaGroups;
bool animatable;
};
};
-bool printTable()
+static void
+printTable()
{
- for (SvgProp *prop=svgProps; prop->name ; prop++)
- {
+ for (SvgProp const *prop = svgProps; prop->name; prop++) {
printf("#### Prop: %s ####\n", prop->name);
printf("values : %s\n", prop->values);
printf("defaultValue: %s\n", prop->defaultValue);
printf("groups : %s\n", prop->mediaGroups);
printf("animatable : %s\n", ( prop->animatable ? "true" : "false" ));
printf("\n");
- }
- return true;
+ }
}
int main(int argc, char **argv)
{
printTable();
- return 0;
+ return ( ferror(stdout) ? EXIT_FAILURE : EXIT_SUCCESS );
}
+
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :