Plan 9 from Bell Labs’s /usr/web/sources/contrib/akumar/dict/src/dict.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


diff -n old/cmd/dict/dict.c new/cmd/dict/dict.c
old/cmd/dict/dict.c:165 c new/cmd/dict/dict.c:165
< 	char *a, *b;
---
> /*	char *a, *b;	*/
old/cmd/dict/dict.c:167 a new/cmd/dict/dict.c:168
> /* repl follows
old/cmd/dict/dict.c:168 a new/cmd/dict/dict.c:170,171
> */
> 	Bprint(bout, "dictionaries\n");
old/cmd/dict/dict.c:169 a new/cmd/dict/dict.c:173
> /* don't show unavailable dicts - repl follows
old/cmd/dict/dict.c:175 a new/cmd/dict/dict.c:180,182
> */
> 		if(access(dicts[i].path, 0)==0 && access(dicts[i].indexpath, 0)==0)
> 			Bprint(bout, "   %s\t%s\n", dicts[i].name, dicts[i].desc);
diff -n old/cmd/dict/dict.h new/cmd/dict/dict.h
old/cmd/dict/dict.h:152 a new/cmd/dict/dict.h:153,155
> long	dictdnextoff(long);
> void	dictdprintentry(Entry, int);
> void	dictdprintkey(void);
Only in new/cmd/dict: dictd.c
diff -n old/cmd/dict/mkfile new/cmd/dict/mkfile
old/cmd/dict/mkfile:5 c new/cmd/dict/mkfile:5,6
< 	world.$O jis208.$O gb2312.$O thesaurus.$O simple.$O pgw.$O roget.$O
---
> 	world.$O jis208.$O gb2312.$O thesaurus.$O simple.$O pgw.$O roget.$O\
> 	dictd.$O\
old/cmd/dict/mkfile:23 a new/cmd/dict/mkfile:25,27
> 
> clean:V:
> 	rm -f *.[$OS] [$OS].out y.tab.? y.debug y.output $TARG mkindex
diff -n old/cmd/dict/utils.c new/cmd/dict/utils.c
old/cmd/dict/utils.c:84 c new/cmd/dict/utils.c:84
< 	{"je",		"Sanshusha Japanese->English",
---
> 	{"sje",		"Sanshusha Japanese->English",
old/cmd/dict/utils.c:88 c new/cmd/dict/utils.c:88
< 	{"jek",		"Sanshusha Japanese->English (Kanji index)",
---
> 	{"sjek",		"Sanshusha Japanese->English (Kanji index)",
old/cmd/dict/utils.c:92 c new/cmd/dict/utils.c:92
< 	{"ej",		"Sanshusha English->Japanese",
---
> 	{"sej",		"Sanshusha English->Japanese",
old/cmd/dict/utils.c:165 a new/cmd/dict/utils.c:166,177
> 
> 	{"bgen",		"Bulgarian-English Dictionary",
> 	 "/lib/dict/bgen",	"/lib/dict/bgen.index",
> 	 dictdnextoff,	dictdprintentry,		dictdprintkey},
> 
> 	{"enbg",		"English-Bulgarian Dictionary",
> 	 "/lib/dict/enbg",	"/lib/dict/enbg.index",
> 	 dictdnextoff,	dictdprintentry,		dictdprintkey},
> 
> 	{"je",	"Japanese-English Dictionary",
> 	 "/lib/dict/edict2",	"/lib/dict/edict2index",
> 	 dictdnextoff,	dictdprintentry,	dictdprintkey},

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.