~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/dom/prop-svg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
28
28
 */
29
29
#include <stdio.h>
30
 
 
 
30
#include <stdlib.h>
31
31
 
32
32
 
33
33
struct SvgProp_def
34
34
{
35
 
    char *name;
36
 
    char *values;
37
 
    char *defaultValue;
38
 
    char *appliesTo;
 
35
    char const *name;
 
36
    char const *values;
 
37
    char const *defaultValue;
 
38
    char const *appliesTo;
39
39
    bool inherited;
40
 
    char *percentages;
41
 
    char *mediaGroups;
 
40
    char const *percentages;
 
41
    char const *mediaGroups;
42
42
    bool animatable;
43
43
};
44
44
 
710
710
};
711
711
 
712
712
 
713
 
bool printTable()
 
713
static void
 
714
printTable()
714
715
{
715
 
    for (SvgProp *prop=svgProps; prop->name ; prop++)
716
 
        {
 
716
    for (SvgProp const *prop = svgProps; prop->name; prop++) {
717
717
        printf("#### Prop: %s ####\n", prop->name);
718
718
        printf("values      : %s\n", prop->values);
719
719
        printf("defaultValue: %s\n", prop->defaultValue);
723
723
        printf("groups      : %s\n", prop->mediaGroups);
724
724
        printf("animatable  : %s\n", ( prop->animatable ? "true" : "false" ));
725
725
        printf("\n");
726
 
        }
727
 
    return true;
 
726
    }
728
727
}
729
728
 
730
729
 
731
730
int main(int argc, char **argv)
732
731
{
733
732
    printTable();
734
 
    return 0;
 
733
    return ( ferror(stdout) ? EXIT_FAILURE : EXIT_SUCCESS );
735
734
}
 
735
 
 
736
 
 
737
/*
 
738
  Local Variables:
 
739
  mode:c++
 
740
  c-file-style:"stroustrup"
 
741
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
742
  indent-tabs-mode:nil
 
743
  fill-column:99
 
744
  End:
 
745
*/
 
746
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :