** If expression is a numeric constant, fills 'v' with its value ** and returns 1. Otherwise, returns 0. */
| 53 | ** and returns 1. Otherwise, returns 0. |
| 54 | */ |
| 55 | static int tonumeral (const expdesc *e, TValue *v) { |
| 56 | if (hasjumps(e)) |
| 57 | return 0; /* not a numeral */ |
| 58 | switch (e->k) { |
| 59 | case VKINT: |
| 60 | if (v) setivalue(v, e->u.ival); |
| 61 | return 1; |
| 62 | case VKFLT: |
| 63 | if (v) setfltvalue(v, e->u.nval); |
| 64 | return 1; |
| 65 | default: return 0; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | |
| 70 | /* |
no outgoing calls
no test coverage detected