* xmlXPathNewBoolean: * @val: the boolean value * * Create a new xmlXPathObjectPtr of type boolean and of value @val * * Returns the newly created object. */
| 4327 | * Returns the newly created object. |
| 4328 | */ |
| 4329 | xmlXPathObjectPtr |
| 4330 | xmlXPathNewBoolean(int val) { |
| 4331 | xmlXPathObjectPtr ret; |
| 4332 | |
| 4333 | ret = (xmlXPathObjectPtr) xmlMalloc(sizeof(xmlXPathObject)); |
| 4334 | if (ret == NULL) |
| 4335 | return(NULL); |
| 4336 | memset(ret, 0 , sizeof(xmlXPathObject)); |
| 4337 | ret->type = XPATH_BOOLEAN; |
| 4338 | ret->boolval = (val != 0); |
| 4339 | return(ret); |
| 4340 | } |
| 4341 | |
| 4342 | /** |
| 4343 | * xmlXPathNewString: |
no outgoing calls
no test coverage detected