Skip to content

Commit a12a399

Browse files
authored
Merge pull request #459 from olebole/noirlab-minor
NOIRLAB: minor bugfixes and cleanups
2 parents 8e05e2e + bf9b325 commit a12a399

File tree

13 files changed

+17
-52
lines changed

13 files changed

+17
-52
lines changed

noao/astutil/t_setairmass.x

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ begin
216216
# if (fmt == NO && day == day1)
217217
# call imastr (im, Memc[utm_key], Memc[ut_hms])
218218
# else if (dtm_encode (Memc[datestr], SZ_FNAME,
219-
# year, month, day, utmid, 2, 0) > 0)
219+
# year, month, day, ut_mid, 2, 0) > 0)
220220
# call imastr (im, Memc[utm_key], Memc[datestr])
221221
if (dtm_encode (Memc[datestr], SZ_FNAME,
222-
year, month, day, utmid, 2, 0) > 0)
222+
year, month, day, ut_mid, 2, 0) > 0)
223223
call imastr (im, Memc[utm_key], Memc[datestr])
224224
}
225225
}

pkg/ecl/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* this can be fixed.
1515
*/
1616
#define STACKSIZ 256000
17-
#define DICTSIZE 1024000
17+
#define DICTSIZE 8192000
1818
#define MEMINCR 4096
1919

2020
typedef unsigned long memel; /* type for dictionary, stack, etc. */

pkg/images/tv/wcslab/zz.x

Lines changed: 0 additions & 23 deletions
This file was deleted.

pkg/utilities/nttools/lib/allrows.x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ begin
2525

2626
do irow = 1, numrow
2727
Memi[rowptr+irow-1] = irow
28-
2928
end

pkg/utilities/nttools/lib/reorder.x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ begin
5555
}
5656

5757
# Remove the temporary row
58-
5958
call tbrdel (tp, ndx, ndx)
6059
end

pkg/utilities/nttools/tcopy/tdelete.x

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,12 @@ bool doit
5353
pointer sp, fname
5454

5555
bool clgetb(), is_wholetab()
56-
int access(), tbtacc(), strncmp()
56+
int access(), tbtacc()
5757

5858
begin
5959
call smark (sp)
6060
call salloc (fname, SZ_FNAME, TY_CHAR)
6161

62-
# Check to make sure the deletion is OK
63-
64-
if (strncmp ("http:", file, 5) == 0) {
65-
call eprintf ("Cannot delete URL `%s'\n")
66-
call pargstr (file)
67-
call sfree (sp)
68-
return
69-
}
70-
7162
if (verify) {
7263
if (tbtacc (file) == NO) {
7364
# If table does not exist, warn user

sys/fio/access.x

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ define exit_ 91
2626
begin
2727
status = NO
2828

29+
if (fname[1] <= NULL)
30+
goto exit_
31+
2932
# Ignore any whitespace at the beginning of the filename.
3033
for (ip=1; IS_WHITE (fname[ip]); ip=ip+1)
3134
;

sys/imfort/imwrhdr.x

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,15 @@ v2start_
209209
} else if (i_miiwrc (fp, IM_PIXFILE(im), SZ_V2IMPIXFILE) == ERR)
210210
goto v2done_
211211
212-
call oif_trim (IM_HDRFILE(im), SZ_V2IMHDRFILE)
212+
call oif_strim (IM_HDRFILE(im), SZ_V2IMHDRFILE)
213213
if (i_miiwrc (fp, IM_HDRFILE(im), SZ_V2IMHDRFILE) == ERR)
214214
goto v2done_
215215
216-
call oif_trim (IM_TITLE(im), SZ_V2IMTITLE)
216+
call oif_strim (IM_TITLE(im), SZ_V2IMTITLE)
217217
if (i_miiwrc (fp, IM_TITLE(im), SZ_V2IMTITLE) == ERR)
218218
goto v2done_
219219
220-
call oif_trim (IM_HISTORY(im), SZ_V2IMHIST)
220+
call oif_strim (IM_HISTORY(im), SZ_V2IMHIST)
221221
if (i_miiwrc (fp, IM_HISTORY(im), SZ_V2IMHIST) == ERR)
222222
goto v2done_
223223
@@ -238,11 +238,11 @@ v2done_
238238
end
239239
240240
241-
# OIF_TRIM -- Trim trailing garbage at the end of a string. This does not
241+
# OIF_STRIM -- Trim trailing garbage at the end of a string. This does not
242242
# affect the value of the string, but makes the contents of the output file
243243
# clearer when examined with file utilities.
244244
245-
procedure oif_trim (s, nchars)
245+
procedure oif_strim (s, nchars)
246246
247247
char s[ARB]
248248
int nchars

sys/imio/imggsc.x

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,8 @@ int sz_pixel, inbounds, npix, xstep, n
2929
pointer imgibf()
3030
int imsinb(), imloop(), pl_p2ri(), sizeof()
3131
errchk imgibf, imrdpx, imrbpx
32-
include <szpixtype.inc>
3332

3433
begin
35-
#sz_pixel = sizeof(IM_PIXTYPE(im))
36-
#sz_pixel = max ( sizeof(dtype), sizeof(IM_PIXTYPE(im)) )
37-
#sz_pixel = pix_size[IM_PIXTYPE(im)]
3834
sz_pixel = sizeof(IM_PIXTYPE(im))
3935
rlio = (and (IM_PLFLAGS(im), PL_RLIO+PL_FAST) == PL_RLIO)
4036

sys/imio/imt/imt.x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ int ip, op
289289
char url[SZ_PATHNAME], cfname[SZ_PATHNAME]
290290

291291
int strncmp(), strlen()
292-
bool envgetb()
293292

294293
begin
295294
# Check for a URL-encoded string.

0 commit comments

Comments
 (0)