Also obtaining strings back
This commit is contained in:
parent
67b23de717
commit
493618b348
|
@ -339,6 +339,7 @@ int variable_get_as(Variable * variable, VariableType type, void * result)
|
||||||
int32_t i32;
|
int32_t i32;
|
||||||
uint32_t u32;
|
uint32_t u32;
|
||||||
Buffer ** b;
|
Buffer ** b;
|
||||||
|
String ** s;
|
||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
|
@ -513,7 +514,12 @@ int variable_get_as(Variable * variable, VariableType type, void * result)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case VT_STRING:
|
case VT_STRING:
|
||||||
/* FIXME implement */
|
if(variable->type == VT_STRING)
|
||||||
|
{
|
||||||
|
s = result;
|
||||||
|
*s = string_new(variable->u.string);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(size != 0 && p != NULL)
|
if(size != 0 && p != NULL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user