diff options
author | Bruce Momjian <bruce@momjian.us> | 1996-11-10 03:06:38 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1996-11-10 03:06:38 +0000 |
commit | aaeef4d17db9ded501fa02c9ca6c00f86258b171 (patch) | |
tree | 7f27c0c7519886eda3b9ddd6fe1eb4a9d628dacb /src/include/utils/datetime.h | |
parent | bf5cbbf7895aa16b2e18dbe29462a4fd8baf4293 (diff) |
All external function definitions now have prototypes that are checked.
Diffstat (limited to 'src/include/utils/datetime.h')
-rw-r--r-- | src/include/utils/datetime.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h new file mode 100644 index 00000000000..d780bc60a1e --- /dev/null +++ b/src/include/utils/datetime.h @@ -0,0 +1,30 @@ +/*------------------------------------------------------------------------- + * + * datetime.h-- + * Definitions for the datetime + * + * + * Copyright (c) 1994, Regents of the University of California + * + * $Id: datetime.h,v 1.1 1996/11/10 03:06:21 momjian Exp $ + * + *------------------------------------------------------------------------- + */ +#ifndef DATETIME_H +#define DATETIME_H + +/* these things look like structs, but we pass them by value so be careful + For example, passing an int -> DateADT is not portable! */ +typedef struct DateADT { + char day; + char month; + short year; +} DateADT; + +typedef struct TimeADT { + short hr; + short min; + float sec; +} TimeADT; + +#endif /* DATETIME_H */ |