DragonFly submit List (threaded) for 2005-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
units WARNS6 cleanup
Index: Makefile
===================================================================
RCS file: /home/dcvs/src/usr.bin/units/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 17 Jun 2003 04:29:33 -0000 1.2
+++ Makefile 17 Jan 2005 07:09:26 -0000
@@ -2,6 +2,7 @@
# $DragonFly: src/usr.bin/units/Makefile,v 1.2 2003/06/17 04:29:33 dillon Exp $
PROG= units
+WARNS?= 6
FILES= units.lib
FILESDIR= ${SHAREDIR}/misc
Index: units.c
===================================================================
RCS file: /home/dcvs/src/usr.bin/units/units.c,v
retrieving revision 1.2
diff -u -r1.2 units.c
--- units.c 17 Jun 2003 04:29:33 -0000 1.2
+++ units.c 17 Jan 2005 07:17:04 -0000
@@ -71,6 +71,26 @@
int prefixcount;
+int addsubunit(char *[], char *);
+int addunit(struct unittype *, char *, int);
+void cancelunit(struct unittype *);
+int compare(const void *, const void *);
+int compareproducts(char **, char **);
+int compareunits(struct unittype *, struct unittype *);
+int completereduce(struct unittype *);
+char *dupstr(const char *);
+void initializeunit(struct unittype *);
+char *lookupunit(const char *);
+void readunits(const char *);
+int reduceproduct(struct unittype *, int);
+int reduceunit(struct unittype *);
+void showanswer(struct unittype *, struct unittype *);
+void showunit(struct unittype *);
+void sortunit(struct unittype *);
+void usage(void);
+void zeroerror(void);
+
+
char *
dupstr(const char *str)
{
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]