Sha256: 536965a9cadd4581afe12fc4b630d5f46c18b8e6a6e3d0610d13c8aa3f620ae0

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

#ifndef UNPACKER_H
#  define UNPACKER_H

#include <stdlib.h>

struct unpacker {
	char* buffer;
	char* ch;
};
typedef struct unpacker unpacker_t;

#define UNPACKER(from, name) \
	unpacker_t* name; \
	Data_Get_Struct(from, unpacker_t, name); \
	if (name == NULL) { \
		rb_raise(rb_eArgError, "NULL found for " # name " when shouldn't be.'"); \
	}

#include "ruby.h"

extern VALUE cAsciiPack_Unpacker;
void AsciiPack_Unpacker_init(VALUE mAsciiPack);

#endif /* ifndef UNPACKER_H */

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciipack-0.2.4 ext/asciipack/unpacker.h
asciipack-0.2.3 ext/asciipack/unpacker.h
asciipack-0.2.2 ext/asciipack/unpacker.h
asciipack-0.2.1 ext/asciipack/unpacker.h
asciipack-0.2.0 ext/asciipack/unpacker.h