mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.11.0t8.9
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 1997 Landon Curt Noll
|
||||
# Copyright (c) 1999 Landon Curt Noll
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software and
|
||||
# its documentation for any purpose and without fee is hereby granted,
|
||||
@@ -44,8 +44,19 @@ calc library standards and guidelines.
|
||||
|
||||
=-=
|
||||
|
||||
argv.cal
|
||||
|
||||
argv(var, ...)
|
||||
|
||||
print information about various args
|
||||
|
||||
halflen.cal
|
||||
|
||||
halflen(num)
|
||||
|
||||
Calculate the length of a numeric value in HALF's.
|
||||
|
||||
pzasusb8.cal
|
||||
|
||||
Run custom("pzasusb8") on a standard set of data, print Endian
|
||||
related information and print value size information.
|
||||
|
@@ -38,17 +38,17 @@ Step 1: Do some background work
|
||||
you look at some examples of custom functions. Check out
|
||||
the following source files:
|
||||
|
||||
../custom.c
|
||||
custom.h
|
||||
custtbl.c
|
||||
c_*.[ch]
|
||||
../help/custom
|
||||
custom.c
|
||||
custom/custom.h
|
||||
custom/custtbl.c
|
||||
custom/c_*.[ch]
|
||||
help/custom (or run: calc help custom)
|
||||
|
||||
You would be well advised to look at a more recent calc source
|
||||
such as one available in from the calc alpha test archive.
|
||||
such as one available in from the calc version archive.
|
||||
See the following for more details:
|
||||
|
||||
../help/archive
|
||||
help/archive (or run: calc help archive)
|
||||
|
||||
|
||||
Step 2: Name your custom function
|
||||
@@ -604,3 +604,16 @@ Step 11: Install
|
||||
|
||||
Although calc does not run setuid, you may need to be root to install
|
||||
the directories into which calc installs may be write protected.
|
||||
|
||||
|
||||
Step 12: Contribute
|
||||
|
||||
Your custom function may be of interest to some people and/or
|
||||
serve as an example of what one can do with custom functions.
|
||||
|
||||
Read the file:
|
||||
|
||||
help/contrib (or run: calc help contrib)
|
||||
|
||||
and consider submitting your custom function for possible
|
||||
inclusion in later versions of calc.
|
||||
|
@@ -27,3 +27,5 @@ print "BIG_ENDIAN: ", custom("sysinfo", "BIG_ENDIAN");
|
||||
print "LITTLE_ENDIAN: ", custom("sysinfo", "LITTLE_ENDIAN");
|
||||
print "LONG_BITS: ", custom("sysinfo", "LONG_BITS");
|
||||
print "LONGLONG_BITS: ", custom("sysinfo", "LONGLONG_BITS");
|
||||
print "Calc sizes:";
|
||||
show sizes;
|
||||
|
Reference in New Issue
Block a user