Mercurial > hg > toybox
comparison lib/lib.h @ 417:57e1335e59f6
Commit 415 needs the other two files. (Oops.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 02 Feb 2012 07:26:39 -0600 |
parents | b7afbc6b753a |
children | af0cca0aba9d |
comparison
equal
deleted
inserted
replaced
416:e9f6e7f25854 | 417:57e1335e59f6 |
---|---|
1 /* vi: set ts=4 :*/ | 1 /* vi: set ts=4 :*/ |
2 /* lib.h - header file for lib directory | 2 /* lib.h - header file for lib directory |
3 * | 3 * |
4 * Copyright 2006 Rob Landley <rob@landley.net> | 4 * Copyright 2006 Rob Landley <rob@landley.net> |
5 */ | 5 */ |
6 | |
7 // Unfortunately, sizeof() doesn't work in a preprocessor test. TODO. | |
8 | |
9 //#if sizeof(double) <= sizeof(long) | |
10 //typedef double FLOAT; | |
11 //#else | |
12 typedef float FLOAT; | |
13 //#endif | |
6 | 14 |
7 // libc generally has this, but the headers are screwed up | 15 // libc generally has this, but the headers are screwed up |
8 ssize_t getline(char **lineptr, size_t *n, FILE *stream); | 16 ssize_t getline(char **lineptr, size_t *n, FILE *stream); |
9 | 17 |
10 // llist.c | 18 // llist.c |