[GRASS-dev] Parsing Float type

Greetings

I have a GRASS C module where I need to parse a FLOAT. I tried this:
parm.k = G_define_option();
parm.k->key = "k";
parm.k->type = TYPE_FLOAT;
parm.k->key_desc = "k parameter";
parm.k->required = YES;
parm.k->description =
_("k parameter");

but I gopt this error while compiling:
main.c:97: error: ‘TYPE_FLOAT’ undeclared (first use in this function)
main.c:97: error: (Each undeclared identifier is reported only once
main.c:97: error: for each function it appears in.)
So it does not recognize TYPE_FLOAT (I had TYPE_INTEGER)

What is suppose to be?

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5571 (20101028) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

António Rocha wrote:

I have a GRASS C module where I need to parse a FLOAT. I tried this:
parm.k = G_define_option();
parm.k->key = "k";
parm.k->type = TYPE_FLOAT;
parm.k->key_desc = "k parameter";
parm.k->required = YES;
parm.k->description =
_("k parameter");

but I gopt this error while compiling:
main.c:97: error: �TYPE_FLOAT� undeclared (first use in this function)
main.c:97: error: (Each undeclared identifier is reported only once
main.c:97: error: for each function it appears in.)
So it does not recognize TYPE_FLOAT (I had TYPE_INTEGER)

What is suppose to be?

TYPE_DOUBLE

--
Glynn Clements <glynn@gclements.plus.com>