File: util.h

package info (click to toggle)
libconvert-binary-c-perl 0.86-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,264 kB
  • sloc: ansic: 47,836; perl: 4,980; yacc: 2,143; makefile: 61
file content (75 lines) | stat: -rw-r--r-- 2,253 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*******************************************************************************
*
* HEADER: util.h
*
********************************************************************************
*
* DESCRIPTION: C::B::C utilities
*
********************************************************************************
*
* Copyright (c) 2002-2024 Marcus Holland-Moritz. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the same terms as Perl itself.
*
*******************************************************************************/

#ifndef _CBC_UTIL_H
#define _CBC_UTIL_H

/*===== GLOBAL INCLUDES ======================================================*/


/*===== LOCAL INCLUDES =======================================================*/

#include "cbc/cbc.h"


/*===== DEFINES ==============================================================*/


/*===== TYPEDEFS =============================================================*/


/*===== FUNCTION PROTOTYPES ==================================================*/

#define fatal CBC_fatal
void fatal(const char *f, ...) __attribute__((__noreturn__));

#define newHV_indexed CBC_newHV_indexed
HV *newHV_indexed(pTHX_ const CBC *THIS);

#define croak_gti CBC_croak_gti
void croak_gti(pTHX_ ErrorGTI error, const char *name, int warnOnly);

#define get_basic_type_spec_string CBC_get_basic_type_spec_string
void get_basic_type_spec_string(pTHX_ SV **sv, u_32 flags);

#define add_indent CBC_add_indent
void add_indent(pTHX_ SV *s, int level);

#define load_indexed_hash_module CBC_load_indexed_hash_module
int load_indexed_hash_module(pTHX_ CBC *THIS);

#define set_preferred_indexed_hash_module CBC_set_preferred_indexed_hash_module
void set_preferred_indexed_hash_module(const char *module);

#define string_new CBC_string_new
char *string_new(const char *str);

#define string_new_fromSV CBC_string_new_fromSV
char *string_new_fromSV(pTHX_ SV *sv);

#define string_delete CBC_string_delete
void string_delete(char *sv);

#define clone_string_list CBC_clone_string_list
LinkedList clone_string_list(LinkedList list);

#define dump_sv CBC_dump_sv
void dump_sv(pTHX_ SV *buf, int level, SV *sv);

#define identify_sv CBC_identify_sv
const char *identify_sv(SV *sv);

#endif