git @ Cat's Eye Technologies OpenZz / ed21416
Reduce warnings further in sys.c. Chris Pressey 1 year, 11 months ago
1 changed file(s) with 16 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
4646 void show_zlex_memory(void);
4747 void show_rule_memory(void);
4848 int source_file(char *);
49 void pop_source(void);
50 void dumpnet(char *);
51 int change_extension(char *, const char *);
52 int source_list(struct s_content *list, void *id);
4953
5054 const char* zz_includes = "";
5155
148152
149153 /*----------------------------------------------------------------------------*/
150154
151 s_print(list)
152 struct s_list *list;
155 int s_print(struct s_list *list)
153156 {
154157 int i;
155158
238241 {
239242 zz_error(ERROR,"dumpnet: bad argument");return 0;
240243 }
241 dumpnet(s_content_value(argv[0]));
244 dumpnet(s_content_svalue(argv[0]));
242245 return 1;
243246 }
244247
650653
651654 int s_exec(int argc, struct s_content argv[], struct s_content* ret)
652655 {
653 source_list(&argv[0]);
656 source_list(&argv[0], NULL);
654657 parse(find_nt("root"));
655658 pop_source();
656659 return 1;
689692 {
690693 rr=set_param(paramname,lst->array+i);
691694 if(i==0) created=rr;
692 source_list(&blk);
695 source_list(&blk, NULL);
693696 parse(find_nt("root"));
694697 pop_source();
695698 }
727730 s_content_value(paramval)=i;
728731 rr=set_param(paramname,&paramval);
729732 if(i==from) created=rr;
730 source_list(&blk);
733 source_list(&blk, NULL);
731734 parse(find_nt("root"));
732735 pop_source();
733736 }
789792 Called by unary and binary loop operations
790793 to relect arguments while retaining operators.
791794 */
792 s_condecho(argc,argv, action, ret)
795 int s_condecho(argc,argv, action, ret)
793796 int argc;
794797 char *action;
795798 struct s_content argv[], *ret;
899902 * while loop for each pass of the loop (different from 'for' loop
900903 * where interpretation is only done at parse of loop).
901904 */
902 s_do_while_loops(argc,argv,ret,while_loop)
905 int s_do_while_loops(argc,argv,ret,while_loop)
903906 int argc;
904907 struct s_content argv[], *ret;
905908 int while_loop;
989992 while ( loop_control_flag )
990993 {
991994 // Execute the code block of the loop
992 source_list(&blk);
995 source_list(&blk, NULL);
993996
994997 // If there is a parse error in the loop body break out of loop
995998 if (!parse(find_nt("root"))) {
10341037
10351038 if(s_content_value(argv[0]))
10361039 {
1037 source_list(&blk);
1040 source_list(&blk, NULL);
10381041 parse(find_nt("root"));
10391042 pop_source();
10401043 }
10571060 {
10581061 blk = argv[2];
10591062 }
1060 source_list(&blk);
1063 source_list(&blk, NULL);
10611064 parse(find_nt("root"));
10621065 pop_source();
10631066 }
13651368
13661369 /*---------------------------------------------------------------------------*/
13671370
1368 subtag(tagson_name,tagparent_name)
1369 char *tagson_name,*tagparent_name;
1371 int subtag(char *tagson_name, char *tagparent_name)
13701372 {
13711373 struct s_tag *tagson,*tagparent;
13721374 tagson = find_tag(tagson_name);
13741376 tagson->delete = tagparent->delete;
13751377 tagson->param_on = tagparent->param_on;
13761378 tagson->param_off = tagparent->param_off;
1379 return 0;
13771380 }
13781381
13791382 /*---------------------------------------------------------------------------*/