LCOV - code coverage report
Current view: top level - src - ppg_pattern.c (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 6 6 100.0 %
Date: 2018-01-08 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /* Copyright 2017 noseglasses <shinynoseglasses@gmail.com>
       2             :  *
       3             :  * This program is free software: you can redistribute it and/or modify
       4             :  * it under the terms of the GNU Lesser General Public License as published by
       5             :  * the Free Software Foundation, either version 3 of the License, or
       6             :  * (at your option) any later version.
       7             :  *
       8             :  * This program is distributed in the hope that it will be useful,
       9             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      10             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      11             :  * GNU Lesser General Public License for more details.
      12             :  *
      13             :  * You should have received a copy of the GNU Lesser General Public License
      14             :  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
      15             :  */
      16             : 
      17             : #include "detail/ppg_token_detail.h"
      18             : #include "detail/ppg_pattern_detail.h"
      19             : #include "detail/ppg_context_detail.h"
      20             : #include "ppg_debug.h"
      21             : #include "ppg_global.h"
      22             : 
      23         801 : PPG_Token ppg_pattern(     
      24             :                      PPG_Layer layer, 
      25             :                      PPG_Count n_tokens,
      26             :                      PPG_Token tokens[])
      27             : { 
      28             : //    PPG_LOG("Adding pattern\n");
      29             :    
      30         801 :    ppg_global_init();
      31             :       
      32         801 :    return ppg_pattern_from_list(NULL, layer, n_tokens, (PPG_Token__ **)tokens);
      33             : }
      34             : 
      35             : #if PPG_PRINT_SELF_ENABLED
      36          54 : void ppg_pattern_print_tree(void)
      37             : {
      38          54 :    PPG_PRINT_TOKEN_RECURSE(ppg_context->pattern_root)
      39          54 : }
      40             : #endif

Generated by: LCOV version 1.10