~ubuntu-branches/ubuntu/utopic/rxvt-unicode/utopic

« back to all changes in this revision

Viewing changes to src/salloc.h

  • Committer: Package Import Robot
  • Author(s): Ryan Kavanagh
  • Date: 2013-05-26 18:12:22 UTC
  • mfrom: (33.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130526181222-67glcv7nppi4ih7r
Tags: 9.18-2
* Upload to unstable now that wheezy has been released
* Merge in patch from gregor herrman fixing a FTBFS due to POD errors
  (Closes: #708026)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef RXVT_SALLOC_H_
2
 
#define RXVT_SALLOC_H_
3
 
 
4
 
#include <stdlib.h>
5
 
 
6
 
// small blocks allocator
7
 
 
8
 
struct rxvt_salloc
9
 
{
10
 
  struct chain {
11
 
    struct chain *next;
12
 
  };
13
 
 
14
 
  chain *firstblock;
15
 
  chain *firstline;
16
 
  unsigned int firstfree;
17
 
  unsigned int size;
18
 
 
19
 
  rxvt_salloc (unsigned int size);
20
 
  ~rxvt_salloc ();
21
 
 
22
 
  void *alloc ();
23
 
  void *alloc (void *data, unsigned int datalen);
24
 
  void free (void *data);
25
 
};
26
 
 
27
 
#endif