~ubuntu-branches/ubuntu/precise/gcalctool/precise-proposed

« back to all changes in this revision

Viewing changes to src/math-enums.c.template

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-21 15:09:58 UTC
  • mfrom: (1.3.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110321150958-ye9bm6c1k38r4llu
Tags: 5.91.92-0ubuntu1
* New upstream release
  - Fixes (LP: #736632)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*** BEGIN file-header ***/
2
 
#include "mp-serializer.h"
3
 
#include "math-enums.h"
4
 
 
5
 
/*** END file-header ***/
6
 
 
7
 
/*** BEGIN file-production ***/
8
 
/* enumerations from "@filename@" */
9
 
/*** END file-production ***/
10
 
 
11
 
/*** BEGIN value-header ***/
12
 
GType
13
 
math_@enum_name@_get_type (void)
14
 
{
15
 
    static GType etype = 0;
16
 
    if (G_UNLIKELY(etype == 0)) {
17
 
        static const G@Type@Value values[] = {
18
 
/*** END value-header ***/
19
 
 
20
 
/*** BEGIN value-production ***/
21
 
            { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
22
 
/*** END value-production ***/
23
 
 
24
 
/*** BEGIN value-tail ***/
25
 
            { 0, NULL, NULL }
26
 
        };
27
 
        etype = g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
28
 
    }
29
 
    return etype;
30
 
}
31
 
 
32
 
/*** END value-tail ***/
33
 
 
34
 
/*** BEGIN file-tail ***/
35
 
 
36
 
/*** END file-tail ***/