Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 86379 | Differences between
and this patch

Collapse All | Expand All

(-)stardict-2.4.4/src/tools/dictd2dic.cpp (-3 / +4 lines)
Lines 201-208 Link Here
201
	FILE *dicfile = fopen(dicfilename,"w");
201
	FILE *dicfile = fopen(dicfilename,"w");
202
202
203
	glong tmpglong = 0;
203
	glong tmpglong = 0;
204
#if 0
204
	fwrite(&(tmpglong),sizeof(glong),1,idxfile);		
205
	fwrite(&(tmpglong),sizeof(glong),1,idxfile);		
205
	
206
#endif	
206
	glong wordcount = array->len;
207
	glong wordcount = array->len;
207
	long offset_old;
208
	long offset_old;
208
	gchar *previous_word = "";
209
	gchar *previous_word = "";
Lines 250-260 Link Here
250
		//g_print("size: %ld\n", thedatasize);
251
		//g_print("size: %ld\n", thedatasize);
251
		fwrite(&(tmpglong),sizeof(glong),1,idxfile);	
252
		fwrite(&(tmpglong),sizeof(glong),1,idxfile);	
252
	}
253
	}
253
	
254
#if 0	
254
	fseek(idxfile,0,SEEK_SET);
255
	fseek(idxfile,0,SEEK_SET);
255
	tmpglong = g_htonl(wordcount);
256
	tmpglong = g_htonl(wordcount);
256
	fwrite(&(tmpglong),sizeof(glong),1,idxfile);
257
	fwrite(&(tmpglong),sizeof(glong),1,idxfile);
257
	
258
#endif	
258
	g_print("wordcount: %ld\n",wordcount);
259
	g_print("wordcount: %ld\n",wordcount);
259
260
260
	g_free(buffer);
261
	g_free(buffer);

Return to bug 86379