ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/staticProps/StaticPropsCmd.c
(Generate patch)

Comparing trunk/OOPSE-4/src/applications/staticProps/StaticPropsCmd.c (file contents):
Revision 2053 by tim, Fri Feb 18 23:07:32 2005 UTC vs.
Revision 2240 by tim, Thu May 26 22:45:00 2005 UTC

# Line 1 | Line 1
1   /*
2    File autogenerated by gengetopt version 2.11
3    generated with the following command:
4 <  /home/maul/gezelter/tim/bin/gengetopt -F StaticPropsCmd
4 >  /home/maul/gezelter/tim/bin/gengetopt -i StaticProps.ggo -F StaticPropsCmd
5  
6    The developers of gengetopt consider the fixed text that goes in all
7    gengetopt output files to be in the public domain:
# Line 53 | Line 53 | cmdline_parser_print_help (void)
53    printf("      --r_omega                   g(r, cos(omega))\n");
54    printf("      --theta_omega               g(cos(theta), cos(omega))\n");
55    printf("      --gxyz                      g(x, y, z)\n");
56 +  printf("      --p2                        p2 order parameter\n");
57   }
58  
59  
# Line 94 | Line 95 | cmdline_parser (int argc, char * const *argv, struct g
95    args_info->r_omega_given = 0 ;
96    args_info->theta_omega_given = 0 ;
97    args_info->gxyz_given = 0 ;
98 +  args_info->p2_given = 0 ;
99   #define clear_args() { \
100    args_info->input_arg = NULL; \
101    args_info->output_arg = NULL; \
# Line 134 | Line 136 | cmdline_parser (int argc, char * const *argv, struct g
136          { "r_omega",    0, NULL, 0 },
137          { "theta_omega",        0, NULL, 0 },
138          { "gxyz",       0, NULL, 0 },
139 +        { "p2", 0, NULL, 0 },
140          { NULL, 0, NULL, 0 }
141        };
142  
# Line 334 | Line 337 | cmdline_parser (int argc, char * const *argv, struct g
337              break;
338            }
339            
340 +          /* p2 order parameter.  */
341 +          else if (strcmp (long_options[option_index].name, "p2") == 0)
342 +          {
343 +            if (args_info->p2_given)
344 +              {
345 +                fprintf (stderr, "%s: `--p2' option given more than once\n", CMDLINE_PARSER_PACKAGE);
346 +                clear_args ();
347 +                exit (EXIT_FAILURE);
348 +              }
349 +            args_info->p2_given = 1; staticProps_group_counter += 1;
350 +          
351 +            break;
352 +          }
353 +          
354  
355          case '?':       /* Invalid option.  */
356            /* `getopt_long' already printed an error message.  */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines