No subject

Susan Stitt nps!susan at cerl.cecer.army.mil
Mon Mar 1 15:11:03 EST 1993


Below are the code fixes for v.report. I compared the original source code as 
we had it, and the current code as it now works.  Hopefully I have caught 
everything.  Please let me know, if you are successful. Thanks!


Susan Stitt
Geographic Information Systems Division
National Park Service 
PO Box 25287
Denver CO 80225-0287
(303)969-2590
susan%nps at cerl.cecer.army.mil



v.report/cmd/do_v_stats.c
	old line 239
		fprintf(dumpfile,"area\n");

	new line 239
		fprintf(dumpfile,"area%d\n",cnt);


v.report/cmd/perimeter.c
	old line 17
		if(i==((np-1)-1))
	new line 17
		if(i==(np-1))


v.report/cmd/prt_report.c
	old line 64
		unit[i].factor    =1.0e+3;
	new line 64
		unit[i].factor    =1.0e-3;


v.report/cmd/stats.c
	old line 39
		sscanf(buf,"%s,%d",atype, &nalloc);
	new line 39
		sscanf(buf,"%s%d",atype, &nalloc);

and

	old line 48
		Gstats = (GSTATS *) G_calloc (nalloc, sizeof(GSTATS));
	new line 48
		Gstats=(GSTATS *) G_malloc ((int)(nalloc * sizeof(GSTATS)));


v.report/cmd/Gmakefile
   old line 23
       $(CC) $(LDFLAGS) -o $@ $(LIST) $(VECTLIB) $(GISLAB) $(LIBES) $(MATHLIB)
   new line 23
       $(CC) $(LDFLAGS) -o $@ $(LIST) $(LIBES) $(VECTLIB) $(GISLIB) $(MATHLIB)


v.report/inter/Gmakefile
   old line 7
       $(CC) $(LDFLAGS) -o $@ $(LIST) $(VECTLIB) $(GISLIB) $(VASK) $(LIBES)
   new line 7
       $(CC) $(LDFLAGS) -o $@ $(LIST) $(GISLIB) $(VASK)



More information about the grass-user mailing list