1 Custom calc resource files
2 --------------------------
4 The following custom calc resource files are provided because they serve
5 as examples of how use the custom interface. The custom interface
6 allows for machine dependent and/or non-portable code to be added as
7 builtins to the calc program. A few example custom functions and
8 resource files are shipped with calc to provide you with examples.
10 By default, the custom builtin returns an error. Calc have been
13 ALLOW_CUSTOM= -DCUSTOM
15 in the top level Makefile (this is the shipped default) and calc
16 must be invoked with a -C argument:
22 See the ../cal/README or "help resource" for information about
23 calc resource standards and guidelines.
31 print information about various args
37 Calculate the length of a numeric value in HALF's.
41 Run custom("pzasusb8") on a standard set of data, print Endian
42 related information and print value size information.
44 ## Copyright (C) 1999 Landon Curt Noll
46 ## Calc is open software; you can redistribute it and/or modify it under
47 ## the terms of the version 2.1 of the GNU Lesser General Public License
48 ## as published by the Free Software Foundation.
50 ## Calc is distributed in the hope that it will be useful, but WITHOUT
51 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
52 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
53 ## Public License for more details.
55 ## A copy of version 2.1 of the GNU Lesser General Public License is
56 ## distributed with calc under the filename COPYING-LGPL. You should have
57 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
58 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
60 ## @(#) $Revision: 30.1 $
61 ## @(#) $Id: CUSTOM_CAL,v 30.1 2007/03/16 11:10:04 chongo Exp $
62 ## @(#) $Source: /usr/local/src/bin/calc/custom/RCS/CUSTOM_CAL,v $
64 ## Under source code control: 1997/03/08 20:51:32
65 ## File existed as early as: 1997
67 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
68 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/