helper: rename camelcase symbols
No cross dependency, just changes internal to each file/function. Change-Id: I16568ddcd8304f5e6748c2e19f32421b047b0357 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6300 Tested-by: jenkins
This commit is contained in:
parent
3d135a5c70
commit
9e358ac2c0
|
@ -473,11 +473,11 @@ void kept_alive(void)
|
||||||
/* if we sleep for extended periods of time, we must invoke keep_alive() intermittently */
|
/* if we sleep for extended periods of time, we must invoke keep_alive() intermittently */
|
||||||
void alive_sleep(uint64_t ms)
|
void alive_sleep(uint64_t ms)
|
||||||
{
|
{
|
||||||
uint64_t napTime = 10;
|
uint64_t nap_time = 10;
|
||||||
for (uint64_t i = 0; i < ms; i += napTime) {
|
for (uint64_t i = 0; i < ms; i += nap_time) {
|
||||||
uint64_t sleep_a_bit = ms - i;
|
uint64_t sleep_a_bit = ms - i;
|
||||||
if (sleep_a_bit > napTime)
|
if (sleep_a_bit > nap_time)
|
||||||
sleep_a_bit = napTime;
|
sleep_a_bit = nap_time;
|
||||||
|
|
||||||
usleep(sleep_a_bit * 1000);
|
usleep(sleep_a_bit * 1000);
|
||||||
keep_alive();
|
keep_alive();
|
||||||
|
|
|
@ -235,14 +235,14 @@ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct time
|
||||||
for (i = 0; i < n_handles; i++) {
|
for (i = 0; i < n_handles; i++) {
|
||||||
if (WAIT_OBJECT_0 == WaitForSingleObject(handles[i], 0)) {
|
if (WAIT_OBJECT_0 == WaitForSingleObject(handles[i], 0)) {
|
||||||
if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) {
|
if (SAFE_FD_ISSET(handle_slot_to_fd[i], rfds)) {
|
||||||
DWORD dwBytes;
|
DWORD bytes;
|
||||||
intptr_t handle = (intptr_t) _get_osfhandle(
|
intptr_t handle = (intptr_t) _get_osfhandle(
|
||||||
handle_slot_to_fd[i]);
|
handle_slot_to_fd[i]);
|
||||||
|
|
||||||
if (PeekNamedPipe((HANDLE)handle, NULL, 0,
|
if (PeekNamedPipe((HANDLE)handle, NULL, 0,
|
||||||
NULL, &dwBytes, NULL)) {
|
NULL, &bytes, NULL)) {
|
||||||
/* check to see if gdb pipe has data available */
|
/* check to see if gdb pipe has data available */
|
||||||
if (dwBytes) {
|
if (bytes) {
|
||||||
FD_SET(handle_slot_to_fd[i], &aread);
|
FD_SET(handle_slot_to_fd[i], &aread);
|
||||||
retcode++;
|
retcode++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "time_support.h"
|
#include "time_support.h"
|
||||||
|
|
||||||
static int util_Jim_Command_ms(Jim_Interp *interp,
|
static int jim_util_ms(Jim_Interp *interp,
|
||||||
int argc,
|
int argc,
|
||||||
Jim_Obj * const *argv)
|
Jim_Obj * const *argv)
|
||||||
{
|
{
|
||||||
|
@ -45,7 +45,7 @@ static const struct command_registration util_command_handlers[] = {
|
||||||
{
|
{
|
||||||
.name = "ms",
|
.name = "ms",
|
||||||
.mode = COMMAND_ANY,
|
.mode = COMMAND_ANY,
|
||||||
.jim_handler = util_Jim_Command_ms,
|
.jim_handler = jim_util_ms,
|
||||||
.help =
|
.help =
|
||||||
"Returns ever increasing milliseconds. Used to calculate differences in time.",
|
"Returns ever increasing milliseconds. Used to calculate differences in time.",
|
||||||
.usage = "",
|
.usage = "",
|
||||||
|
|
Loading…
Reference in New Issue