int *array = NULL;
struct s_pair *p_pair = NULL;
char *str = NULL;
- struct s_mixed *mixed = NULL;
+ // struct s_mixed *mixed = NULL;
struct s_gs_type_driver *t_driver = NULL;
struct s_gs_net_driver *n_driver = NULL;
str = gs_message_receive_next_sequence(mi);
printf("str = %s\n", str);
+ /*
fprintf(stderr, "\nreceiving sequence 5\n----------------\n");
mixed = gs_message_receive_next_sequence(mi);
printf("c1=%c c2=%c; l1=%ld l2=%ld\n",
mixed->c1, mixed->c2, mixed->l1, mixed->l2);
-
+ */
gs_exit();
return 0;
#include <string.h>
#include <gras.h>
-//#define PARSING
+#undef PARSING
/* structs */
struct list {
return 1+(long int)strlen(data);
}
+void parse_log_opt(int argc, char **argv,const char *deft);
+
/* main */
int
main(int argc, char **argv) {
{
11, 12, 13, 14, 15,
};
-
+ /*
struct s_mixed mixed =
{
'a',1.0,'b',2.0
};
-
+ */
struct s_gs_type_driver *t_driver = NULL;
struct s_gs_net_driver *n_driver = NULL;
struct s_gs_type_bag *bag = NULL;
struct s_gs_message_instance *mi = NULL;
+ parse_log_opt(argc,argv,"datadesc.thresh=debug");
gs_init(argc, argv);
gs_purge_cmd_line(&argc, argv);
gras_log_control_set("NDR.thresh=debug");
gs_message_send_next_sequence(mi, &pair);
fprintf(stderr, "\nsending sequence 4\n----------------\n");
gs_message_send_next_sequence(mi, (void*)"Hello, World");
+ /*
fprintf(stderr, "\nsending sequence 5\n----------------\n");
gs_message_send_next_sequence(mi, (void*)&mixed);
-
+ */
gs_exit();
return 0;