~benklop/+junk/lcdproc

« back to all changes in this revision

Viewing changes to contrib/interface-demo2/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Tallon
  • Date: 2006-07-23 20:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060723202348-w65hrbvpwniqn9by
Tags: 0.5.0-1
* New upstream version (Closes: #367945)
  - New maintainer. Thank you for your previous work, Jon!
  - Upstream added suport for 'imon' devices (Closes: #365496)
  - Upstream fixed descriptor leak (Closes: #355460)
  - Upstream fixed placing widgets in frame (Closes: #355458)

* Packaging
  - Depend on debconf-2.0; Allow transition (Closes: #331885)
  - Remove dependency on automake (Closes: #376449)
  - Include missing INSTALL instructions (Closes: #365436)
  - Changed most "by hand" installation steps into debhelper-based ones
  - Updated to 3.7.2 standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stddef.h>
 
2
 
 
3
void *xmalloc(size_t sz);
 
4
void *xrealloc(void *p, size_t sz);
 
5
 
 
6
#define new(p) ((p) = xmalloc(sizeof(*(p))))
 
7
 
 
8
 
 
9
int kernel_version(void);
 
10
#define KRELEASE(maj,min,patch) ((maj) * 10000 + (min)*1000 + (patch))
 
11
 
 
12
 
 
13
int nstrcmp(const char *, const char *);
 
14
 
 
15
char *safe_strncpy(char *dst, const char *src, size_t size); 
 
16
 
 
17
 
 
18
#define netmin(a,b) ((a)<(b) ? (a) : (b))
 
19
#define netmax(a,b) ((a)>(b) ? (a) : (b))