kopia lustrzana https://github.com/Hamlib/Hamlib
More changes to support macro renaming
rodzic
2fb96a34b9
commit
1fcb9404b9
|
@ -314,7 +314,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (amp_file)
|
||||
{
|
||||
strncpy(my_amp->state.ampport.pathname, amp_file, FILPATHLEN - 1);
|
||||
strncpy(my_amp->state.ampport.pathname, amp_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -338,7 +338,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (amp_file)
|
||||
{
|
||||
strncpy(my_amp->state.ampport.pathname, amp_file, FILPATHLEN - 1);
|
||||
strncpy(my_amp->state.ampport.pathname, amp_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -268,7 +268,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
|
||||
fprintf(fout, "Preamp:");
|
||||
|
||||
for (i = 0; i < MAXDBLSTSIZ && caps->preamp[i] != 0; i++)
|
||||
for (i = 0; i < HAMLIB_MAXDBLSTSIZ && caps->preamp[i] != 0; i++)
|
||||
{
|
||||
fprintf(fout, " %ddB", caps->preamp[i]);
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
fprintf(fout, "\n");
|
||||
fprintf(fout, "Attenuator:");
|
||||
|
||||
for (i = 0; i < MAXDBLSTSIZ && caps->attenuator[i] != 0; i++)
|
||||
for (i = 0; i < HAMLIB_MAXDBLSTSIZ && caps->attenuator[i] != 0; i++)
|
||||
{
|
||||
fprintf(fout, " %ddB", caps->attenuator[i]);
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
|
||||
fprintf(fout, "Memories:");
|
||||
|
||||
for (i = 0; i < CHANLSTSIZ && caps->chan_list[i].type; i++)
|
||||
for (i = 0; i < HAMLIB_CHANLSTSIZ && caps->chan_list[i].type; i++)
|
||||
{
|
||||
fprintf(fout,
|
||||
"\n\t%d..%d: \t%s",
|
||||
|
@ -602,7 +602,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
|
||||
fprintf(fout, "Tuning steps:");
|
||||
|
||||
for (i = 0; i < TSLSTSIZ && !RIG_IS_TS_END(caps->tuning_steps[i]); i++)
|
||||
for (i = 0; i < HAMLIB_TSLSTSIZ && !RIG_IS_TS_END(caps->tuning_steps[i]); i++)
|
||||
{
|
||||
if (caps->tuning_steps[i].ts == RIG_TS_ANY)
|
||||
{
|
||||
|
@ -634,7 +634,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
|
||||
fprintf(fout, "Filters:");
|
||||
|
||||
for (i = 0; i < FLTLSTSIZ && !RIG_IS_FLT_END(caps->filters[i]); i++)
|
||||
for (i = 0; i < HAMLIB_FLTLSTSIZ && !RIG_IS_FLT_END(caps->filters[i]); i++)
|
||||
{
|
||||
if (caps->filters[i].width == RIG_FLT_ANY)
|
||||
{
|
||||
|
@ -840,7 +840,7 @@ void range_print(FILE *fout, const struct freq_range_list range_list[], int rx)
|
|||
int i;
|
||||
char prntbuf[1024]; /* a malloc would be better.. */
|
||||
|
||||
for (i = 0; i < FRQRANGESIZ; i++)
|
||||
for (i = 0; i < HAMLIB_FRQRANGESIZ; i++)
|
||||
{
|
||||
if (range_list[i].startf == 0 && range_list[i].endf == 0)
|
||||
{
|
||||
|
@ -918,7 +918,7 @@ int range_sanity_check(const struct freq_range_list range_list[], int rx)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < FRQRANGESIZ; i++)
|
||||
for (i = 0; i < HAMLIB_FRQRANGESIZ; i++)
|
||||
{
|
||||
if (range_list[i].startf == 0 && range_list[i].endf == 0)
|
||||
{
|
||||
|
@ -956,7 +956,7 @@ int range_sanity_check(const struct freq_range_list range_list[], int rx)
|
|||
}
|
||||
}
|
||||
|
||||
if (i == FRQRANGESIZ)
|
||||
if (i == HAMLIB_FRQRANGESIZ)
|
||||
{
|
||||
return -4;
|
||||
}
|
||||
|
@ -981,7 +981,7 @@ int ts_sanity_check(const struct tuning_step_list tuning_step[])
|
|||
last_ts = 0;
|
||||
last_modes = RIG_MODE_NONE;
|
||||
|
||||
for (i = 0; i < TSLSTSIZ; i++)
|
||||
for (i = 0; i < HAMLIB_TSLSTSIZ; i++)
|
||||
{
|
||||
if (RIG_IS_TS_END(tuning_step[i]))
|
||||
{
|
||||
|
@ -1005,7 +1005,7 @@ int ts_sanity_check(const struct tuning_step_list tuning_step[])
|
|||
last_modes = tuning_step[i].modes;
|
||||
}
|
||||
|
||||
if (i == TSLSTSIZ)
|
||||
if (i == HAMLIB_TSLSTSIZ)
|
||||
{
|
||||
return -4;
|
||||
}
|
||||
|
|
|
@ -748,7 +748,7 @@ int set_channel_data(RIG *rig,
|
|||
n = chan->channel_num = atoi(line_data_list[ i ]);
|
||||
|
||||
/* find channel caps of appropriate memory group? */
|
||||
for (j = 0; j < CHANLSTSIZ; j++)
|
||||
for (j = 0; j < HAMLIB_CHANLSTSIZ; j++)
|
||||
{
|
||||
if (rig->state.chan_list[j].startc <= n && rig->state.chan_list[j].endc >= n)
|
||||
{
|
||||
|
@ -756,7 +756,7 @@ int set_channel_data(RIG *rig,
|
|||
}
|
||||
}
|
||||
|
||||
if (j == CHANLSTSIZ)
|
||||
if (j == HAMLIB_CHANLSTSIZ)
|
||||
{
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
|
|
@ -472,7 +472,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -490,12 +490,12 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (ptt_file)
|
||||
{
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (dcd_file)
|
||||
{
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -4083,7 +4083,7 @@ declare_proto_rig(dump_state)
|
|||
fprintf(fout, "%d\n", 0);
|
||||
#endif
|
||||
|
||||
for (i = 0; i < FRQRANGESIZ && !RIG_IS_FRNG_END(rs->rx_range_list[i]); i++)
|
||||
for (i = 0; i < HAMLIB_FRQRANGESIZ && !RIG_IS_FRNG_END(rs->rx_range_list[i]); i++)
|
||||
{
|
||||
fprintf(fout,
|
||||
"%"FREQFMT" %"FREQFMT" 0x%"PRXll" %d %d 0x%x 0x%x\n",
|
||||
|
@ -4098,7 +4098,7 @@ declare_proto_rig(dump_state)
|
|||
|
||||
fprintf(fout, "0 0 0 0 0 0 0\n");
|
||||
|
||||
for (i = 0; i < FRQRANGESIZ && !RIG_IS_FRNG_END(rs->tx_range_list[i]); i++)
|
||||
for (i = 0; i < HAMLIB_FRQRANGESIZ && !RIG_IS_FRNG_END(rs->tx_range_list[i]); i++)
|
||||
{
|
||||
fprintf(fout,
|
||||
"%"FREQFMT" %"FREQFMT" 0x%"PRXll" %d %d 0x%x 0x%x\n",
|
||||
|
@ -4113,7 +4113,7 @@ declare_proto_rig(dump_state)
|
|||
|
||||
fprintf(fout, "0 0 0 0 0 0 0\n");
|
||||
|
||||
for (i = 0; i < TSLSTSIZ && !RIG_IS_TS_END(rs->tuning_steps[i]); i++)
|
||||
for (i = 0; i < HAMLIB_TSLSTSIZ && !RIG_IS_TS_END(rs->tuning_steps[i]); i++)
|
||||
{
|
||||
fprintf(fout,
|
||||
"0x%"PRXll" %ld\n",
|
||||
|
@ -4123,7 +4123,7 @@ declare_proto_rig(dump_state)
|
|||
|
||||
fprintf(fout, "0 0\n");
|
||||
|
||||
for (i = 0; i < FLTLSTSIZ && !RIG_IS_FLT_END(rs->filters[i]); i++)
|
||||
for (i = 0; i < HAMLIB_FLTLSTSIZ && !RIG_IS_FLT_END(rs->filters[i]); i++)
|
||||
{
|
||||
fprintf(fout,
|
||||
"0x%"PRXll" %ld\n",
|
||||
|
@ -4134,7 +4134,7 @@ declare_proto_rig(dump_state)
|
|||
fprintf(fout, "0 0\n");
|
||||
|
||||
#if 0
|
||||
chan_t chan_list[CHANLSTSIZ]; /*!< Channel list, zero ended */
|
||||
chan_t chan_list[HAMLIB_CHANLSTSIZ]; /*!< Channel list, zero ended */
|
||||
#endif
|
||||
|
||||
fprintf(fout, "%ld\n", rs->max_rit);
|
||||
|
@ -4142,14 +4142,14 @@ declare_proto_rig(dump_state)
|
|||
fprintf(fout, "%ld\n", rs->max_ifshift);
|
||||
fprintf(fout, "%d\n", rs->announces);
|
||||
|
||||
for (i = 0; i < MAXDBLSTSIZ && rs->preamp[i]; i++)
|
||||
for (i = 0; i < HAMLIB_MAXDBLSTSIZ && rs->preamp[i]; i++)
|
||||
{
|
||||
fprintf(fout, "%d ", rs->preamp[i]);
|
||||
}
|
||||
|
||||
fprintf(fout, "\n");
|
||||
|
||||
for (i = 0; i < MAXDBLSTSIZ && rs->attenuator[i]; i++)
|
||||
for (i = 0; i < HAMLIB_MAXDBLSTSIZ && rs->attenuator[i]; i++)
|
||||
{
|
||||
fprintf(fout, "%d ", rs->attenuator[i]);
|
||||
}
|
||||
|
|
|
@ -502,7 +502,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (!rig_file2)
|
||||
|
@ -511,7 +511,7 @@ int main(int argc, char *argv[])
|
|||
exit(2);
|
||||
}
|
||||
|
||||
strncpy(my_com.pathname, rig_file2, FILPATHLEN - 1);
|
||||
strncpy(my_com.pathname, rig_file2, HAMLIB_FILPATHLEN - 1);
|
||||
|
||||
/*
|
||||
* ex: RIG_PTT_PARALLEL and /dev/parport0
|
||||
|
@ -528,12 +528,12 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (ptt_file)
|
||||
{
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (dcd_file)
|
||||
{
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -583,7 +583,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
my_rig->state.twiddle_timeout = twiddle_timeout;
|
||||
|
@ -607,12 +607,12 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (ptt_file)
|
||||
{
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (dcd_file)
|
||||
{
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, FILPATHLEN - 1);
|
||||
strncpy(my_rig->state.dcdport.pathname, dcd_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -288,7 +288,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -271,7 +271,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
@ -335,7 +335,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rot_file)
|
||||
{
|
||||
strncpy(rot->state.rotport.pathname, rot_file, FILPATHLEN - 1);
|
||||
strncpy(rot->state.rotport.pathname, rot_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -268,12 +268,12 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (ptt_file)
|
||||
{
|
||||
strncpy(rig->state.pttport.pathname, ptt_file, FILPATHLEN - 1);
|
||||
strncpy(rig->state.pttport.pathname, ptt_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
if (rig_file)
|
||||
{
|
||||
strncpy(rig->state.rigport.pathname, rig_file, FILPATHLEN - 1);
|
||||
strncpy(rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -341,7 +341,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rot_file)
|
||||
{
|
||||
strncpy(my_rot->state.rotport.pathname, rot_file, FILPATHLEN - 1);
|
||||
strncpy(my_rot->state.rotport.pathname, rot_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
|
@ -348,7 +348,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (rot_file)
|
||||
{
|
||||
strncpy(my_rot->state.rotport.pathname, rot_file, FILPATHLEN - 1);
|
||||
strncpy(my_rot->state.rotport.pathname, rot_file, HAMLIB_FILPATHLEN - 1);
|
||||
}
|
||||
|
||||
/* FIXME: bound checking and port type == serial */
|
||||
|
|
Ładowanie…
Reference in New Issue