|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T v
Length: 1838 (0x72e) Types: TextFile Names: »version.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦2fafebccf⟧ »EurOpenD3/mail/smail3.1.19.tar.Z« └─⟦bcd2bc73f⟧ └─⟦this⟧ »src/version.c«
/* @(#)version.c 3.16 6/1/88 00:14:14 */ /* * Copyright (C) 1987, 1988 Ronald S. Karr and Landon Curt Noll * * See the file COPYING, distributed with smail, for restriction * and warranty information. */ /* * version: * return the current smail version */ #include <stdio.h> #include "defs.h" #include "version.h" #ifndef DEPEND # include "extern.h" #endif /* * version - keep track of the smail version number * * The bat's eyes are intended to denote the origin of this source. We * ask that you follow the convention below: * * /\--/\ from namei.uucp, e-.uucp and their down stream feeds * /\o-/\ half baked smail from amdahl.com (obsolete) * /\=-/\ as sent to Alpha sites * /\==/\ as sent to Beta sites * /\../\ as released with UTS * /\oo/\ as posted to Usenet * /\$$/\ from the Free Software Foundation (assuming they take it) * /\??/\ an unknown source * * The most likely case is that the bat's eyes in your version is correct. * We suggest that you leave them alone unless you know differently. * * external functions: * version */ char *version_number = VERSION; char *release_date = RELEASE_DATE; char *patch_number = PATCH_NUMBER; char *patch_date = PATCH_DATE; char *bat = "/\\=-/\\"; /* the proper bat for this release */ static char *our_version = NULL; /* no version in the beginning */ char * version() { /* * form the version string for the first time if needed */ if (our_version == NULL) { our_version = xmalloc(sizeof(" Smail #.dddddd") + strlen(bat) + strlen(version_number) + strlen(patch_number)); (void) sprintf(our_version, "%s Smail%s #%s.%d", bat, version_number, patch_number, compile_num); } /* * return the version string */ return our_version; }