diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/utilities/nttools/tedit/tedit.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/tedit/tedit.x')
-rw-r--r-- | pkg/utilities/nttools/tedit/tedit.x | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tedit/tedit.x b/pkg/utilities/nttools/tedit/tedit.x new file mode 100644 index 00000000..c3ced90f --- /dev/null +++ b/pkg/utilities/nttools/tedit/tedit.x @@ -0,0 +1,33 @@ +# TEDIT -- Table editor + +procedure t_tedit () + +#-- +pointer table # SDAS table name +pointer columns # list of columns to edit +bool silent # don't ring bell when error occurs +bool rdonly # edit table read only +bool inplace # edit table in place + +pointer sp + +bool clgetb() + +begin + call smark (sp) + call salloc (table, SZ_FNAME, TY_CHAR) + call salloc (columns, SZ_FNAME, TY_CHAR) + + call clgstr ("table", Memc[table], SZ_FNAME) + call clgstr ("columns", Memc[columns], SZ_FNAME) + + silent = clgetb ("silent") + rdonly = clgetb ("rdonly") + inplace = clgetb ("inplace") + inplace = inplace || rdonly + + call edit (Memc[table], Memc[columns], silent, rdonly, inplace) + call sfree (sp) + +end + |