|| memcmp (bom, "\xEF\xBB\xBF", 3))
{
convert = FromLocaleDup;
- rewind (file); // no BOM, rewind
+ rewind (file); /* no BOM, rewind */
}
module_t *module = NULL;
while (fgets (line, 1024, file) != NULL)
{
- // Ignore comments and empty lines
+ /* Ignore comments and empty lines */
switch (line[0])
{
case '#':
{
char *ptr = strchr (line, ']');
if (ptr == NULL)
- continue; // syntax error;
+ continue; /* syntax error; */
*ptr = '\0';
- // New section ( = a given module)
+ /* New section ( = a given module) */
strcpy (section, line + 1);
module = NULL;
module_t *m = (module_t *)p_list->p_values[i].p_object;
if ((strcmp (section, m->psz_object_name) == 0)
- && (m->i_config_items > 0)) // ignore config-less modules
+ && (m->i_config_items > 0)) /* ignore config-less modules */
{
module = m;
if (psz_module_name != NULL)
}
if (module == NULL)
- continue; // no need to parse if there is no matching module
+ continue; /* no need to parse if there is no matching module */
char *ptr = strchr (line, '\n');
if (ptr != NULL)
ptr = strchr (line, '=');
if (ptr == NULL)
- continue; // syntax error
+ continue; /* syntax error */
*ptr = '\0';
const char *psz_option_value = ptr + 1;
* Parse the command line options
*/
opterr = 0;
- optind = 0; // set to 0 to tell GNU getopt to reinitialize
+ optind = 0; /* set to 0 to tell GNU getopt to reinitialize */
while( ( i_cmd = getopt_long( *pi_argc, ppsz_argv, psz_shortopts,
p_longopts, &i_index ) ) != -1 )
{