X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=blobdiff_plain;f=pctb%2Fconvert.c;fp=pctb%2Fconvert.c;h=1f1385057d152a1bf1e28bd7d74ae3e818d4b164;hp=4fdb0631dbe48c2ccdbad63a6d18c021b2706242;hb=059fab3ad374847da031d23d7e25ee25e888bce0;hpb=817c4b56d7b72dbb9dcce70d0e22f57d8f687ba0 diff --git a/pctb/convert.c b/pctb/convert.c index 4fdb063..1f13850 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -36,28 +36,12 @@ const char *get_vardir(void) { return "."; } const char *get_libdir(void) { return "."; } -enum mode { - mf_findwindow= 00001, - mf_screenshot= 00010, - mf_readscreenshot= 00020, - mf_analyse= 00100, - mfm_special= 07000, - - mode_findwindow= 00001, - mode_screenshot= 00011, - mode_analyse= 00120, - mode_showcharset= 01000, - - mode_all= 00111, -}; - enum outmodekind { omk_unset, omk_upload, omk_str, omk_raw, omk_none }; static enum outmodekind o_outmode_kind; static const char *o_outmode_str= 0; -static enum mode o_mode= mode_all; static char *o_screenshot_fn; static const char *o_serv_pctb, *o_serv_dict_fetch, *o_serv_dict_submit; @@ -68,6 +52,7 @@ int o_quiet; static pid_t screenshot_compressor=-1; +enum mode o_mode= mode_all; enum flags o_flags= ff_charset_allowedit | ff_dict_fetch|ff_dict_submit|ff_dict_pirate;