X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Ffloat.c;h=028749bc92a177f91237283797a234a65fd21284;hp=863173852c9baacc6bfbf7dbe5208cad55d89088;hb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;hpb=56e603733d2a16aba6fdaf149ad6a4cd42e44eda diff --git a/types/float.c b/types/float.c index 86317385..028749bc 100644 --- a/types/float.c +++ b/types/float.c @@ -16,11 +16,20 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #include #include -#include +#include +#include static struct definition *_float_definition_new(struct declaration *declaration, @@ -82,7 +91,6 @@ struct definition * container_of(declaration, struct declaration_float, p); struct definition_float *_float; struct definition *tmp; - int ret; _float = g_new(struct definition_float, 1); declaration_ref(&float_declaration->p); @@ -120,6 +128,8 @@ struct definition * _float->p.name = field_name; _float->value = 0.0; if (parent_scope) { + int ret; + ret = register_field_definition(field_name, &_float->p, parent_scope); assert(!ret);