bdemakenewpr_loadlinux.rev070322.1705 (added 2nd '}' where first one was already gratuitous, still trying to terminate prior fuinciton so later ones are recognized.) CHanges: only 2 errors removed from makebdenologlinux_newprload070322.1649 : ../pr_util_nolog/i386-linux/probj/pr_load.c:2619: error: `temp1' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:2666: error: syntax error at end of input (2619: enter pr_find_bt after pr_load: 2616:declaration of pr_find_bt ignored; 2666: ; } /* end stripDPath (2397-2422) */ ----------------------------------- Script started on Thu 22 Mar 2007 05:04:10 PM EDT .login exits to .tcshrc .tcshrc exits [mercury1](4)> prnl /nfs/galaxy/faculty/fac1/lechner/bde2alpha_rl/sandbox/bdeNT050526/bdegen13/bde/pr_util_nolog [mercury1](5)> gcc -g -c -Wall -I/usr/include -I.. -I../include -I../pr_util_nolog -DGENV13 ../pr_util_nolog/i386-linux/probj/pr_load.c -o ../pr_util_nolog/i386-linux/probj/pr_load.o ../pr_util_nolog/i386-linux/probj/pr_load.c: In function `pr_link': ../pr_util_nolog/i386-linux/probj/pr_load.c:1485: error: syntax error before "do" ../pr_util_nolog/i386-linux/probj/pr_load.c:1486: error: syntax error before '}' token ../pr_util_nolog/i386-linux/probj/pr_load.c:1492: error: `ptr' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1492: error: (Each undeclared identifier is reported only once ../pr_util_nolog/i386-linux/probj/pr_load.c:1492: error: for each function it appears in.) ../pr_util_nolog/i386-linux/probj/pr_load.c:1492: error: `size' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1496: warning: `return' with a value, in function returning void defin of do_pr_add ignored: ../pr_util_nolog/i386-linux/probj/pr_load.c:1604: error: syntax error before "void" ../pr_util_nolog/i386-linux/probj/pr_load.c:1609: error: `tbl_abbrv' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1629: error: `error_table' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1667: error: `tmpabbrev' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1683: erroxor: `tbl_ptr' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:1944:7: missing binary operator before token "(" <<< #if 0 - fixed defin of load_data ignored: ../pr_util_nolog/i386-linux/probj/pr_load.c:2131: error: syntax error before "int" ../pr_util_nolog/i386-linux/probj/pr_load.c:2165: error: `idx' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:2181: warning: `return' with a value, in function returning void ../pr_util_nolog/i386-linux/probj/pr_load.c:2220: error: `ver_chars' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:2292: warning: `return' with a value, in function returning void ../pr_util_nolog/i386-linux/probj/pr_load.c:2314: error: syntax error before "void" ../pr_util_nolog/i386-linux/probj/pr_load.c:2319: error: `buffer' undeclared (first use in this function) defin of pr_parse ignored: ../pr_util_nolog/i386-linux/probj/pr_load.c:2541: error: syntax error before "void" ../pr_util_nolog/i386-linux/probj/pr_load.c:2560: error: `file_name' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:2571: error: `isLogFile' undeclared (first use in this function) ../pr_util_nolog/i386-linux/probj/pr_load.c:2571: warning: implicit declaration of function `load_data'(:2131) ../pr_util_nolog/i386-linux/probj/pr_load.c:2666: error: syntax error at end of input [mercury1](6)> exit Script done on Thu 22 Mar 2007 05:04:35 PM EDT ===================================================== pr_load.c notes: :2522: }; /* end switch - ';' added 070313.2241 - RJL */ return; /*RJL070218: break :2064; print (XX*)XXelt */ } /* end pr_parse (1945-2154)-->(2068-2281) */ ------------------------------ There are still too many #if 0 blocks (250 lines?) --------------------------------- saturn.cs.uml.edu(37)> diff pr_load070322.0020.c pr_load.c 1419c1419 < void pr_link (int tbl_encoding) /* :1414-1592:(expanded) */ --- > void pr_link (int tbl_encoding) /* :1419-1592:(expanded) */ 1485,1486c1485,1486 < LP;} /* end pr_link :1414-1592: */ < | // gratuitous-check termination above (is '|' but no compmlant at 2320??) --- > LP;} /* end pr_link :1419-1485: */ > }} // gratuitous-check termination above 1944c1944 < #if 0 (1945) --- > #if 0 2131c2131 < int load_data(char *viewname) /* (1891-2048) (error before 'int')(Int fixed-070315.0109) */ --- > int load_data(char *viewname) /* (2131-2294) */ 2294c2294 < LP;} /* end load_data (:1891-2054:) */ --- > LP;} /* end load_data (:2131-2294:) */ 2666c2666 < } /* end stripDPath (2397-2422) */ --- > ; } /* end stripDPath (2397-2422) */ -------------------------------- saturn.cs.uml.edu(39)> diff pr_load.c i*/probj 1944c1944 < #if 0 --- > #if 0 (1945) 2131c2131 < int load_data(char *viewname) /* (2131-2294) */ --- > int load_data(char *viewname) /* (1891-2048) (error before 'int')(Int fixed-070315.0109) */ 2294c2294 < LP;} /* end load_data (:2131-2294:) */ --- > LP;} /* end load_data (:1891-2054:) */ 2666c2666 < ; } /* end stripDPath (2397-2422) */ --- > } /* end stripDPath (2397-2422) */ saturn.cs.uml.edu(40)> -------------------------------- saturn.cs.uml.edu(41)> wc pr_load* 2425 11054 96581 pr_load.0700318.c 2431 11072 96700 pr_load.070318.2100.c 2291 10165 90047 pr_load070307.c 2776 12645 110662 pr_load070315.2300.c 2776 12632 110561 pr_load070319.2247.c 2838 12864 112388 pr_load070321.2343.c 2679 12137 107045 pr_load070322.0020.c saturn.cs.uml.edu(42)> ----------------------------------- saturn.cs.uml.edu(42)> lg -t pr_load* -rw------- 1 lechner fac 106963 Mar 22 17:29 pr_load.c -rw------- 1 lechner fac 12753 Mar 22 16:38 pr_load.vs.probj070322.dif -rw------- 1 lechner fac 107045 Mar 22 00:25 pr_load070322.0020.c -rw------- 1 lechner 06f522 112388 Mar 21 23:44 pr_load070321.2343.c -rw------- 1 lechner fac 110662 Mar 21 16:36 pr_load070315.2300.c -rw------- 1 lechner fac 169285 Mar 20 20:18 pr_load070318.E -rw------- 1 lechner fac 110561 Mar 19 22:43 pr_load070319.2247.c -rw------- 1 lechner fac 96700 Mar 18 18:02 pr_load.070318.2100.c -rw------- 1 lechner fac 96714 Mar 18 16:19 pr_load.c.070318.1620 -rw------- 1 lechner fac 96581 Mar 17 21:17 pr_load.0700318.c -rw------- 1 lechner fac 5092 Mar 13 23:06 pr_load070313.2249.vs.probj.dif -rw------- 1 lechner fac 13214 Mar 13 21:30 pr_load070313.2128.vs.probj.dif -rw------- 1 lechner 06f522 12214 Mar 10 16:17 pr_loadvsi386probj070311.dif -rw------- 1 lechner fac 129649 Mar 8 00:58 pr_load070307.2245.Ereformat.c -rw------- 1 lechner 06f522 127957 Mar 7 22:44 pr_load.E -rw------- 1 lechner fac 90047 Mar 7 22:29 pr_load070307.c -rwxr-xr-- 1 lechner 06f522 457 Mar 7 21:28 pr_load_nolog.cvsdiff -rw------- 1 lechner fac 27903 Feb 2 22:16 pr_load_nolog070202.cvsdif -rwxr-xr-- 1 lechner 06f522 29966 May 11 2006 pr_load_nologvslog.dif ------------------------------------ ================================================================================ One big #if 0 block remains: compact version of do_pr_add up thru case 3:(:1944-2052:) and one small one: old verson of link_child_nobp_m (:1335-1364) -------------------- saturn.cs.uml.edu(47)> grep '(#if|#endif)' pr_load.c 816:/* bde error exit in pr_load if pr_init is skipped {#if 0 ... #endif} -rjl070220 */ :819:void pr_init ( char *viewdef_filename, char *filelist) /* 802-1135 */ { //removed scan_file iterations and stats updating - RJL070222 :897:/* Part 2 of pr_init: find UBs for pre-used maxrow and maxver over filelist: */ /* TBD: make function scan_data_files(char *viewdef_filename, char *filelist)*/ 899:/* TBD: #if 0 to skip Part 2 (== filelist is empty???) */ 901:/* TempFix: #if 0 skips all the pr_init file-scanning below. */ 902:#if 0 /* ignore pr_init part2 - do NOT protect pre-existing pkeys in filelist */ ... /* Part 2 ends for pr_init: find UBs for pre-used maxrow and maxver over filelist.*/ 993:#endif 1335:#if 0 /* old verson of link_child_nobp_m */ #define link_child_nobp_m(ca,pa,cf,pk,p,c) \ ... :1362: /* end old verson of link_child_nobp_m */ \ } 1364:#endif :1604: void do_pr_add(char *viewname, char *tbl_abbrv, hcg_ptr tbl_ptr)/*:1711-2213:)*/ { ... 1679: switch( tbl_encoding ) { ... 1941: //end case 3 1944:#if 0 //this version is replaced above by .E version of do_pr_add (up thru case 3) void do_pr_add(char *viewname, char *tbl_abbrv, hcg_ptr tbl_ptr)/*:1704-1859:*/ ... 2052:#endif case 4 : /* encoding of HA */ ... :2213: } /* end do_pr_add :1711-2213: */ ... int load_data(char *viewname) /* (2131-2294) */ ... LP;} /* end load_data (:2131-2294:) */ :2324:void pr_parse (char viewname[], char buffer[], int tbl_encoding, int idx, hcg_key hcg_k) /* :2071-2281: --> :2314-2525: */ ... :2525:} /* end pr_parse (1945-2154)-->(2068-2281) */ ... :2541:void pr_load ( char *viewname, char *file_name) /*:2297-2360:-->2541-2605 */ ... :2605: LP;} /* end (void) pr_load (:2541-2605:) RJL 040616 */ :2616:void pr_find_bt(char *temp1,hcg_key *temp2) /* :2616-2632: */ ... :2632: } /* end pr_find_bt */ int stripDPath(char* localname, char* scan_fname) /* (2641-2666) */ ======================================== saturn.cs.uml.edu(50)> diff pr_load.c i*/probj|wc 45 190 1370 saturn.cs.uml.edu(51)> date Thu Mar 22 18:06:17 EDT 2007 saturn.cs.uml.edu(53)> diff pr_load.c i*/probj 1944c1944 < #if 0 --- > #if 0 (1945) 2131c2131 < int load_data(char *viewname) /* (2131-2294) */ --- > int load_data(char *viewname) /* (1891-2048) (error before 'int')(Int fixed-070315.0109) */ 2294c2294 < LP;} /* end load_data (:2131-2294:) */ --- > LP;} /* end load_data (:1891-2054:) */ 2315c2315 < int tbl_encoding, int idx, hcg_key hcg_k) /* :2071-2281: --> :2314-2525:*/ --- > int tbl_encoding, int idx, hcg_key hcg_k) /* :2071-2281: */ 2525c2525 < } /* end pr_parse (1945-2154)-->(2068-2281)-->(:2315-2525:) */ --- > } /* end pr_parse (1945-2154)-->(2068-2281) */ 2541c2541 < void pr_load ( char *viewname, char *file_name) /*:2297-2360:-->2541-2605 */ --- > void pr_load ( char *viewname, char *file_name) /*:2297-2360:*/ 2605c2605 < LP;} /* end (void) pr_load (:2541-2605:) RJL 040616 */ --- > LP;} /* end (void) pr_load (:2297-2361:) RJL 040616 */ 2616c2616 < void pr_find_bt(char *temp1,hcg_key *temp2) /* :2616-2632: */ --- > void pr_find_bt(char *temp1,hcg_key *temp2) 2641c2641 < int stripDPath(char* localname, char* scan_fname) /*:2397-2421:-->2641-2666) */ --- > int stripDPath(char* localname, char* scan_fname) /*:2397-2421:) */ 2666c2666 < ; } /* end stripDPath (2641-2666) */ --- > } /* end stripDPath (2397-2422) */ 2676d2675 < 070322 1AM: 2680,2681d2678 < < 070322.1800: error list about 1 page. saturn.cs.uml.edu(54)> =======================================================