LCOV - code coverage report
Current view: top level - libmalcontent - init.c (source / functions) Coverage Total Hit
Test: 2 coverage DB files Lines: 100.0 % 7 7
Test Date: 2025-04-24 23:46:12 Functions: 100.0 % 2 2

            Line data    Source code
       1              : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
       2              :  *
       3              :  * Copyright © 2020 Endless Mobile, Inc.
       4              :  *
       5              :  * SPDX-License-Identifier: LGPL-2.1-or-later
       6              :  *
       7              :  * This library is free software; you can redistribute it and/or
       8              :  * modify it under the terms of the GNU Lesser General Public
       9              :  * License as published by the Free Software Foundation; either
      10              :  * version 2.1 of the License, or (at your option) any later version.
      11              :  *
      12              :  * This library is distributed in the hope that it will be useful,
      13              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15              :  * Lesser General Public License for more details.
      16              :  *
      17              :  * You should have received a copy of the GNU Lesser General Public
      18              :  * License along with this library; if not, write to the Free Software
      19              :  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
      20              :  *
      21              :  * Authors:
      22              :  *  - Philip Withnall <withnall@endlessm.com>
      23              :  */
      24              : 
      25              : #include "config.h"
      26              : 
      27              : #include <glib/gi18n-lib.h>
      28              : #include "gconstructor.h"
      29              : 
      30              : 
      31              : static void
      32            8 : mct_init (void)
      33              : {
      34            8 :   bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
      35            8 :   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
      36            8 : }
      37              : 
      38              : #ifdef G_HAS_CONSTRUCTORS
      39              : 
      40              : #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA
      41              : #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(mct_init_ctor)
      42              : #endif
      43              : G_DEFINE_CONSTRUCTOR(mct_init_ctor)
      44              : 
      45              : static void
      46            8 : mct_init_ctor (void)
      47              : {
      48            8 :   mct_init ();
      49            8 : }
      50              : 
      51              : #else
      52              : #error Your platform/compiler is missing constructor support
      53              : #endif
        

Generated by: LCOV version 2.0-1