source: trunk/minix/commands/elle/eeprof.h@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 494 bytes
RevLine 
[9]1#define PROF_VER (1)
2
3struct profile {
4int version;
5int chrvcnt; char *chrvec;
6int metavcnt; char *metavec;
7int extvcnt; char *extvec;
8int menuvcnt; char *menuvec;
9};
10
11struct stored_profile {
12unsigned char version[2];
13unsigned char chrvcnt[2], chrvec[2];
14unsigned char metavcnt[2], metavec[2];
15unsigned char extvcnt[2], extvec[2];
16unsigned char menuvcnt[2], menuvec[2];
17};
18
19#define prof_pack(p, n) ((p)[0] = (n) & 0xFF, (p)[1] = (n) >> 8)
20#define prof_upack(p) ((p)[0] | ((p)[1] << 8))
Note: See TracBrowser for help on using the repository browser.