| 1 |
/* |
| 2 |
* Copyright 2022 Jeffrey Kegler |
| 3 |
* Permission is hereby granted, free of charge, to any person obtaining a |
| 4 |
* copy of this software and associated documentation files (the "Software"), |
| 5 |
* to deal in the Software without restriction, including without limitation |
| 6 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 7 |
* and/or sell copies of the Software, and to permit persons to whom the |
| 8 |
* Software is furnished to do so, subject to the following conditions: |
| 9 |
* |
| 10 |
* The above copyright notice and this permission notice shall be included |
| 11 |
* in all copies or substantial portions of the Software. |
| 12 |
* |
| 13 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 16 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR |
| 17 |
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 18 |
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 19 |
* OTHER DEALINGS IN THE SOFTWARE. |
| 20 |
*/ |
| 21 |
|
| 22 |
/* |
| 23 |
* DO NOT EDIT DIRECTLY |
| 24 |
* This file is written by the Marpa build process |
| 25 |
* It is not intended to be modified directly |
| 26 |
*/ |
| 27 |
|
| 28 |
/*36:*/ |
| 29 |
#line 549 "./marpa_ami.w" |
| 30 |
|
| 31 |
|
| 32 |
#include "config.h" |
| 33 |
|
| 34 |
/*:36*//*37:*/ |
| 35 |
#line 562 "./marpa_ami.w" |
| 36 |
|
| 37 |
|
| 38 |
#include <stdarg.h> |
| 39 |
#include <stdio.h> |
| 40 |
|
| 41 |
/*:37*//*38:*/ |
| 42 |
#line 567 "./marpa_ami.w" |
| 43 |
|
| 44 |
|
| 45 |
#ifndef MARPA_DEBUG |
| 46 |
#define MARPA_DEBUG 0 |
| 47 |
#endif |
| 48 |
|
| 49 |
#include "marpa.h" |
| 50 |
#include "marpa_ami.h" |
| 51 |
|
| 52 |
/*5:*/ |
| 53 |
#line 184 "./marpa_ami.w" |
| 54 |
|
| 55 |
#define PRIVATE_NOT_INLINE static |
| 56 |
#define PRIVATE static inline |
| 57 |
|
| 58 |
/*:5*/ |
| 59 |
#line 576 "./marpa_ami.w" |
| 60 |
|
| 61 |
|
| 62 |
/*:38*/ |
| 63 |
|
| 64 |
#line 1 "./marpa_ami.c.p40" |
| 65 |
|
| 66 |
/*39:*/ |
| 67 |
#line 581 "./marpa_ami.w" |
| 68 |
|
| 69 |
|
| 70 |
/*21:*/ |
| 71 |
#line 373 "./marpa_ami.w" |
| 72 |
|
| 73 |
int marpa__default_debug_handler(const char*format,...) |
| 74 |
{ |
| 75 |
va_list args; |
| 76 |
va_start(args,format); |
| 77 |
vfprintf(stderr,format,args); |
| 78 |
va_end(args); |
| 79 |
putc('\n',stderr); |
| 80 |
return 1; |
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
/*:21*/ |
| 85 |
#line 583 "./marpa_ami.w" |
| 86 |
|
| 87 |
|
| 88 |
/*:39*/ |