Changeset 1533
- Timestamp:
- Aug 13, 2004, 1:47:10 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
Makefile.Globals (modified) (5 diffs)
-
astro/psTime.c (modified) (4 diffs)
-
astronomy/psTime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Makefile.Globals
r1525 r1533 5 5 ## Assumptions: Variable "prefix" already defined 6 6 ## 7 ## $Revision: 1.1 7$ $Name: not supported by cvs2svn $8 ## $Date: 2004-08-13 01:14:26$7 ## $Revision: 1.18 $ $Name: not supported by cvs2svn $ 8 ## $Date: 2004-08-13 23:47:10 $ 9 9 ## 10 10 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 40 40 endif 41 41 42 ifndef sladir 43 export sladir = /usr/local/star 44 endif 45 42 46 # Set initial value for CFLAGS which will include all OS common flags for GCC 43 47 … … 50 54 # Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries. 51 55 52 EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -lsla 56 SLA_LINK := $(shell $(sladir)/bin/sla_link) 57 EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f -L$(sladir)/lib $(SLA_LINK) 53 58 LDFLAGS := -g2 -pipe $(EXTLIBS) 54 59 … … 67 72 68 73 ifneq "$(findstring arwin,$(OSTYPE))" "" 69 CFLAGS += -Wno-long-double -DDARWIN -DFORTRAN_UNDERSCORE_PREFIX74 CFLAGS += -Wno-long-double -DDARWIN 70 75 CFLAGS_RELOC := $(CFLAGS) 71 76 LDFLAGS := $(LDFLAGS) -lmx … … 76 81 DOCS = 77 82 BUILD_DYNAMIC1 = libtool -dynamic 78 BUILD_DYNAMIC2 = - lm -lmx -lgcc $(EXTLIBS)-o83 BUILD_DYNAMIC2 = -L/usr/local/star/lib -lm -lmx -lgcc $(EXTLIBS) -lg2c -o 79 84 endif 80 85 -
trunk/psLib/src/astro/psTime.c
r1407 r1533 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-08- 07 00:06:06$15 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-08-13 23:47:10 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 221 221 char *tempString = NULL; 222 222 struct tm *tmTime = NULL; 223 time_t sec; 223 224 224 225 CHECK_NEGATIVE_TIME_STRUCT(time, NULL); … … 230 231 ms = time.tv_usec / 1000; 231 232 233 sec = time.tv_sec; 232 234 // tmTime variable is statically allocated, no need to free 233 tmTime = gmtime(& time.tv_sec);235 tmTime = gmtime(&sec); 234 236 if (!strftime(tempString, MAX_TIME_STRING_LENGTH, "%Y/%m/%d,%H:%M:%S", tmTime)) { 235 237 psError(__func__, " : Line %d - Failed strftime conversion", __LINE__); … … 309 311 { 310 312 struct tm *tmTime = NULL; 313 time_t sec; 311 314 312 315 CHECK_NEGATIVE_TIME_STRUCT(time, tmTime); 313 tmTime = gmtime(&time.tv_sec); 316 sec = time.tv_sec; 317 tmTime = gmtime(&sec); 314 318 315 319 return tmTime; -
trunk/psLib/src/astronomy/psTime.c
r1407 r1533 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-08- 07 00:06:06$15 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-08-13 23:47:10 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 221 221 char *tempString = NULL; 222 222 struct tm *tmTime = NULL; 223 time_t sec; 223 224 224 225 CHECK_NEGATIVE_TIME_STRUCT(time, NULL); … … 230 231 ms = time.tv_usec / 1000; 231 232 233 sec = time.tv_sec; 232 234 // tmTime variable is statically allocated, no need to free 233 tmTime = gmtime(& time.tv_sec);235 tmTime = gmtime(&sec); 234 236 if (!strftime(tempString, MAX_TIME_STRING_LENGTH, "%Y/%m/%d,%H:%M:%S", tmTime)) { 235 237 psError(__func__, " : Line %d - Failed strftime conversion", __LINE__); … … 309 311 { 310 312 struct tm *tmTime = NULL; 313 time_t sec; 311 314 312 315 CHECK_NEGATIVE_TIME_STRUCT(time, tmTime); 313 tmTime = gmtime(&time.tv_sec); 316 sec = time.tv_sec; 317 tmTime = gmtime(&sec); 314 318 315 319 return tmTime;
Note:
See TracChangeset
for help on using the changeset viewer.
