- fix native mingw build if gettimeofday not defined.

- reformat whitespace in startup.tcl

git-svn-id: svn://svn.berlios.de/openocd/trunk@1101 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak 2008-10-24 15:53:22 +00:00
parent fdb7a1705d
commit 88c940c4b8
2 changed files with 73 additions and 81 deletions

View File

@ -77,19 +77,17 @@ struct timeval {
long tv_usec; long tv_usec;
}; };
struct timezone {
int tz_minuteswest;
int tz_dsttime;
};
#endif /* _TIMEVAL_DEFINED */ #endif /* _TIMEVAL_DEFINED */
#endif #endif
/* gettimeofday() */ /* gettimeofday() */
#ifndef HAVE_GETTIMEOFDAY #ifndef HAVE_GETTIMEOFDAY
struct timeval; struct timezone {
struct timezone; int tz_minuteswest;
int tz_dsttime;
};
extern int gettimeofday(struct timeval *tv, struct timezone *tz); extern int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif #endif

View File

@ -144,7 +144,6 @@ proc target_script {target_num eventname scriptname} {
add_help_text target_script "DEPRECATED please see the new TARGETNAME configure -event interface" add_help_text target_script "DEPRECATED please see the new TARGETNAME configure -event interface"
# Try flipping / and \ to find file if the filename does not # Try flipping / and \ to find file if the filename does not
# match the precise spelling # match the precise spelling
proc find {filename} { proc find {filename} {
@ -173,8 +172,6 @@ proc script {filename} {
add_help_text script "<filename> - filename of OpenOCD script (tcl) to run" add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
# Handle GDB 'R' packet. Can be overriden by configuration script, # Handle GDB 'R' packet. Can be overriden by configuration script,
# but it's not something one would expect target scripts to do # but it's not something one would expect target scripts to do
# normally # normally
@ -184,7 +181,6 @@ proc ocd_gdb_restart {target_num} {
reset halt reset halt
} }
# If RCLK is not supported, use fallback_speed_khz # If RCLK is not supported, use fallback_speed_khz
proc jtag_rclk {fallback_speed_khz} { proc jtag_rclk {fallback_speed_khz} {
if {[catch {jtag_khz 0}]!=0} { if {[catch {jtag_khz 0}]!=0} {
@ -240,7 +236,6 @@ proc ocd_process_reset { MODE } {
$t invoke-event reset-deassert-post $t invoke-event reset-deassert-post
} }
# Pass 1 - Now try to halt. # Pass 1 - Now try to halt.
if { $halt } { if { $halt } {
foreach t [target names] { foreach t [target names] {
@ -278,7 +273,6 @@ proc ocd_process_reset { MODE } {
} }
} }
# stubs for targets scripts that do not have production procedure # stubs for targets scripts that do not have production procedure
proc production_info {} { proc production_info {} {
return "Imagine an explanation here..." return "Imagine an explanation here..."