Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

util.h File Reference


Detailed Description

Definitions of data types and utility functions
Author:
Marko Mäkelä (marko.makela@nic.funet.fi)

Definition in file util.h.

#include <limits.h>

Go to the source code of this file.

Classes

struct  Archive
struct  ArchiveEntry
struct  Filename
struct  Image

Defines

#define elementsof(a)   ((sizeof a) / (sizeof *a))
#define PATH_SEPARATOR   '/'
#define rounddiv(a, b)   ((a + b - 1) / b)

Typedefs

typedef unsigned char byte_t
typedef void log_t (enum Verbosity verbosity, const struct Filename *name, const char *format,...)
typedef unsigned long int tbyte_t
typedef unsigned int word_t

Enumerations

enum  bool { false = 0, true }
enum  DirEntOpts { DirEntDontCreate, DirEntOnlyCreate, DirEntFindOrCreate }
enum  Filetype {
  DEL = 0x80, SEQ, PRG, USR,
  REL, CBM
}
enum  ImageType { ImUnknown, Im1541, Im1571, Im1581 }
enum  Verbosity { Errors, Warnings, Everything }

Functions

const char * getFilename (const struct Filename *name)


Generated by  Doxygen 1.6.0   Back to index