Rizin
unix-like reverse engineering framework and cli tools
pyc_magic.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2016-2020 c0riolis
2 // SPDX-FileCopyrightText: 2016-2020 x0urc3
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 #ifndef PYC_MAGIC_H
6 #define PYC_MAGIC_H
7 
8 #include <rz_types.h>
9 
10 struct pyc_version {
12  char *version;
13  char *revision;
14 };
15 
17 
18 double version2double(const char *version);
19 
20 bool magic_int_within(ut32 target_magic, ut32 lower, ut32 uppper, bool *error);
21 
22 #endif
uint32_t ut32
struct pyc_version get_pyc_version(ut32 magic)
Definition: pyc_magic.c:273
bool magic_int_within(ut32 target_magic, ut32 lower, ut32 uppper, bool *error)
Definition: pyc_magic.c:283
double version2double(const char *version)
Definition: pyc_magic.c:316
char * version
Definition: pyc_magic.h:12
ut32 magic
Definition: pyc_magic.h:11
char * revision
Definition: pyc_magic.h:13
void error(const char *msg)
Definition: untgz.c:593