├── .github ├── FUNDING.yml └── ISSUE_TEMPLATE.md ├── .gitignore ├── .gitmodules ├── .travis.yml ├── ABOUT-NLS ├── AUTHORS ├── COPYING ├── ChangeLog ├── Dictionaries ├── README.txt ├── README_en_US.txt ├── README_fr_FR.txt ├── en_US.aff ├── en_US.dic ├── es_ES.aff ├── es_ES.dic ├── fr_FR.aff └── fr_FR.dic ├── How to build MadEdit-Mod.txt ├── LICENSE ├── Makefile.am ├── Makefile.in ├── MoreEncodings.txt ├── NEWS ├── README ├── README.md ├── README.txt ├── VERSION ├── aclocal.m4 ├── appveyor.yml ├── astyle ├── Makefile.am ├── asstreamiterator.cpp ├── asstreamiterator.h ├── astyle │ ├── ASBeautifier.cpp │ ├── ASEnhancer.cpp │ ├── ASFormatter.cpp │ ├── ASLocalizer.cpp │ ├── ASLocalizer.h │ ├── ASResource.cpp │ ├── astyle.h │ ├── astyle_main.cpp │ └── astyle_main.h ├── astylepredefinedstyles.h ├── formattersettings.cpp ├── formattersettings.h └── resources │ ├── Makefile.am │ ├── configuration.xrc │ └── manifest.xml ├── autogen.sh ├── charset-detector ├── MPL-1.1.txt ├── Makefile ├── README ├── src │ ├── Big5Freq.tab │ ├── CMakeLists.txt │ ├── CharDistribution.cpp │ ├── CharDistribution.h │ ├── EUCKRFreq.tab │ ├── EUCTWFreq.tab │ ├── GB2312Freq.tab │ ├── JISFreq.tab │ ├── JpCntx.cpp │ ├── JpCntx.h │ ├── LangModels │ │ ├── LangArabicModel.cpp │ │ ├── LangBulgarianModel.cpp │ │ ├── LangCroatianModel.cpp │ │ ├── LangCzechModel.cpp │ │ ├── LangDanishModel.cpp │ │ ├── LangEsperantoModel.cpp │ │ ├── LangEstonianModel.cpp │ │ ├── LangFinnishModel.cpp │ │ ├── LangFrenchModel.cpp │ │ ├── LangGermanModel.cpp │ │ ├── LangGreekModel.cpp │ │ ├── LangHebrewModel.cpp │ │ ├── LangHungarianModel.cpp │ │ ├── LangIrishModel.cpp │ │ ├── LangItalianModel.cpp │ │ ├── LangLatvianModel.cpp │ │ ├── LangLithuanianModel.cpp │ │ ├── LangMalteseModel.cpp │ │ ├── LangNorwegianModel.cpp │ │ ├── LangPolishModel.cpp │ │ ├── LangPortugueseModel.cpp │ │ ├── LangRomanianModel.cpp │ │ ├── LangRussianModel.cpp │ │ ├── LangSlovakModel.cpp │ │ ├── LangSloveneModel.cpp │ │ ├── LangSpanishModel.cpp │ │ ├── LangSwedishModel.cpp │ │ ├── LangThaiModel.cpp │ │ ├── LangTurkishModel.cpp │ │ └── LangVietnameseModel.cpp │ ├── Makefile │ ├── nsBig5Prober.cpp │ ├── nsBig5Prober.h │ ├── nsCharSetProber.cpp │ ├── nsCharSetProber.h │ ├── nsCodingStateMachine.h │ ├── nsEUCJPProber.cpp │ ├── nsEUCJPProber.h │ ├── nsEUCKRProber.cpp │ ├── nsEUCKRProber.h │ ├── nsEUCTWProber.cpp │ ├── nsEUCTWProber.h │ ├── nsEscCharsetProber.cpp │ ├── nsEscCharsetProber.h │ ├── nsEscSM.cpp │ ├── nsGB2312Prober.cpp │ ├── nsGB2312Prober.h │ ├── nsHebrewProber.cpp │ ├── nsHebrewProber.h │ ├── nsLatin1Prober.cpp │ ├── nsLatin1Prober.h │ ├── nsMBCSGroupProber.cpp │ ├── nsMBCSGroupProber.h │ ├── nsMBCSSM.cpp │ ├── nsPkgInt.h │ ├── nsSBCSGroupProber.cpp │ ├── nsSBCSGroupProber.h │ ├── nsSBCharSetProber.cpp │ ├── nsSBCharSetProber.h │ ├── nsSJISProber.cpp │ ├── nsSJISProber.h │ ├── nsUTF8Prober.cpp │ ├── nsUTF8Prober.h │ ├── nsUniversalDetector.cpp │ ├── nsUniversalDetector.h │ ├── nscore.h │ ├── prmem.h │ ├── symbols.cmake │ ├── uchardet.cpp │ └── uchardet.h └── test │ ├── Makefile │ └── test-chardetect.c ├── chmod_644_all_files.sh ├── clearsavedbms.py ├── config.guess ├── config.h.in ├── config.rpath ├── config.sub ├── configure ├── configure.ac ├── convertcfg.py ├── depcomp ├── description-pak ├── devcpp ├── MadEdit.dev ├── MadEdit.layout ├── MadEdit_private.h ├── MadEdit_private.rc └── Makefile.win ├── gpl-3.0.txt ├── help ├── Help.txt ├── KeyMapping.html ├── MadPython.txt └── RegexReference.html ├── image2xpm ├── image2xpm _10.vcxproj ├── image2xpm _10.vcxproj.filters ├── image2xpm _14.vcxproj ├── image2xpm _14.vcxproj.filters ├── image2xpm.dev ├── image2xpm.layout ├── image2xpm.sln ├── image2xpm.vcproj ├── image2xpm.vcxproj ├── image2xpm.vcxproj.filters ├── image2xpmApp.cpp ├── image2xpmApp.h ├── image2xpmApp.rc ├── image2xpmFrm.cpp ├── image2xpmFrm.h ├── image2xpmFrm.wxform ├── image2xpmFrm.xml ├── image2xpm_10.sln ├── image2xpm_14.sln ├── image2xpm_private.h └── image2xpm_private.rc ├── images ├── Mad.ico ├── Mad.xpm ├── Mad2.ico ├── Mad2.xpm ├── Mad_16x15.xpm ├── alignleft.xpm ├── alignright.xpm ├── astyle.xpm ├── bookmark_clear.xpm ├── bookmark_next.xpm ├── bookmark_prev.xpm ├── bookmark_toggle.xpm ├── checked.xpm ├── checked_dis.xpm ├── closeall.xpm ├── closepreview.xpm ├── columnmode.xpm ├── comment.xpm ├── copy.xpm ├── cplusplus.xpm ├── cut.xpm ├── dateadd.xpm ├── delete.xpm ├── dnd_copy.cur ├── dnd_copy.xpm ├── dnd_move.cur ├── dnd_move.xpm ├── dnd_none.cur ├── dnd_none.xpm ├── dotmatchnewline.xpm ├── dotnewline.xpm ├── down.xpm ├── encoding.xpm ├── fileclose.xpm ├── filehandle.xpm ├── fileopen.xpm ├── filesave.xpm ├── filesaveas.xpm ├── find.xpm ├── findnext.xpm ├── findprev.xpm ├── folderfind.xpm ├── font.xpm ├── fontname.xpm ├── fontsize.xpm ├── fontsizedec.xpm ├── fontsizeinc.xpm ├── footprint.xpm ├── fullscreen.xpm ├── goback.xpm ├── goforward.xpm ├── goposition.xpm ├── help.xpm ├── hexmode.xpm ├── html.xpm ├── images.7z ├── indent.xpm ├── japanese.xpm ├── linuxlogo.xpm ├── lock.xpm ├── lock_open.xpm ├── maclogo.xpm ├── markdown.xpm ├── mpython.xpm ├── new.xpm ├── nextwin.xpm ├── nowrap.xpm ├── null.xpm ├── numbering.xpm ├── options.xpm ├── pagesetup.xpm ├── paste.xpm ├── plaintext.xpm ├── playback.xpm ├── post_it.xpm ├── preview.xpm ├── prevwin.xpm ├── print.xpm ├── qfind.xpm ├── quit.xpm ├── recentfiles.xpm ├── record.xpm ├── redo.xpm ├── refresh.xpm ├── reload.xpm ├── replace.xpm ├── report.xpm ├── runscript.xpm ├── saveall.xpm ├── saveas.xpm ├── saverec.xpm ├── schinese.xpm ├── scriptcode.xpm ├── scriptedit.xpm ├── searchcase.xpm ├── searchregex.xpm ├── searchselectedonly.xpm ├── searchwholeword.xpm ├── settop.xpm ├── showsymbol.xpm ├── spellchecker.xpm ├── stop.xpm ├── syntax.xpm ├── tchinese.xpm ├── textmode.xpm ├── togglewin.xpm ├── tolowercase.xpm ├── touppercase.xpm ├── unchecked.xpm ├── unchecked_dis.xpm ├── uncomment.xpm ├── undo.xpm ├── unindent.xpm ├── up.xpm ├── wholeword.xpm ├── windowslogo.xpm ├── winlist.xpm ├── wrapbycol.xpm ├── wrapbywin.xpm ├── xml.xpm └── zerolen.xpm ├── install-sh ├── json ├── JSON.cpp └── JSON.h ├── lgpl-3.0.txt ├── m4 ├── ChangeLog ├── gettext.m4 ├── iconv.m4 ├── lib-ld.m4 ├── lib-link.m4 ├── lib-prefix.m4 ├── nls.m4 ├── po.m4 └── progtest.m4 ├── madedit-mod.png ├── madedit-static.spec ├── madedit.desktop ├── madedit.png ├── madedit.spec ├── madedit.xpm ├── makefiles ├── Makefile.install ├── Makefile.mac ├── Makefile.mingw ├── zcfg_madedit_release.sh ├── zcfg_wx_debug.sh └── zcfg_wx_release.sh ├── markdown ├── markdown-tokens.cpp ├── markdown-tokens.h ├── markdown.cpp └── markdown.h ├── minipython ├── Grammar │ └── Grammar ├── Include │ ├── Python-ast.h │ ├── Python.h │ ├── abstract.h │ ├── asdl.h │ ├── ast.h │ ├── bitset.h │ ├── boolobject.h │ ├── bufferobject.h │ ├── bytearrayobject.h │ ├── bytes_methods.h │ ├── bytesobject.h │ ├── cellobject.h │ ├── ceval.h │ ├── classobject.h │ ├── cobject.h │ ├── code.h │ ├── codecs.h │ ├── compile.h │ ├── complexobject.h │ ├── descrobject.h │ ├── dictobject.h │ ├── dtoa.h │ ├── enumobject.h │ ├── errcode.h │ ├── eval.h │ ├── fileobject.h │ ├── floatobject.h │ ├── frameobject.h │ ├── funcobject.h │ ├── genobject.h │ ├── graminit.h │ ├── grammar.h │ ├── import.h │ ├── intobject.h │ ├── intrcheck.h │ ├── iterobject.h │ ├── listobject.h │ ├── longintrepr.h │ ├── longobject.h │ ├── marshal.h │ ├── memoryobject.h │ ├── metagrammar.h │ ├── methodobject.h │ ├── modsupport.h │ ├── moduleobject.h │ ├── node.h │ ├── object.h │ ├── objimpl.h │ ├── opcode.h │ ├── osdefs.h │ ├── parsetok.h │ ├── patchlevel.h │ ├── pgen.h │ ├── pgenheaders.h │ ├── py_curses.h │ ├── pyarena.h │ ├── pycapsule.h │ ├── pyconfig-32.h │ ├── pyconfig-64.h │ ├── pyconfig-arm32.h │ ├── pyconfig-arm64.h │ ├── pyconfig-bsd32.h │ ├── pyconfig-bsd64.h │ ├── pyconfig.h │ ├── pyconfig_win.h │ ├── pyctype.h │ ├── pydebug.h │ ├── pyerrors.h │ ├── pyexpat.h │ ├── pyfpe.h │ ├── pygetopt.h │ ├── pymacconfig.h │ ├── pymactoolbox.h │ ├── pymath.h │ ├── pymem.h │ ├── pyport.h │ ├── pystate.h │ ├── pystrcmp.h │ ├── pystrtod.h │ ├── pythonrun.h │ ├── pythread.h │ ├── rangeobject.h │ ├── setobject.h │ ├── sliceobject.h │ ├── stringobject.h │ ├── structmember.h │ ├── structseq.h │ ├── symtable.h │ ├── sysmodule.h │ ├── timefuncs.h │ ├── token.h │ ├── traceback.h │ ├── tupleobject.h │ ├── ucnhash.h │ ├── unicodeobject.h │ ├── warnings.h │ └── weakrefobject.h ├── MiniPython.7z ├── Modules │ ├── _codecsmodule.c │ ├── _io │ │ ├── _iomodule.c │ │ ├── _iomodule.h │ │ ├── bufferedio.c │ │ ├── bytesio.c │ │ ├── fileio.c │ │ ├── iobase.c │ │ ├── stringio.c │ │ └── textio.c │ ├── _math.c │ ├── _math.h │ ├── _sre.c │ ├── _struct.c │ ├── _weakref.c │ ├── binascii.c │ ├── config.c │ ├── errnomodule.c │ ├── future_builtins.c │ ├── gcmodule.c │ ├── getbuildinfo.c │ ├── getpath.c │ ├── glmodule.c │ ├── grpmodule.c │ ├── main.c │ ├── mathmodule.c │ ├── operator.c │ ├── parsermodule.c │ ├── posixmodule.c │ ├── puremodule.c │ ├── pwdmodule.c │ ├── pyexpat.c │ ├── python.c │ ├── resource.c │ ├── sre.h │ ├── sre_constants.h │ ├── stropmodule.c │ ├── symtablemodule.c │ ├── timemodule.c │ ├── zipimport.c │ ├── zlib │ │ ├── ChangeLog │ │ ├── FAQ │ │ ├── INDEX │ │ ├── Makefile │ │ ├── Makefile.in │ │ ├── README │ │ ├── adler32.c │ │ ├── algorithm.txt │ │ ├── compress.c │ │ ├── configure │ │ ├── crc32.c │ │ ├── crc32.h │ │ ├── deflate.c │ │ ├── deflate.h │ │ ├── example.c │ │ ├── gzclose.c │ │ ├── gzguts.h │ │ ├── gzlib.c │ │ ├── gzread.c │ │ ├── gzwrite.c │ │ ├── infback.c │ │ ├── inffast.c │ │ ├── inffast.h │ │ ├── inffixed.h │ │ ├── inflate.c │ │ ├── inflate.h │ │ ├── inftrees.c │ │ ├── inftrees.h │ │ ├── make_vms.com │ │ ├── minigzip.c │ │ ├── trees.c │ │ ├── trees.h │ │ ├── uncompr.c │ │ ├── zconf.h │ │ ├── zconf.h.cmakein │ │ ├── zconf.h.in │ │ ├── zlib.3 │ │ ├── zlib.h │ │ ├── zlib.map │ │ ├── zlib.pc.in │ │ ├── zutil.c │ │ └── zutil.h │ └── zlibmodule.c ├── Objects │ ├── abstract.c │ ├── boolobject.c │ ├── bufferobject.c │ ├── bytearrayobject.c │ ├── bytes_methods.c │ ├── capsule.c │ ├── cellobject.c │ ├── classobject.c │ ├── cobject.c │ ├── codeobject.c │ ├── complexobject.c │ ├── descrobject.c │ ├── dictobject.c │ ├── enumobject.c │ ├── exceptions.c │ ├── fileobject.c │ ├── floatobject.c │ ├── frameobject.c │ ├── funcobject.c │ ├── genobject.c │ ├── intobject.c │ ├── iterobject.c │ ├── listobject.c │ ├── longobject.c │ ├── memoryobject.c │ ├── methodobject.c │ ├── moduleobject.c │ ├── object.c │ ├── obmalloc.c │ ├── rangeobject.c │ ├── setobject.c │ ├── sliceobject.c │ ├── stringlib │ │ ├── README.txt │ │ ├── count.h │ │ ├── ctype.h │ │ ├── fastsearch.h │ │ ├── find.h │ │ ├── formatter.h │ │ ├── localeutil.h │ │ ├── partition.h │ │ ├── split.h │ │ ├── string_format.h │ │ ├── stringdefs.h │ │ ├── transmogrify.h │ │ └── unicodedefs.h │ ├── stringobject.c │ ├── structseq.c │ ├── tupleobject.c │ ├── typeobject.c │ ├── unicodectype.c │ ├── unicodeobject.c │ ├── unicodetype_db.h │ └── weakrefobject.c ├── PC │ ├── VS8.0 │ │ ├── debug.props │ │ ├── debug.vsprops │ │ ├── pcbuild.sln │ │ ├── pyproject.props │ │ ├── pyproject.vsprops │ │ ├── python.vcproj │ │ ├── python.vcxproj │ │ ├── python.vcxproj.filters │ │ ├── pythoncore.vcproj │ │ ├── pythoncore.vcxproj │ │ ├── pythoncore.vcxproj.filters │ │ ├── pythonw.vcproj │ │ ├── pythonw.vcxproj │ │ ├── pythonw.vcxproj.filters │ │ ├── release.props │ │ ├── release.vsprops │ │ ├── x64.props │ │ └── x64.vsprops │ ├── WinMain.c │ ├── config.c │ ├── dl_nt.c │ ├── errmap.h │ ├── getpathp.c │ ├── icons.rc │ ├── import_nt.c │ ├── py.ico │ ├── pyc.ico │ ├── pycon.ico │ ├── python_exe.rc │ ├── python_nt.aps │ ├── python_nt.h │ ├── python_nt.rc │ ├── python_nt_d.h │ ├── pythonnt_rc.h │ └── pythonnt_rc_d.h ├── Parser │ ├── Python.asdl │ ├── acceler.c │ ├── asdl.py │ ├── asdl_c.py │ ├── bitset.c │ ├── firstsets.c │ ├── grammar.c │ ├── grammar1.c │ ├── intrcheck.c │ ├── listnode.c │ ├── metagrammar.c │ ├── myreadline.c │ ├── node.c │ ├── parser.c │ ├── parser.h │ ├── parsetok.c │ ├── pgen.c │ ├── pgenmain.c │ ├── printgrammar.c │ ├── spark.py │ ├── tokenizer.c │ ├── tokenizer.h │ └── tokenizer_pgen.c ├── Python │ ├── Python-ast.c │ ├── _warnings.c │ ├── asdl.c │ ├── ast.c │ ├── bltinmodule.c │ ├── ceval.c │ ├── codecs.c │ ├── compile.c │ ├── dtoa.c │ ├── dynload_win.c │ ├── errors.c │ ├── formatter_string.c │ ├── formatter_unicode.c │ ├── frozen.c │ ├── future.c │ ├── getargs.c │ ├── getcompiler.c │ ├── getcopyright.c │ ├── getopt.c │ ├── getplatform.c │ ├── getversion.c │ ├── graminit.c │ ├── import.c │ ├── importdl.c │ ├── importdl.h │ ├── marshal.c │ ├── modsupport.c │ ├── mysnprintf.c │ ├── mystrtoul.c │ ├── peephole.c │ ├── pyarena.c │ ├── pyctype.c │ ├── pyfpe.c │ ├── pymath.c │ ├── pystate.c │ ├── pystrcmp.c │ ├── pystrtod.c │ ├── pythonrun.c │ ├── structmember.c │ ├── symtable.c │ ├── sysmodule.c │ ├── thread.c │ ├── thread_nt.h │ ├── thread_pthread.h │ └── traceback.c └── README.txt ├── missing ├── mkinstalldirs ├── msw ├── vc10 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── PyMadEdit.vcxproj │ ├── PyMadEdit.vcxproj.filters │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc12 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── PyMadEdit.vcxproj │ ├── PyMadEdit.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc14.1 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc14.2 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc14 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc16 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── MadEdit.vcxproj.user │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── pyproject.props │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc17 │ ├── MadEdit.sln │ ├── MadEdit.vcxproj │ ├── MadEdit.vcxproj.filters │ ├── MadEdit.vcxproj.user │ ├── boostpython.vcxproj │ ├── boostpython.vcxproj.filters │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcxproj │ ├── libhunspell.vcxproj.filters │ ├── libhunspell.vcxproj.user │ ├── pyproject.props │ ├── pythoncore.vcxproj │ ├── pythoncore.vcxproj.filters │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── vc71 │ ├── MadEdit.sln │ ├── MadEdit.vcproj │ ├── build_debug.bat │ └── build_release.bat ├── vc80 │ ├── MadEdit.sln │ ├── MadEdit.vcproj │ ├── boostpython.vcproj │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcproj │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcproj │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops └── vc90 │ ├── MadEdit.sln │ ├── MadEdit.vcproj │ ├── boostpython.vcproj │ ├── debug.props │ ├── debug.vsprops │ ├── libhunspell.vcproj │ ├── pyproject.props │ ├── pyproject.vsprops │ ├── pythoncore.vcproj │ ├── release.props │ ├── release.vsprops │ ├── x64.props │ └── x64.vsprops ├── packaging ├── debian │ ├── changelog │ ├── control │ ├── copyright │ ├── menu │ ├── mkdeb.sh │ └── rules ├── freebsd │ ├── Makefile │ ├── mkpkg.sh │ ├── pkg-comment │ ├── pkg-descr │ ├── pkg-plist_old │ └── pkgcreate.txt ├── pacman │ └── PKGBUILD └── rpm │ ├── madedit.spec._ │ ├── makerpm.sh │ └── static_spec.sed ├── patches ├── Readme.txt ├── auibook.cpp ├── dialog.cpp └── scrlwing.cpp ├── po ├── Makefile.in.in ├── Makevars ├── POTFILES.in ├── Rules-quot ├── boldquot.sed ├── de_DE.po ├── el.po ├── en@boldquot.header ├── en@quot.header ├── es.po ├── insert-header.sin ├── it_IT.po ├── ja_JP.po ├── madedit.pot ├── pl_PL.po ├── quot.sed ├── remove-potcdate.sin ├── ru_RU.po ├── src.list ├── stamp-po ├── wxstd.po.cpp ├── wxstd.po.txt ├── xgettext.bat ├── xgettext_join.bat ├── zh_CN.po └── zh_TW.po ├── python ├── .appveyor.yml ├── .ci │ ├── faber │ ├── install.ps1 │ ├── run_with_env.cmd │ └── upload_docs.sh ├── .gitattributes ├── .gitignore ├── .travis.yml ├── Jamfile ├── LICENSE_1_0.txt ├── README.md ├── build │ └── Jamfile ├── doc │ ├── Jamfile │ ├── article.rst │ ├── boostbook.css │ ├── building.qbk │ ├── configuration.qbk │ ├── fabscript │ ├── faq.qbk │ ├── glossary.qbk │ ├── html │ │ ├── boost.css │ │ ├── boostbook.css │ │ ├── docutils.css │ │ ├── images │ │ │ ├── alert.png │ │ │ ├── blank.png │ │ │ ├── boost.png │ │ │ ├── callouts │ │ │ │ ├── 1.png │ │ │ │ ├── 1.svg │ │ │ │ ├── 10.png │ │ │ │ ├── 10.svg │ │ │ │ ├── 11.png │ │ │ │ ├── 11.svg │ │ │ │ ├── 12.png │ │ │ │ ├── 12.svg │ │ │ │ ├── 13.png │ │ │ │ ├── 13.svg │ │ │ │ ├── 14.png │ │ │ │ ├── 14.svg │ │ │ │ ├── 15.png │ │ │ │ ├── 15.svg │ │ │ │ ├── 16.svg │ │ │ │ ├── 17.svg │ │ │ │ ├── 18.svg │ │ │ │ ├── 19.svg │ │ │ │ ├── 2.png │ │ │ │ ├── 2.svg │ │ │ │ ├── 20.svg │ │ │ │ ├── 21.svg │ │ │ │ ├── 22.svg │ │ │ │ ├── 23.svg │ │ │ │ ├── 24.svg │ │ │ │ ├── 25.svg │ │ │ │ ├── 26.svg │ │ │ │ ├── 27.svg │ │ │ │ ├── 28.svg │ │ │ │ ├── 29.svg │ │ │ │ ├── 3.png │ │ │ │ ├── 3.svg │ │ │ │ ├── 30.svg │ │ │ │ ├── 4.png │ │ │ │ ├── 4.svg │ │ │ │ ├── 5.png │ │ │ │ ├── 5.svg │ │ │ │ ├── 6.png │ │ │ │ ├── 6.svg │ │ │ │ ├── 7.png │ │ │ │ ├── 7.svg │ │ │ │ ├── 8.png │ │ │ │ ├── 8.svg │ │ │ │ ├── 9.png │ │ │ │ └── 9.svg │ │ │ ├── caution.png │ │ │ ├── caution.svg │ │ │ ├── draft.png │ │ │ ├── home.png │ │ │ ├── home.svg │ │ │ ├── important.png │ │ │ ├── important.svg │ │ │ ├── jam.png │ │ │ ├── next.png │ │ │ ├── next.svg │ │ │ ├── next_disabled.png │ │ │ ├── note.png │ │ │ ├── note.svg │ │ │ ├── prev.png │ │ │ ├── prev.svg │ │ │ ├── prev_disabled.png │ │ │ ├── python.png │ │ │ ├── python_cpp_mix.png │ │ │ ├── smiley.png │ │ │ ├── tip.png │ │ │ ├── tip.svg │ │ │ ├── toc-blank.png │ │ │ ├── toc-minus.png │ │ │ ├── toc-plus.png │ │ │ ├── up.png │ │ │ ├── up.svg │ │ │ ├── up_disabled.png │ │ │ ├── warning.png │ │ │ └── warning.svg │ │ └── rst.css │ ├── images │ │ ├── alert.png │ │ ├── blank.png │ │ ├── boost.png │ │ ├── bpl.png │ │ ├── bpl.svg │ │ ├── callouts │ │ │ ├── 1.png │ │ │ ├── 1.svg │ │ │ ├── 10.png │ │ │ ├── 10.svg │ │ │ ├── 11.png │ │ │ ├── 11.svg │ │ │ ├── 12.png │ │ │ ├── 12.svg │ │ │ ├── 13.png │ │ │ ├── 13.svg │ │ │ ├── 14.png │ │ │ ├── 14.svg │ │ │ ├── 15.png │ │ │ ├── 15.svg │ │ │ ├── 16.svg │ │ │ ├── 17.svg │ │ │ ├── 18.svg │ │ │ ├── 19.svg │ │ │ ├── 2.png │ │ │ ├── 2.svg │ │ │ ├── 20.svg │ │ │ ├── 21.svg │ │ │ ├── 22.svg │ │ │ ├── 23.svg │ │ │ ├── 24.svg │ │ │ ├── 25.svg │ │ │ ├── 26.svg │ │ │ ├── 27.svg │ │ │ ├── 28.svg │ │ │ ├── 29.svg │ │ │ ├── 3.png │ │ │ ├── 3.svg │ │ │ ├── 30.svg │ │ │ ├── 4.png │ │ │ ├── 4.svg │ │ │ ├── 5.png │ │ │ ├── 5.svg │ │ │ ├── 6.png │ │ │ ├── 6.svg │ │ │ ├── 7.png │ │ │ ├── 7.svg │ │ │ ├── 8.png │ │ │ ├── 8.svg │ │ │ ├── 9.png │ │ │ └── 9.svg │ │ ├── caution.png │ │ ├── caution.svg │ │ ├── draft.png │ │ ├── home.png │ │ ├── home.svg │ │ ├── important.png │ │ ├── important.svg │ │ ├── jam.png │ │ ├── next.png │ │ ├── next.svg │ │ ├── next_disabled.png │ │ ├── note.png │ │ ├── note.svg │ │ ├── prev.png │ │ ├── prev.svg │ │ ├── prev_disabled.png │ │ ├── smiley.png │ │ ├── tip.png │ │ ├── tip.svg │ │ ├── toc-blank.png │ │ ├── toc-minus.png │ │ ├── toc-plus.png │ │ ├── up.png │ │ ├── up.svg │ │ ├── up_disabled.png │ │ ├── warning.png │ │ └── warning.svg │ ├── index.html │ ├── index.qbk │ ├── internals.html │ ├── internals.rst │ ├── numpy │ │ ├── Makefile │ │ ├── _static │ │ │ ├── boost.css │ │ │ ├── boost.png │ │ │ ├── bpl.png │ │ │ ├── home.png │ │ │ ├── next.png │ │ │ ├── prev.png │ │ │ ├── style.css │ │ │ └── up.png │ │ ├── _templates │ │ │ └── layout.html │ │ ├── conf.py │ │ ├── index.rst │ │ ├── make.bat │ │ ├── reference │ │ │ ├── binary_ufunc.rst │ │ │ ├── dtype.rst │ │ │ ├── index.rst │ │ │ ├── multi_iter.rst │ │ │ ├── ndarray.rst │ │ │ └── unary_ufunc.rst │ │ ├── rst.css │ │ └── tutorial │ │ │ ├── dtype.rst │ │ │ ├── fromdata.rst │ │ │ ├── index.rst │ │ │ ├── ndarray.rst │ │ │ ├── simple.rst │ │ │ └── ufunc.rst │ ├── polymorphism.txt │ ├── preface.qbk │ ├── python.qbk │ ├── reference.qbk │ ├── reference │ │ ├── args.qbk │ │ ├── call.qbk │ │ ├── call_method.qbk │ │ ├── calling.qbk │ │ ├── class.qbk │ │ ├── components.qbk │ │ ├── concepts.qbk │ │ ├── conversion.qbk │ │ ├── copy_const_reference.qbk │ │ ├── copy_non_const_reference.qbk │ │ ├── data_members.qbk │ │ ├── def.qbk │ │ ├── def_visitor.qbk │ │ ├── default_call_policies.qbk │ │ ├── dict.qbk │ │ ├── docstring_options.qbk │ │ ├── embedding.qbk │ │ ├── enum.qbk │ │ ├── errors.qbk │ │ ├── exception_translator.qbk │ │ ├── exec.qbk │ │ ├── extract.qbk │ │ ├── function_doc_signature.qbk │ │ ├── functions.qbk │ │ ├── handle.qbk │ │ ├── has_back_reference.qbk │ │ ├── implicit.qbk │ │ ├── import.qbk │ │ ├── indexing.qbk │ │ ├── init.qbk │ │ ├── instance_holder.qbk │ │ ├── iterator.qbk │ │ ├── list.qbk │ │ ├── long.qbk │ │ ├── lvalue_from_pytype.qbk │ │ ├── make_function.qbk │ │ ├── manage_new_object.qbk │ │ ├── module.qbk │ │ ├── object.qbk │ │ ├── objects.qbk │ │ ├── opaque_pointer_converter.qbk │ │ ├── operators.qbk │ │ ├── overloads.qbk │ │ ├── pickle.qbk │ │ ├── pointee.qbk │ │ ├── ptr.qbk │ │ ├── pytype_function.qbk │ │ ├── raw_function.qbk │ │ ├── reference_existing_object.qbk │ │ ├── register_ptr_to_python.qbk │ │ ├── return_arg.qbk │ │ ├── return_by_value.qbk │ │ ├── return_internal_reference.qbk │ │ ├── return_opaque_pointer.qbk │ │ ├── return_value_policy.qbk │ │ ├── scope.qbk │ │ ├── slice.qbk │ │ ├── ssize_t.qbk │ │ ├── stl_iterator.qbk │ │ ├── str.qbk │ │ ├── to_python_converter.qbk │ │ ├── to_python_indirect.qbk │ │ ├── to_python_value.qbk │ │ ├── topics.qbk │ │ ├── tuple.qbk │ │ ├── type_id.qbk │ │ ├── utility.qbk │ │ ├── with_custodian_and_ward.qbk │ │ └── wrapper.qbk │ ├── release_notes.qbk │ ├── rst.css │ ├── support.qbk │ └── tutorial.qbk ├── example │ ├── Jamroot │ ├── README.md │ ├── numpy │ │ ├── Jamfile │ │ ├── demo_gaussian.py │ │ ├── dtype.cpp │ │ ├── fromdata.cpp │ │ ├── gaussian.cpp │ │ ├── ndarray.cpp │ │ ├── simple.cpp │ │ ├── ufunc.cpp │ │ └── wrap.cpp │ ├── quickstart │ │ ├── Jamfile │ │ ├── embedding.cpp │ │ ├── extending.cpp │ │ ├── script.py │ │ └── test_extending.py │ └── tutorial │ │ ├── Jamfile │ │ ├── hello.cpp │ │ └── hello.py ├── fabscript ├── include │ └── boost │ │ ├── python.hpp │ │ └── python │ │ ├── arg_from_python.hpp │ │ ├── args.hpp │ │ ├── args_fwd.hpp │ │ ├── back_reference.hpp │ │ ├── base_type_traits.hpp │ │ ├── bases.hpp │ │ ├── borrowed.hpp │ │ ├── call.hpp │ │ ├── call_method.hpp │ │ ├── cast.hpp │ │ ├── class.hpp │ │ ├── class_fwd.hpp │ │ ├── converter │ │ ├── arg_from_python.hpp │ │ ├── arg_to_python.hpp │ │ ├── arg_to_python_base.hpp │ │ ├── as_to_python_function.hpp │ │ ├── builtin_converters.hpp │ │ ├── constructor_function.hpp │ │ ├── context_result_converter.hpp │ │ ├── convertible_function.hpp │ │ ├── from_python.hpp │ │ ├── implicit.hpp │ │ ├── obj_mgr_arg_from_python.hpp │ │ ├── object_manager.hpp │ │ ├── pointer_type_id.hpp │ │ ├── pyobject_traits.hpp │ │ ├── pyobject_type.hpp │ │ ├── pytype_function.hpp │ │ ├── pytype_object_mgr_traits.hpp │ │ ├── registered.hpp │ │ ├── registered_pointee.hpp │ │ ├── registrations.hpp │ │ ├── registry.hpp │ │ ├── return_from_python.hpp │ │ ├── rvalue_from_python_data.hpp │ │ ├── shared_ptr_deleter.hpp │ │ ├── shared_ptr_from_python.hpp │ │ ├── shared_ptr_to_python.hpp │ │ └── to_python_function_type.hpp │ │ ├── copy_const_reference.hpp │ │ ├── copy_non_const_reference.hpp │ │ ├── data_members.hpp │ │ ├── def.hpp │ │ ├── def_visitor.hpp │ │ ├── default_call_policies.hpp │ │ ├── detail │ │ ├── aix_init_module.hpp │ │ ├── api_placeholder.hpp │ │ ├── borrowed_ptr.hpp │ │ ├── caller.hpp │ │ ├── config.hpp │ │ ├── construct.hpp │ │ ├── convertible.hpp │ │ ├── copy_ctor_mutates_rhs.hpp │ │ ├── cv_category.hpp │ │ ├── dealloc.hpp │ │ ├── decorated_type_id.hpp │ │ ├── decref_guard.hpp │ │ ├── def_helper.hpp │ │ ├── def_helper_fwd.hpp │ │ ├── defaults_def.hpp │ │ ├── defaults_gen.hpp │ │ ├── dependent.hpp │ │ ├── destroy.hpp │ │ ├── enable_if.hpp │ │ ├── exception_handler.hpp │ │ ├── force_instantiate.hpp │ │ ├── if_else.hpp │ │ ├── indirect_traits.hpp │ │ ├── invoke.hpp │ │ ├── is_auto_ptr.hpp │ │ ├── is_shared_ptr.hpp │ │ ├── is_wrapper.hpp │ │ ├── is_xxx.hpp │ │ ├── make_keyword_range_fn.hpp │ │ ├── make_tuple.hpp │ │ ├── map_entry.hpp │ │ ├── mpl_lambda.hpp │ │ ├── msvc_typeinfo.hpp │ │ ├── none.hpp │ │ ├── not_specified.hpp │ │ ├── nullary_function_adaptor.hpp │ │ ├── operator_id.hpp │ │ ├── overloads_fwd.hpp │ │ ├── pointee.hpp │ │ ├── prefix.hpp │ │ ├── preprocessor.hpp │ │ ├── python22_fixed.h │ │ ├── python_type.hpp │ │ ├── raw_pyobject.hpp │ │ ├── referent_storage.hpp │ │ ├── result.hpp │ │ ├── scope.hpp │ │ ├── sfinae.hpp │ │ ├── signature.hpp │ │ ├── string_literal.hpp │ │ ├── target.hpp │ │ ├── translate_exception.hpp │ │ ├── type_list.hpp │ │ ├── type_list_impl.hpp │ │ ├── type_traits.hpp │ │ ├── unwind_type.hpp │ │ ├── unwrap_type_id.hpp │ │ ├── unwrap_wrapper.hpp │ │ ├── value_arg.hpp │ │ ├── value_is_shared_ptr.hpp │ │ ├── value_is_xxx.hpp │ │ ├── void_ptr.hpp │ │ ├── void_return.hpp │ │ ├── wrap_python.hpp │ │ └── wrapper_base.hpp │ │ ├── dict.hpp │ │ ├── docstring_options.hpp │ │ ├── enum.hpp │ │ ├── errors.hpp │ │ ├── exception_translator.hpp │ │ ├── exec.hpp │ │ ├── extract.hpp │ │ ├── handle.hpp │ │ ├── handle_fwd.hpp │ │ ├── has_back_reference.hpp │ │ ├── implicit.hpp │ │ ├── import.hpp │ │ ├── init.hpp │ │ ├── instance_holder.hpp │ │ ├── iterator.hpp │ │ ├── list.hpp │ │ ├── long.hpp │ │ ├── lvalue_from_pytype.hpp │ │ ├── make_constructor.hpp │ │ ├── make_function.hpp │ │ ├── manage_new_object.hpp │ │ ├── module.hpp │ │ ├── module_init.hpp │ │ ├── numpy.hpp │ │ ├── numpy │ │ ├── config.hpp │ │ ├── dtype.hpp │ │ ├── internal.hpp │ │ ├── invoke_matching.hpp │ │ ├── matrix.hpp │ │ ├── ndarray.hpp │ │ ├── numpy_object_mgr_traits.hpp │ │ ├── scalars.hpp │ │ └── ufunc.hpp │ │ ├── object.hpp │ │ ├── object │ │ ├── add_to_namespace.hpp │ │ ├── class.hpp │ │ ├── class_detail.hpp │ │ ├── class_metadata.hpp │ │ ├── class_wrapper.hpp │ │ ├── enum_base.hpp │ │ ├── find_instance.hpp │ │ ├── forward.hpp │ │ ├── function.hpp │ │ ├── function_doc_signature.hpp │ │ ├── function_handle.hpp │ │ ├── function_object.hpp │ │ ├── inheritance.hpp │ │ ├── inheritance_query.hpp │ │ ├── instance.hpp │ │ ├── iterator.hpp │ │ ├── iterator_core.hpp │ │ ├── life_support.hpp │ │ ├── make_holder.hpp │ │ ├── make_instance.hpp │ │ ├── make_ptr_instance.hpp │ │ ├── pickle_support.hpp │ │ ├── pointer_holder.hpp │ │ ├── py_function.hpp │ │ ├── stl_iterator_core.hpp │ │ ├── value_holder.hpp │ │ └── value_holder_fwd.hpp │ │ ├── object_attributes.hpp │ │ ├── object_call.hpp │ │ ├── object_core.hpp │ │ ├── object_fwd.hpp │ │ ├── object_items.hpp │ │ ├── object_operators.hpp │ │ ├── object_protocol.hpp │ │ ├── object_protocol_core.hpp │ │ ├── object_slices.hpp │ │ ├── opaque_pointer_converter.hpp │ │ ├── operators.hpp │ │ ├── other.hpp │ │ ├── overloads.hpp │ │ ├── override.hpp │ │ ├── pointee.hpp │ │ ├── proxy.hpp │ │ ├── ptr.hpp │ │ ├── pure_virtual.hpp │ │ ├── raw_function.hpp │ │ ├── refcount.hpp │ │ ├── reference_existing_object.hpp │ │ ├── register_ptr_to_python.hpp │ │ ├── return_arg.hpp │ │ ├── return_by_value.hpp │ │ ├── return_internal_reference.hpp │ │ ├── return_opaque_pointer.hpp │ │ ├── return_value_policy.hpp │ │ ├── scope.hpp │ │ ├── self.hpp │ │ ├── signature.hpp │ │ ├── slice.hpp │ │ ├── slice_nil.hpp │ │ ├── ssize_t.hpp │ │ ├── stl_iterator.hpp │ │ ├── str.hpp │ │ ├── suite │ │ └── indexing │ │ │ ├── container_utils.hpp │ │ │ ├── detail │ │ │ └── indexing_suite_detail.hpp │ │ │ ├── indexing_suite.hpp │ │ │ ├── map_indexing_suite.hpp │ │ │ └── vector_indexing_suite.hpp │ │ ├── tag.hpp │ │ ├── to_python_converter.hpp │ │ ├── to_python_indirect.hpp │ │ ├── to_python_value.hpp │ │ ├── tuple.hpp │ │ ├── type_id.hpp │ │ ├── with_custodian_and_ward.hpp │ │ └── wrapper.hpp ├── index.html ├── meta │ └── libraries.json ├── src │ ├── converter │ │ ├── arg_to_python_base.cpp │ │ ├── builtin_converters.cpp │ │ ├── from_python.cpp │ │ ├── registry.cpp │ │ └── type_id.cpp │ ├── dict.cpp │ ├── errors.cpp │ ├── exec.cpp │ ├── fabscript │ ├── import.cpp │ ├── list.cpp │ ├── long.cpp │ ├── module.cpp │ ├── numpy │ │ ├── dtype.cpp │ │ ├── matrix.cpp │ │ ├── ndarray.cpp │ │ ├── numpy.cpp │ │ ├── scalars.cpp │ │ └── ufunc.cpp │ ├── object │ │ ├── class.cpp │ │ ├── enum.cpp │ │ ├── function.cpp │ │ ├── function_doc_signature.cpp │ │ ├── inheritance.cpp │ │ ├── iterator.cpp │ │ ├── life_support.cpp │ │ ├── pickle_support.cpp │ │ └── stl_iterator.cpp │ ├── object_operators.cpp │ ├── object_protocol.cpp │ ├── slice.cpp │ ├── str.cpp │ ├── tuple.cpp │ └── wrapper.cpp ├── test │ ├── Jamfile │ ├── a_map_indexing_suite.cpp │ ├── andreas_beyer.cpp │ ├── andreas_beyer.py │ ├── args.cpp │ ├── args.py │ ├── as_to_python_function.cpp │ ├── auto_ptr.cpp │ ├── auto_ptr.py │ ├── back_reference.cpp │ ├── back_reference.py │ ├── bases.cpp │ ├── ben_scott1.cpp │ ├── ben_scott1.py │ ├── bienstman1.cpp │ ├── bienstman1.py │ ├── bienstman2.cpp │ ├── bienstman2.py │ ├── bienstman3.cpp │ ├── bienstman3.py │ ├── bienstman4.cpp │ ├── bienstman4.py │ ├── bienstman5.cpp │ ├── bienstman5.py │ ├── boost_shared_ptr.cpp │ ├── boost_shared_ptr.py │ ├── borrowed.cpp │ ├── builtin_converters.cpp │ ├── callbacks.cpp │ ├── callbacks.py │ ├── calling_conventions.cpp │ ├── calling_conventions.py │ ├── calling_conventions_mf.cpp │ ├── calling_conventions_mf.py │ ├── class.cpp │ ├── class.py │ ├── cltree.cpp │ ├── complicated.hpp │ ├── const_argument.cpp │ ├── const_argument.py │ ├── copy_ctor_mutates_rhs.cpp │ ├── crossmod_exception.py │ ├── crossmod_exception_a.cpp │ ├── crossmod_exception_b.cpp │ ├── crossmod_opaque.py │ ├── crossmod_opaque_a.cpp │ ├── crossmod_opaque_b.cpp │ ├── data_members.cpp │ ├── data_members.py │ ├── defaults.cpp │ ├── defaults.py │ ├── destroy_test.cpp │ ├── dict.cpp │ ├── dict.py │ ├── docstring.cpp │ ├── docstring.py │ ├── enable_shared_from_this.cpp │ ├── enable_shared_from_this.py │ ├── enum_ext.cpp │ ├── exception_translator.cpp │ ├── exception_translator.py │ ├── exec.cpp │ ├── exec.py │ ├── extract.cpp │ ├── extract.py │ ├── fabscript │ ├── if_else.cpp │ ├── implicit.cpp │ ├── implicit.py │ ├── import_.cpp │ ├── import_.py │ ├── indirect_traits_test.cpp │ ├── injected.cpp │ ├── injected.py │ ├── input_iterator.cpp │ ├── int_map_indexing_suite.cpp │ ├── iterator.cpp │ ├── iterator.py │ ├── keywords.cpp │ ├── keywords_test.py │ ├── list.cpp │ ├── list.py │ ├── long.cpp │ ├── long.py │ ├── m1.cpp │ ├── m2.cpp │ ├── map_indexing_suite.cpp │ ├── map_indexing_suite.py │ ├── minimal.cpp │ ├── minimal.py │ ├── module_tail.cpp │ ├── multi_arg_constructor.cpp │ ├── multi_arg_constructor.py │ ├── nested.cpp │ ├── nested.py │ ├── newtest.py │ ├── numpy │ │ ├── dtype.cpp │ │ ├── dtype.py │ │ ├── indexing.cpp │ │ ├── indexing.py │ │ ├── ndarray.cpp │ │ ├── ndarray.py │ │ ├── shapes.cpp │ │ ├── shapes.py │ │ ├── templates.cpp │ │ ├── templates.py │ │ ├── ufunc.cpp │ │ └── ufunc.py │ ├── object.cpp │ ├── object.py │ ├── object_fail1.cpp │ ├── object_manager.cpp │ ├── opaque.cpp │ ├── opaque.py │ ├── operators.cpp │ ├── operators.py │ ├── operators_wrapper.cpp │ ├── operators_wrapper.py │ ├── pickle1.cpp │ ├── pickle1.py │ ├── pickle2.cpp │ ├── pickle2.py │ ├── pickle3.cpp │ ├── pickle3.py │ ├── pickle4.cpp │ ├── pickle4.py │ ├── pointee.cpp │ ├── pointer_type_id_test.cpp │ ├── pointer_vector.cpp │ ├── pointer_vector.py │ ├── polymorphism.cpp │ ├── polymorphism.py │ ├── polymorphism2.cpp │ ├── polymorphism2.py │ ├── polymorphism2_auto_ptr.cpp │ ├── polymorphism2_auto_ptr.py │ ├── properties.cpp │ ├── properties.py │ ├── pyrun.py │ ├── pytype_function.cpp │ ├── pytype_function.py │ ├── raw_ctor.cpp │ ├── raw_ctor.py │ ├── raw_pyobject_fail1.cpp │ ├── raw_pyobject_fail2.cpp │ ├── register_ptr.cpp │ ├── register_ptr_test.py │ ├── result.cpp │ ├── return_arg.cpp │ ├── return_arg.py │ ├── select_arg_to_python_test.cpp │ ├── select_from_python_test.cpp │ ├── select_holder.cpp │ ├── shared_ptr.cpp │ ├── shared_ptr.hpp │ ├── shared_ptr.py │ ├── simple_type.hpp │ ├── slice.cpp │ ├── slice.py │ ├── staticmethod.cpp │ ├── staticmethod.py │ ├── stl_iterator.cpp │ ├── stl_iterator.py │ ├── str.cpp │ ├── str.py │ ├── string_literal.cpp │ ├── test_builtin_converters.py │ ├── test_class.hpp │ ├── test_cltree.py │ ├── test_enum.py │ ├── test_overload_resolution.cpp │ ├── test_pointer_adoption.cpp │ ├── test_pointer_adoption.py │ ├── tuple.cpp │ ├── tuple.py │ ├── upcast.cpp │ ├── vector_indexing_suite.cpp │ ├── vector_indexing_suite.py │ ├── virtual_functions.cpp │ ├── virtual_functions.py │ ├── voidptr.cpp │ ├── voidptr.py │ ├── wrapper_held_type.cpp │ └── wrapper_held_type.py └── todo.txt ├── scripts ├── Makefile.am ├── Makefile.in ├── deletstring.mpy ├── dosdir2unix.mpy ├── findall.mpy ├── insertlines.mpy ├── regex_patch.mpy ├── replaceall.mpy └── replacehexstring.mpy ├── spellchecker ├── HunspellInterface.cpp ├── HunspellInterface.h ├── Hunspell_v80.sln ├── PersonalDictionary.cpp ├── PersonalDictionary.h ├── SpellCheckEngineInterface.cpp ├── SpellCheckEngineInterface.h ├── SpellCheckEngineOption.cpp ├── SpellCheckEngineOption.h ├── SpellCheckUserInterface.cpp ├── SpellCheckUserInterface.h ├── SpellCheckerManager.cpp ├── SpellCheckerManager.h ├── hunspell │ ├── ABOUT-NLS │ ├── AUTHORS │ ├── COPYING │ ├── COPYING.LESSER │ ├── COPYING.MPL │ ├── ChangeLog │ ├── INSTALL │ ├── Makefile.am │ ├── Makefile.in │ ├── NEWS │ ├── README │ ├── THANKS │ ├── aclocal.m4 │ ├── compile │ ├── config.guess │ ├── config.h.in │ ├── config.rpath │ ├── config.sub │ ├── configure │ ├── configure.ac │ ├── depcomp │ ├── hunspell.pc.in │ ├── install-sh │ ├── license.hunspell │ ├── license.myspell │ ├── ltmain.sh │ ├── m4 │ │ ├── ChangeLog │ │ ├── README │ │ ├── ax_cxx_compile_stdcxx.m4 │ │ ├── ax_cxx_compile_stdcxx_11.m4 │ │ ├── gettext.m4 │ │ ├── iconv.m4 │ │ ├── lib-ld.m4 │ │ ├── lib-link.m4 │ │ ├── lib-prefix.m4 │ │ ├── nls.m4 │ │ ├── po.m4 │ │ ├── progtest.m4 │ │ └── visibility.m4 │ ├── man │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── hu │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── hunspell.1 │ │ │ └── hunspell.5 │ │ ├── hunspell.1 │ │ ├── hunspell.3 │ │ ├── hunspell.5 │ │ ├── hunzip.1 │ │ └── hzip.1 │ ├── missing │ ├── msvc │ │ ├── .gitignore │ │ ├── Hunspell.rc │ │ ├── Hunspell.sln │ │ ├── config.h │ │ ├── hunspell.vcxproj │ │ ├── libhunspell.vcxproj │ │ └── testparser.vcxproj │ ├── po │ │ ├── ChangeLog │ │ ├── LINGUAS │ │ ├── Makefile.in.in │ │ ├── Makevars │ │ ├── POTFILES.in │ │ ├── Rules-quot │ │ ├── an.po │ │ ├── ar.po │ │ ├── ast.po │ │ ├── bg.po │ │ ├── boldquot.sed │ │ ├── br.po │ │ ├── ca.po │ │ ├── ckb.po │ │ ├── co.po │ │ ├── cs.po │ │ ├── da.po │ │ ├── de.po │ │ ├── de_CH.po │ │ ├── el.po │ │ ├── en@boldquot.header │ │ ├── en@quot.header │ │ ├── eo.po │ │ ├── es.po │ │ ├── es_EU.po │ │ ├── fa.po │ │ ├── fr.po │ │ ├── fur.po │ │ ├── fy.po │ │ ├── gl.po │ │ ├── he.po │ │ ├── hi.po │ │ ├── hr.po │ │ ├── ht.po │ │ ├── hu.po │ │ ├── hunspell.pot │ │ ├── hy.po │ │ ├── id.po │ │ ├── ie.po │ │ ├── insert-header.sin │ │ ├── is.po │ │ ├── it.po │ │ ├── ka.po │ │ ├── kab.po │ │ ├── kn.po │ │ ├── ko.po │ │ ├── ky.po │ │ ├── ln.po │ │ ├── lt.po │ │ ├── lv.po │ │ ├── mk.po │ │ ├── mn.po │ │ ├── nb_NO.po │ │ ├── nl.po │ │ ├── nl_BE.po │ │ ├── oc.po │ │ ├── pa.po │ │ ├── pl.po │ │ ├── pt.po │ │ ├── pt_BR.po │ │ ├── pt_PT.po │ │ ├── quot.sed │ │ ├── remove-potcdate.sin │ │ ├── ro.po │ │ ├── ru.po │ │ ├── si.po │ │ ├── sl.po │ │ ├── sq.po │ │ ├── stamp-po │ │ ├── sv.po │ │ ├── ta.po │ │ ├── tg.po │ │ ├── tok.po │ │ ├── tr.po │ │ ├── tt.po │ │ ├── uk.po │ │ ├── ur.po │ │ ├── uz.po │ │ ├── vi.po │ │ ├── zh_Hans.po │ │ └── zh_Hant.po │ └── src │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── hunspell │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── affentry.cxx │ │ ├── affentry.hxx │ │ ├── affixmgr.cxx │ │ ├── affixmgr.hxx │ │ ├── atypes.hxx │ │ ├── baseaffix.hxx │ │ ├── csutil.cxx │ │ ├── csutil.hxx │ │ ├── filemgr.cxx │ │ ├── filemgr.hxx │ │ ├── hashmgr.cxx │ │ ├── hashmgr.hxx │ │ ├── htypes.hxx │ │ ├── hunspell.cxx │ │ ├── hunspell.h │ │ ├── hunspell.hxx │ │ ├── hunvisapi.h │ │ ├── hunvisapi.h.in │ │ ├── hunzip.cxx │ │ ├── hunzip.hxx │ │ ├── langnum.hxx │ │ ├── phonet.cxx │ │ ├── phonet.hxx │ │ ├── replist.cxx │ │ ├── replist.hxx │ │ ├── suggestmgr.cxx │ │ ├── suggestmgr.hxx │ │ ├── utf_info.hxx │ │ └── w_char.hxx │ │ ├── parsers │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── firstparser.cxx │ │ ├── firstparser.hxx │ │ ├── htmlparser.cxx │ │ ├── htmlparser.hxx │ │ ├── latexparser.cxx │ │ ├── latexparser.hxx │ │ ├── manparser.cxx │ │ ├── manparser.hxx │ │ ├── odfparser.cxx │ │ ├── odfparser.hxx │ │ ├── testparser.cxx │ │ ├── textparser.cxx │ │ ├── textparser.hxx │ │ ├── xmlparser.cxx │ │ └── xmlparser.hxx │ │ └── tools │ │ ├── .gitignore │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── affdicfuzzer.cxx │ │ ├── affixcompress │ │ ├── analyze.cxx │ │ ├── chmorph.cxx │ │ ├── example.cxx │ │ ├── fuzzer.cxx │ │ ├── fuzzer.options │ │ ├── hunspell.cxx │ │ ├── hunzip.cxx │ │ ├── hzip.cxx │ │ ├── ispellaff2myspell │ │ ├── makealias │ │ ├── munch.cxx │ │ ├── munch.h │ │ ├── unmunch.cxx │ │ ├── unmunch.h │ │ ├── wordforms │ │ └── wordlist2hunspell └── libhunspell_v80.vcproj ├── src ├── EmbeddedPython.cpp ├── EmbeddedPython.hpp ├── MadAboutDialog.cpp ├── MadAboutDialog.h ├── MadAboutDialog.wxform ├── MadCommand.h ├── MadConvEncDialog.cpp ├── MadConvEncDialog.h ├── MadConvEncDialog.wxform ├── MadEdit │ ├── ExtEncodings │ │ ├── ascii.h │ │ ├── converters.h │ │ ├── cp936ext.h │ │ ├── gap.h │ │ ├── gb18030.h │ │ ├── gb18030ext.h │ │ ├── gb18030uni.h │ │ ├── gb2312.h │ │ ├── gbk.h │ │ ├── gbkext1.h │ │ ├── gbkext2.h │ │ ├── gbkext_inv.h │ │ ├── ibm1025.h │ │ ├── ibm1047.h │ │ ├── ibm1097.h │ │ ├── ibm1112.h │ │ ├── ibm1122.h │ │ ├── ibm1123.h │ │ ├── ibm1130.h │ │ ├── ibm1132.h │ │ ├── ibm1137.h │ │ ├── ibm1140.h │ │ ├── ibm1141.h │ │ ├── ibm1142.h │ │ ├── ibm1143.h │ │ ├── ibm1144.h │ │ ├── ibm1145.h │ │ ├── ibm1146.h │ │ ├── ibm1147.h │ │ ├── ibm1148.h │ │ ├── ibm1149.h │ │ ├── ibm1153.h │ │ ├── ibm1154.h │ │ ├── ibm1155.h │ │ ├── ibm1156.h │ │ ├── ibm1157.h │ │ ├── ibm1158.h │ │ ├── ibm1160.h │ │ ├── ibm1164.h │ │ ├── ibm1166.h │ │ ├── ibm12712.h │ │ └── ibm16804.h │ ├── MadCSConv.cpp │ ├── MadCSConv.h │ ├── MadDeque.hpp │ ├── MadEdit.cpp │ ├── MadEdit.h │ ├── MadEditAdvanced.cpp │ ├── MadEditBasic.cpp │ ├── MadEditCommand.cpp │ ├── MadEditCommand.h │ ├── MadEditPv.h │ ├── MadEditSearch.cpp │ ├── MadEdit_gtk.cpp │ ├── MadEncoding.cpp │ ├── MadEncoding.h │ ├── MadLines.cpp │ ├── MadLines.h │ ├── MadSyntax.cpp │ ├── MadSyntax.h │ ├── MadUndo.cpp │ ├── MadUndo.h │ ├── TradSimp.cpp │ ├── TradSimp.h │ ├── caret_new.cpp │ ├── caret_new.h │ ├── clipbrd_gtk.cpp │ ├── clipbrd_gtk.h │ ├── clipbrd_gtk_wx2.cpp │ ├── clipbrd_gtk_wx2.h │ ├── clipbrd_gtk_wx3.cpp │ ├── clipbrd_gtk_wx3.h │ └── ucs4_t.h ├── MadEditApp.cpp ├── MadEditApp.h ├── MadEditApp.rc ├── MadEditFrame.cpp ├── MadEditFrame.h ├── MadEditFrame.wxform ├── MadFileAssociationDialog.cpp ├── MadFileAssociationDialog.h ├── MadFileAssociationDialog.wxform ├── MadFileHistoryDialog.cpp ├── MadFileHistoryDialog.h ├── MadFindInFilesDialog.cpp ├── MadFindInFilesDialog.h ├── MadFindInFilesDialog.wxform ├── MadHighlightingDialog.cpp ├── MadHighlightingDialog.h ├── MadHighlightingDialog.wxform ├── MadMacroDlg.cpp ├── MadMacroDlg.h ├── MadNumberDlg.cpp ├── MadNumberDlg.h ├── MadNumberDlg.wxform ├── MadOptionsDialog.cpp ├── MadOptionsDialog.h ├── MadOptionsDialog.wxform ├── MadPlugin.cpp ├── MadPrintout.cpp ├── MadPrintout.h ├── MadPurgeHistoryDialog.cpp ├── MadPurgeHistoryDialog.h ├── MadPurgeHistoryDialog.wxform ├── MadPython.hpp ├── MadRecentList.cpp ├── MadRecentList.h ├── MadSaveQueryDialog.cpp ├── MadSaveQueryDialog.h ├── MadSearchReplaceDialog.cpp ├── MadSearchReplaceDialog.h ├── MadSearchReplaceDialog.wxform ├── MadSortDialog.cpp ├── MadSortDialog.h ├── MadSortDialog.wxform ├── MadSourceFormatDialog.cpp ├── MadSourceFormatDialog.h ├── MadUtils.cpp ├── MadUtils.h ├── MadWinListDialog.cpp ├── MadWinListDialog.h ├── MadWordCountDialog.cpp ├── MadWordCountDialog.h ├── MadWordCountDialog.wxform ├── checkedlistctrl.cpp ├── checkedlistctrl.h ├── plugin.h ├── plugin_example │ ├── makefile.linux │ ├── makefile.mingw32 │ ├── makefile.vc │ ├── plugin.cpp │ ├── vc_cl.bat │ └── wxwin16x16.xpm ├── resource.h ├── version.cpp └── wxsmith │ ├── MadAboutDialog.wxs │ ├── MadConvEncDialog.wxs │ ├── MadFileAssociationDialog.wxs │ ├── MadFileHistoryDialog.wxs │ ├── MadFindInFilesDialog.wxs │ ├── MadHighlightingDialog.wxs │ ├── MadMacroDlg.wxs │ ├── MadOptionsDialog.wxs │ ├── MadPurgeHistoryDialog.wxs │ ├── MadSaveQueryDialog.wxs │ ├── MadSearchReplaceDialog.wxs │ ├── MadSortDialog.wxs │ ├── MadSourceFormatDialog.wxs │ ├── MadWinListDialog.wxs │ └── MadWordCountDialog.wxs └── syntax ├── Dark.sch ├── DarkBlue.sch ├── Gray.sch ├── Makefile.am ├── Makefile.in ├── extension.list ├── filename.list ├── firstline.list ├── syntax_actionscript.syn ├── syntax_angelscript.syn ├── syntax_awk.syn ├── syntax_batch.syn ├── syntax_conf.syn ├── syntax_cpp.syn ├── syntax_csharp.syn ├── syntax_css.syn ├── syntax_d.syn ├── syntax_diff.syn ├── syntax_fortran.syn ├── syntax_freebasic.syn ├── syntax_gnuasm.syn ├── syntax_go.syn ├── syntax_html.syn ├── syntax_java.syn ├── syntax_javascript.syn ├── syntax_js_html.syn ├── syntax_jsp.syn ├── syntax_latex.syn ├── syntax_lua.syn ├── syntax_mpython.syn ├── syntax_nfo.syn ├── syntax_pas.syn ├── syntax_perl.syn ├── syntax_php.syn ├── syntax_python.syn ├── syntax_reg.syn ├── syntax_ruby.syn ├── syntax_sh.syn ├── syntax_sptlog.syn ├── syntax_sql.syn ├── syntax_squirrel.syn ├── syntax_syn.syn ├── syntax_tcl.syn ├── syntax_txt.syn ├── syntax_typescript.syn ├── syntax_vbscript_asp.syn ├── syntax_verilog.syn ├── syntax_vhdl.syn ├── syntax_visualbasic.syn ├── syntax_x86asm.syn ├── syntax_xml.syn ├── syntax_yaml.syn └── syntax_yang.syn /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Please provide the following information** 2 | 3 | Madedit-Mod version (or branch): 4 | 5 | platform/architecture: 6 | 7 | compiler and compiler version: 8 | 9 | please describe what symptom you see, what you would expect to see instead and how to reproduce it. 10 | 11 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | 3 | compiler: 4 | - gcc 5 | 6 | sudo: false 7 | 8 | os: 9 | - linux 10 | 11 | script: 12 | - sh ./autogen.sh && sh ./configure && make 13 | # - if [ "$TRAVIS_OS_NAME" = "osx" ]; then autoreconf -i -I /usr/local/share/aclocal && ./configure && make && make check; fi 14 | # might be needed for future 15 | 16 | addons: 17 | apt: 18 | sources: 19 | - ubuntu-toolchain-r-test 20 | packages: 21 | - autoconf 22 | - automake 23 | - gcc 24 | - g++ 25 | - libboost1.58-all-dev 26 | - gtk+2.0-dev 27 | - libwxgtk3.0 28 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Minggang Li 2 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/ChangeLog -------------------------------------------------------------------------------- /Dictionaries/README.txt: -------------------------------------------------------------------------------- 1 | Download more dictionaries at http://extensions.openoffice.org 2 | 3 | Note: 4 | oxt is actually a zip file. So, download it and open it with 7-zip. Then extract 5 | the .dic and .aff to ./Dictionaries. Re-start MadEdit-Mod to load the dictionary. 6 | -------------------------------------------------------------------------------- /Dictionaries/README_fr_FR.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/README_fr_FR.txt -------------------------------------------------------------------------------- /Dictionaries/en_US.dic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/en_US.dic -------------------------------------------------------------------------------- /Dictionaries/es_ES.aff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/es_ES.aff -------------------------------------------------------------------------------- /Dictionaries/es_ES.dic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/es_ES.dic -------------------------------------------------------------------------------- /Dictionaries/fr_FR.aff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/fr_FR.aff -------------------------------------------------------------------------------- /Dictionaries/fr_FR.dic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/Dictionaries/fr_FR.dic -------------------------------------------------------------------------------- /How to build MadEdit-Mod.txt: -------------------------------------------------------------------------------- 1 | Requirements 2 | ============ 3 | * Install developing tools gcc, gcc-c++, gdb, gtk+2/gtk+3, gettext, automake, 4 | autoconf, aclocal, git, make and rpm-build if you want a rpm package 5 | 6 | * Install gtk+2-devel/gtk+3-devel, gettext-devel 7 | 8 | * Install wxGTK3 9 | 10 | * copy wxwin.m4 to usr/share/acloXXX/ or Install wxGTK-devel 11 | 12 | * Install wx-common for ubuntu 13 | 14 | Compile wxWidgets and boost_python 15 | ============ 16 | * Get boost 1.70 17 | * Get latest code from sourceforge 18 | git clone https://github.com/LiMinggang/madedit-mod.git 19 | 20 | Compile MadEdi-Mod from source code 21 | ============ 22 | * Compile madedit-mod by configure or packaging script 23 | configure --with-boost=${HOME}/boost_1_70_0 24 | 25 | Or 26 | 27 | cd packaging/rpm && makerpm.sh -------------------------------------------------------------------------------- /MoreEncodings.txt: -------------------------------------------------------------------------------- 1 | CP855 and Windows-1258 not tested. EUC-JP 2 | AddEncoding("ISO-8859-16", ENC_ISO_8859_16, _("South-Eastern European (ISO-8859-16)"), etSingleByte, "ISO-8859-15", false); 3 | AddEncoding("CP437-Art", ENC_CP437_ART, _("CP437 Variant for ASCII Art"), etCP437ART, "CP437"); 4 | AddEncoding("CP20932", ENC_CP20932, _("EUC-JP Double-Byte Edition of Windows (CP 20932)"), etCP20932, "EUC-JP", false); 5 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/README -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/README.txt -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.4.20 2 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | configuration: Release 3 | platform: x64 4 | build: 5 | project: msw\vc14.2\MadEdit.sln 6 | verbosity: minimal -------------------------------------------------------------------------------- /astyle/astylepredefinedstyles.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3 3 | * http://www.gnu.org/licenses/gpl-3.0.html 4 | */ 5 | 6 | #ifndef ASTYLEPREDEFINEDSTYLES_H 7 | #define ASTYLEPREDEFINEDSTYLES_H 8 | 9 | enum AStylePredefinedStyle 10 | { 11 | aspsAllman = 0, 12 | aspsJava, 13 | aspsKr, 14 | aspsStroustrup, 15 | aspsWhitesmith, 16 | aspsVTK, 17 | aspsRatliff, 18 | aspsGnu, 19 | aspsLinux, 20 | aspsHorstmann, 21 | asps1TBS, 22 | aspsGoogle, 23 | aspsMozilla, 24 | aspsWebkit, 25 | aspsPico, 26 | aspsLisp, 27 | aspsCustom 28 | }; 29 | 30 | #endif // ASTYLEPREDEFINEDSTYLES_H 31 | -------------------------------------------------------------------------------- /astyle/formattersettings.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3 3 | * http://www.gnu.org/licenses/gpl-3.0.html 4 | */ 5 | 6 | #ifndef FORMATTERSETTINGS_H 7 | #define FORMATTERSETTINGS_H 8 | 9 | #include "astyle/astyle.h" 10 | 11 | class FormatterSettings 12 | { 13 | public: 14 | FormatterSettings(); 15 | virtual ~FormatterSettings(); 16 | 17 | void ApplyTo(astyle::ASFormatter& formatter); 18 | }; 19 | 20 | #endif // FORMATTERSETTINGS_H 21 | -------------------------------------------------------------------------------- /astyle/resources/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST = configuration.xrc manifest.xml 2 | 3 | pkgdata_DATA = astyle.zip 4 | CLEANFILES = $(pkgdata_DATA) 5 | 6 | astyle.zip: $(EXTRA_DIST) 7 | PWD=`pwd` cd $(srcdir) && zip $(PWD)/astyle.zip manifest.xml *.xrc > /dev/null 8 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | #./chmod_644_all_files.sh 3 | aclocal 4 | autoheader 5 | automake --foreign --add-missing --copy 6 | autoreconf --install 7 | -------------------------------------------------------------------------------- /charset-detector/README: -------------------------------------------------------------------------------- 1 | Universal Character Set Detector C Library 2 | 3 | 4 | 1. What is it? 5 | 6 | A port to C of "universalchardet", that is the encoding detector 7 | library of Mozilla. 8 | 9 | The original code of universalchardet is available at 10 | http://lxr.mozilla.org/seamonkey/source/extensions/universalchardet/ 11 | 12 | 13 | 2. API 14 | 15 | See universalchardet.h. 16 | 17 | 18 | 3. License 19 | 20 | The library is subject to the Mozilla Public License Version 1.1. 21 | Alternatively, the library may be used under the terms of either 22 | the GNU General Public License Version 2 or later, or the GNU 23 | Lesser General Public License 2.1 or later. 24 | 25 | -------------------------------------------------------------------------------- /charset-detector/test/Makefile: -------------------------------------------------------------------------------- 1 | TARGET=test-chardetect 2 | 3 | all: $(TARGET) 4 | 5 | $(TARGET): test-chardetect.c 6 | gcc \ 7 | -O2 \ 8 | -o $(TARGET) \ 9 | test-chardetect.c \ 10 | -I../include \ 11 | -ldl 12 | 13 | clean: 14 | rm -f $(TARGET) 15 | -------------------------------------------------------------------------------- /chmod_644_all_files.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | find devcpp images image2xpm libunicows po src syntax vc71 xpressive wxAUI -type f -exec chmod 644 {} \; 3 | -------------------------------------------------------------------------------- /description-pak: -------------------------------------------------------------------------------- 1 | GTK+ based text/hex editor 2 | MadEdit is a cross-platform Text/Hex Editor written in C++ & wxWidgets. 3 | MadEdit supports many useful functions, e.g. SyntaxHighlightings, 4 | WordWrap, Encodings, Column/Hex Modes. 5 | HomePage: http://sourceforge.net/projects/madedit-mod 6 | -------------------------------------------------------------------------------- /devcpp/MadEdit_private.h: -------------------------------------------------------------------------------- 1 | /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ 2 | /* DO NOT EDIT ! */ 3 | 4 | #ifndef MADEDIT_PRIVATE_H 5 | #define MADEDIT_PRIVATE_H 6 | 7 | /* VERSION DEFINITIONS */ 8 | #define VER_STRING "0.1.1.1" 9 | #define VER_MAJOR 0 10 | #define VER_MINOR 1 11 | #define VER_RELEASE 1 12 | #define VER_BUILD 1 13 | #define COMPANY_NAME "" 14 | #define FILE_VERSION "" 15 | #define FILE_DESCRIPTION "Developed using the Dev-C++ IDE" 16 | #define INTERNAL_NAME "" 17 | #define LEGAL_COPYRIGHT "" 18 | #define LEGAL_TRADEMARKS "" 19 | #define ORIGINAL_FILENAME "" 20 | #define PRODUCT_NAME "" 21 | #define PRODUCT_VERSION "" 22 | 23 | #endif /*MADEDIT_PRIVATE_H*/ 24 | -------------------------------------------------------------------------------- /devcpp/MadEdit_private.rc: -------------------------------------------------------------------------------- 1 | /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ 2 | /* DO NOT EDIT! */ 3 | 4 | #include "../src/MadEditApp.rc" 5 | 6 | -------------------------------------------------------------------------------- /image2xpm/image2xpm.layout: -------------------------------------------------------------------------------- 1 | [Editor_1] 2 | CursorCol=2 3 | CursorRow=312 4 | TopLine=280 5 | LeftChar=1 6 | Open=0 7 | Top=0 8 | [Editor_0] 9 | CursorCol=15 10 | CursorRow=20 11 | TopLine=2 12 | LeftChar=1 13 | Open=0 14 | Top=0 15 | [Editor_6] 16 | CursorCol=1 17 | CursorRow=1 18 | TopLine=1 19 | LeftChar=1 20 | Open=0 21 | Top=0 22 | [Editor_5] 23 | CursorCol=1 24 | CursorRow=1 25 | TopLine=1 26 | LeftChar=1 27 | Open=0 28 | Top=0 29 | [Editors] 30 | Focused=3 31 | Order=4,3 32 | [Editor_2] 33 | Open=0 34 | Top=0 35 | [Editor_3] 36 | Open=1 37 | Top=1 38 | CursorCol=1 39 | CursorRow=1 40 | TopLine=7 41 | LeftChar=1 42 | [Editor_4] 43 | Open=1 44 | Top=0 45 | CursorCol=1 46 | CursorRow=1 47 | TopLine=1 48 | LeftChar=1 49 | -------------------------------------------------------------------------------- /image2xpm/image2xpmApp.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/image2xpm/image2xpmApp.cpp -------------------------------------------------------------------------------- /image2xpm/image2xpmApp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/image2xpm/image2xpmApp.h -------------------------------------------------------------------------------- /image2xpm/image2xpmApp.rc: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /image2xpm/image2xpmFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/image2xpm/image2xpmFrm.cpp -------------------------------------------------------------------------------- /image2xpm/image2xpmFrm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/image2xpm/image2xpmFrm.h -------------------------------------------------------------------------------- /image2xpm/image2xpmFrm.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /image2xpm/image2xpm_private.h: -------------------------------------------------------------------------------- 1 | /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ 2 | /* DO NOT EDIT ! */ 3 | 4 | #ifndef IMAGE2XPM_PRIVATE_H 5 | #define IMAGE2XPM_PRIVATE_H 6 | 7 | /* VERSION DEFINITIONS */ 8 | #define VER_STRING "0.1.1.1" 9 | #define VER_MAJOR 0 10 | #define VER_MINOR 1 11 | #define VER_RELEASE 1 12 | #define VER_BUILD 1 13 | #define COMPANY_NAME "" 14 | #define FILE_VERSION "" 15 | #define FILE_DESCRIPTION "Developed using the Dev-C++ IDE" 16 | #define INTERNAL_NAME "" 17 | #define LEGAL_COPYRIGHT "" 18 | #define LEGAL_TRADEMARKS "" 19 | #define ORIGINAL_FILENAME "" 20 | #define PRODUCT_NAME "" 21 | #define PRODUCT_VERSION "" 22 | 23 | #endif /*IMAGE2XPM_PRIVATE_H*/ 24 | -------------------------------------------------------------------------------- /image2xpm/image2xpm_private.rc: -------------------------------------------------------------------------------- 1 | /* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ 2 | /* DO NOT EDIT! */ 3 | 4 | #include "image2xpmApp.rc" 5 | 6 | -------------------------------------------------------------------------------- /images/Mad.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/Mad.ico -------------------------------------------------------------------------------- /images/Mad2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/Mad2.ico -------------------------------------------------------------------------------- /images/checked.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static const char * const checked_xpm[] = { 3 | "16 16 4 1", 4 | " c None", 5 | "! c black", 6 | "# c #808080", 7 | "$ c #C0C0C0", 8 | " ", 9 | " ", 10 | " ############ ", 11 | " #!!!!!!!!!!$ ", 12 | " #! $ ", 13 | " #! ! $ ", 14 | " #! !! $ ", 15 | " #! ! !!! $ ", 16 | " #! !! !!! $ ", 17 | " #! !!!!! $ ", 18 | " #! !!! $ ", 19 | " #! ! $ ", 20 | " #! $ ", 21 | " #$$$$$$$$$$$ ", 22 | " ", 23 | " "}; -------------------------------------------------------------------------------- /images/checked_dis.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static const char * const checked_dis_xpm[] = { 3 | "16 16 4 1", 4 | " c None", 5 | ". c #808080", 6 | "X c Black", 7 | "o c #c0c0c0", 8 | " ", 9 | " ", 10 | " ............ ", 11 | " .XXXXXXXXXXo ", 12 | " .Xoooooooooo ", 13 | " .Xooooooo.oo ", 14 | " .Xoooooo..oo ", 15 | " .Xo.ooo...oo ", 16 | " .Xo..o...ooo ", 17 | " .Xo.....oooo ", 18 | " .Xoo...ooooo ", 19 | " .Xooo.oooooo ", 20 | " .Xoooooooooo ", 21 | " .ooooooooooo ", 22 | " ", 23 | " "}; 24 | -------------------------------------------------------------------------------- /images/dnd_copy.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/dnd_copy.cur -------------------------------------------------------------------------------- /images/dnd_move.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/dnd_move.cur -------------------------------------------------------------------------------- /images/dnd_none.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/dnd_none.cur -------------------------------------------------------------------------------- /images/find.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *find_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 3 1", 5 | ". c Black", 6 | "X c #FFFFFF", 7 | " c None", 8 | /* pixels */ 9 | " ", 10 | " ... ... ", 11 | " .X. .X. ", 12 | " ... ... ", 13 | " ..... ..... ", 14 | " .X... .X... ", 15 | " ............. ", 16 | "..X... ..X..... ", 17 | "..X... ..X..... ", 18 | "..X......X..... ", 19 | "....... ....... ", 20 | ".X... .X... ", 21 | ".X... .X... ", 22 | "..... ..... ", 23 | " ", 24 | " " 25 | }; 26 | -------------------------------------------------------------------------------- /images/fontname.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *fontname_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 3 1", 5 | "X c #808080", 6 | ". c #000080", 7 | " c None", 8 | /* pixels */ 9 | " ", 10 | " ", 11 | " . ", 12 | " X.X ", 13 | " ... ", 14 | " X...X ", 15 | " .. .. ", 16 | " X. ..X ", 17 | " ....... ", 18 | " X. ..X ", 19 | " .. X.. ", 20 | " X. X..X ", 21 | " .... ...... ", 22 | " ", 23 | " ", 24 | " " 25 | }; 26 | -------------------------------------------------------------------------------- /images/fontsize.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *fontsize_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 3 1", 5 | "X c Black", 6 | ". c #808080", 7 | " c None", 8 | /* pixels */ 9 | " ", 10 | " ", 11 | " .X.X.X.X. ", 12 | " .X. X ", 13 | " XXX XXX", 14 | " .XXX. X ", 15 | " XX.XX X ", 16 | " .X. XX. X ", 17 | " XX .XX X ", 18 | " .XXXXXXX. X ", 19 | " XX .XX X ", 20 | " .X XX. XXX", 21 | "XXXX XXXXX X ", 22 | " ", 23 | " ", 24 | " " 25 | }; 26 | -------------------------------------------------------------------------------- /images/images.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/images/images.7z -------------------------------------------------------------------------------- /images/null.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *null_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "16 16 2 1", 5 | ". c Black", 6 | " c None", 7 | /* pixels */ 8 | " ", 9 | " ", 10 | " ", 11 | " ", 12 | " ", 13 | " ", 14 | " ", 15 | " .... ", 16 | " . . ", 17 | " . . ", 18 | " .... ", 19 | " ", 20 | " ", 21 | " ", 22 | " ", 23 | " " 24 | }; 25 | -------------------------------------------------------------------------------- /images/unchecked.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static const char * const unchecked_xpm[] = { 3 | "16 16 5 1", 4 | " c None", 5 | ". c #808080", 6 | "X c Black", 7 | "o c #c0c0c0", 8 | "w c White", 9 | " ", 10 | " ", 11 | " ............ ", 12 | " .XXXXXXXXXXo ", 13 | " .Xwwwwwwwwwo ", 14 | " .Xwwwwwwwwwo ", 15 | " .Xwwwwwwwwwo ", 16 | " .Xwwwwwwwwwo ", 17 | " .Xwwwwwwwwwo ", 18 | " .Xwwwwwwwwwo ", 19 | " .Xwwwwwwwwwo ", 20 | " .Xwwwwwwwwwo ", 21 | " .Xwwwwwwwwwo ", 22 | " .ooooooooooo ", 23 | " ", 24 | " "}; 25 | -------------------------------------------------------------------------------- /images/unchecked_dis.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static const char * const unchecked_dis_xpm[] = { 3 | "16 16 4 1", 4 | " c None", 5 | ". c #808080", 6 | "X c Black", 7 | "o c #c0c0c0", 8 | " ", 9 | " ", 10 | " ............ ", 11 | " .XXXXXXXXXXo ", 12 | " .Xoooooooooo ", 13 | " .Xoooooooooo ", 14 | " .Xoooooooooo ", 15 | " .Xoooooooooo ", 16 | " .Xoooooooooo ", 17 | " .Xoooooooooo ", 18 | " .Xoooooooooo ", 19 | " .Xoooooooooo ", 20 | " .Xoooooooooo ", 21 | " .ooooooooooo ", 22 | " ", 23 | " "}; 24 | -------------------------------------------------------------------------------- /m4/ChangeLog: -------------------------------------------------------------------------------- 1 | 2007-04-10 gettextize 2 | 3 | * gettext.m4: New file, from gettext-0.16.1. 4 | * iconv.m4: New file, from gettext-0.16.1. 5 | * lib-ld.m4: New file, from gettext-0.16.1. 6 | * lib-link.m4: New file, from gettext-0.16.1. 7 | * lib-prefix.m4: New file, from gettext-0.16.1. 8 | * nls.m4: New file, from gettext-0.16.1. 9 | * po.m4: New file, from gettext-0.16.1. 10 | * progtest.m4: New file, from gettext-0.16.1. 11 | 12 | -------------------------------------------------------------------------------- /madedit-mod.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/madedit-mod.png -------------------------------------------------------------------------------- /madedit.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=MadEdit 3 | Comment=Text/Hex Editor 4 | Comment[zh_CN]=文本及十六进制编辑器 5 | Comment[zh_TW]=文字及十六進位編輯器 6 | Exec=madedit %f 7 | Icon=madedit 8 | Terminal=false 9 | Type=Application 10 | MimeType=text/plain 11 | Categories=Utility;TextEditor; 12 | -------------------------------------------------------------------------------- /madedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/madedit.png -------------------------------------------------------------------------------- /makefiles/zcfg_madedit_release.sh: -------------------------------------------------------------------------------- 1 | 2 | ../configure --with-wx-config=${HOME}/wxWidgets/RELEASE/wx-config --with-boost=${HOME}/boost --with-xpressive=${HOME}/boost LIBS="${HOME}/wxWidgets/RELEASE/lib/libwx_gtk2u_core-2.8.a ${HOME}/wxWidgets/RELEASE/lib/libwx_baseu-2.8.a -lgtk-x11-2.0 -lgthread-2.0 /usr/X11R6/lib/libXinerama.a" glib_gtk2_LIBS="-lm" WX_LIBS="-lm" CXXFLAGS="-O3 -fexpensive-optimizations" 3 | -------------------------------------------------------------------------------- /makefiles/zcfg_wx_debug.sh: -------------------------------------------------------------------------------- 1 | # command line for configure of wxWidgets under linux 2 | 3 | ../configure --without-subdirs --enable-shared --enable-debug --enable-unicode --enable-stl --with-gnomeprint=yes --with-libpng=no --with-libjpeg=no --with-libtiff=no --with-regex=no --with-expat=no --with-zlib=no 4 | #--with-expat=builtin 5 | 6 | # all: $(__basedll___depname) $(__baselib___depname) $(__coredll___depname) $(__corelib___depname) 7 | -------------------------------------------------------------------------------- /makefiles/zcfg_wx_release.sh: -------------------------------------------------------------------------------- 1 | # command line for configure of wxWidgets under linux 2 | ../configure --without-subdirs --disable-shared --disable-debug --enable-unicode --enable-stl --with-gnomeprint=yes --with-libpng=no --with-libjpeg=no --with-libtiff=no --with-regex=no --with-expat=no --with-zlib=no 3 | #--with-expat=builtin 4 | 5 | # for Makefile 6 | # all: $(__basedll___depname) $(__baselib___depname) $(__coredll___depname) $(__corelib___depname) 7 | # $(__wxexpat___depname) 8 | 9 | -------------------------------------------------------------------------------- /minipython/Include/ast.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_AST_H 2 | #define Py_AST_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | PyAPI_FUNC(mod_ty) PyAST_FromNode(const node *, PyCompilerFlags *flags, 8 | const char *, PyArena *); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | #endif /* !Py_AST_H */ 14 | -------------------------------------------------------------------------------- /minipython/Include/cellobject.h: -------------------------------------------------------------------------------- 1 | /* Cell object interface */ 2 | 3 | #ifndef Py_CELLOBJECT_H 4 | #define Py_CELLOBJECT_H 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | typedef struct { 10 | PyObject_HEAD 11 | PyObject *ob_ref; /* Content of the cell or NULL when empty */ 12 | } PyCellObject; 13 | 14 | PyAPI_DATA(PyTypeObject) PyCell_Type; 15 | 16 | #define PyCell_Check(op) (Py_TYPE(op) == &PyCell_Type) 17 | 18 | PyAPI_FUNC(PyObject *) PyCell_New(PyObject *); 19 | PyAPI_FUNC(PyObject *) PyCell_Get(PyObject *); 20 | PyAPI_FUNC(int) PyCell_Set(PyObject *, PyObject *); 21 | 22 | #define PyCell_GET(op) (((PyCellObject *)(op))->ob_ref) 23 | #define PyCell_SET(op, v) (((PyCellObject *)(op))->ob_ref = v) 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | #endif /* !Py_TUPLEOBJECT_H */ 29 | -------------------------------------------------------------------------------- /minipython/Include/dtoa.h: -------------------------------------------------------------------------------- 1 | #ifndef PY_NO_SHORT_FLOAT_REPR 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | 6 | PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr); 7 | PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits, 8 | int *decpt, int *sign, char **rve); 9 | PyAPI_FUNC(void) _Py_dg_freedtoa(char *s); 10 | 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /minipython/Include/enumobject.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_ENUMOBJECT_H 2 | #define Py_ENUMOBJECT_H 3 | 4 | /* Enumerate Object */ 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | PyAPI_DATA(PyTypeObject) PyEnum_Type; 11 | PyAPI_DATA(PyTypeObject) PyReversed_Type; 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif /* !Py_ENUMOBJECT_H */ 18 | -------------------------------------------------------------------------------- /minipython/Include/eval.h: -------------------------------------------------------------------------------- 1 | 2 | /* Interface to execute compiled code */ 3 | 4 | #ifndef Py_EVAL_H 5 | #define Py_EVAL_H 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyCodeObject *, PyObject *, PyObject *); 11 | 12 | PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyCodeObject *co, 13 | PyObject *globals, 14 | PyObject *locals, 15 | PyObject **args, int argc, 16 | PyObject **kwds, int kwdc, 17 | PyObject **defs, int defc, 18 | PyObject *closure); 19 | 20 | PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | #endif /* !Py_EVAL_H */ 26 | -------------------------------------------------------------------------------- /minipython/Include/intrcheck.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Py_INTRCHECK_H 3 | #define Py_INTRCHECK_H 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | PyAPI_FUNC(int) PyOS_InterruptOccurred(void); 9 | PyAPI_FUNC(void) PyOS_InitInterrupts(void); 10 | PyAPI_FUNC(void) PyOS_AfterFork(void); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | #endif /* !Py_INTRCHECK_H */ 16 | -------------------------------------------------------------------------------- /minipython/Include/iterobject.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_ITEROBJECT_H 2 | #define Py_ITEROBJECT_H 3 | /* Iterators (the basic kind, over a sequence) */ 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | PyAPI_DATA(PyTypeObject) PySeqIter_Type; 9 | 10 | #define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type) 11 | 12 | PyAPI_FUNC(PyObject *) PySeqIter_New(PyObject *); 13 | 14 | PyAPI_DATA(PyTypeObject) PyCallIter_Type; 15 | 16 | #define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type) 17 | 18 | PyAPI_FUNC(PyObject *) PyCallIter_New(PyObject *, PyObject *); 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif /* !Py_ITEROBJECT_H */ 23 | 24 | -------------------------------------------------------------------------------- /minipython/Include/marshal.h: -------------------------------------------------------------------------------- 1 | 2 | /* Interface for marshal.c */ 3 | 4 | #ifndef Py_MARSHAL_H 5 | #define Py_MARSHAL_H 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | #define Py_MARSHAL_VERSION 2 11 | 12 | PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); 13 | PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); 14 | PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); 15 | 16 | PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); 17 | PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); 18 | PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); 19 | PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); 20 | PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | #endif /* !Py_MARSHAL_H */ 26 | -------------------------------------------------------------------------------- /minipython/Include/metagrammar.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_METAGRAMMAR_H 2 | #define Py_METAGRAMMAR_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | #define MSTART 256 9 | #define RULE 257 10 | #define RHS 258 11 | #define ALT 259 12 | #define ITEM 260 13 | #define ATOM 261 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | #endif /* !Py_METAGRAMMAR_H */ 19 | -------------------------------------------------------------------------------- /minipython/Include/moduleobject.h: -------------------------------------------------------------------------------- 1 | 2 | /* Module object interface */ 3 | 4 | #ifndef Py_MODULEOBJECT_H 5 | #define Py_MODULEOBJECT_H 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | PyAPI_DATA(PyTypeObject) PyModule_Type; 11 | 12 | #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type) 13 | #define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type) 14 | 15 | PyAPI_FUNC(PyObject *) PyModule_New(const char *); 16 | PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *); 17 | PyAPI_FUNC(char *) PyModule_GetName(PyObject *); 18 | PyAPI_FUNC(char *) PyModule_GetFilename(PyObject *); 19 | PyAPI_FUNC(void) _PyModule_Clear(PyObject *); 20 | 21 | #ifdef __cplusplus 22 | } 23 | #endif 24 | #endif /* !Py_MODULEOBJECT_H */ 25 | -------------------------------------------------------------------------------- /minipython/Include/pgen.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_PGEN_H 2 | #define Py_PGEN_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | 8 | /* Parser generator interface */ 9 | 10 | extern grammar *meta_grammar(void); 11 | 12 | struct _node; 13 | extern grammar *pgen(struct _node *); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | #endif /* !Py_PGEN_H */ 19 | -------------------------------------------------------------------------------- /minipython/Include/pygetopt.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Py_PYGETOPT_H 3 | #define Py_PYGETOPT_H 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | PyAPI_DATA(int) _PyOS_opterr; 9 | PyAPI_DATA(int) _PyOS_optind; 10 | PyAPI_DATA(char *) _PyOS_optarg; 11 | 12 | PyAPI_FUNC(void) _PyOS_ResetGetOpt(void); 13 | PyAPI_FUNC(int) _PyOS_GetOpt(int argc, char **argv, char *optstring); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | #endif /* !Py_PYGETOPT_H */ 19 | -------------------------------------------------------------------------------- /minipython/Include/pystrcmp.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_STRCMP_H 2 | #define Py_STRCMP_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t); 9 | PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *); 10 | 11 | #if defined(MS_WINDOWS) || defined(PYOS_OS2) 12 | #define PyOS_strnicmp strnicmp 13 | #define PyOS_stricmp stricmp 14 | #else 15 | #define PyOS_strnicmp PyOS_mystrnicmp 16 | #define PyOS_stricmp PyOS_mystricmp 17 | #endif 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif /* !Py_STRCMP_H */ 24 | -------------------------------------------------------------------------------- /minipython/Include/rangeobject.h: -------------------------------------------------------------------------------- 1 | 2 | /* Range object interface */ 3 | 4 | #ifndef Py_RANGEOBJECT_H 5 | #define Py_RANGEOBJECT_H 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | /* This is about the type 'xrange', not the built-in function range(), which 11 | returns regular lists. */ 12 | 13 | /* 14 | A range object represents an integer range. This is an immutable object; 15 | a range cannot change its value after creation. 16 | 17 | Range objects behave like the corresponding tuple objects except that 18 | they are represented by a start, stop, and step datamembers. 19 | */ 20 | 21 | PyAPI_DATA(PyTypeObject) PyRange_Type; 22 | 23 | #define PyRange_Check(op) (Py_TYPE(op) == &PyRange_Type) 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | #endif /* !Py_RANGEOBJECT_H */ 29 | -------------------------------------------------------------------------------- /minipython/Include/timefuncs.h: -------------------------------------------------------------------------------- 1 | /* timefuncs.h 2 | */ 3 | 4 | /* Utility function related to timemodule.c. */ 5 | 6 | #ifndef TIMEFUNCS_H 7 | #define TIMEFUNCS_H 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | 13 | /* Cast double x to time_t, but raise ValueError if x is too large 14 | * to fit in a time_t. ValueError is set on return iff the return 15 | * value is (time_t)-1 and PyErr_Occurred(). 16 | */ 17 | PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x); 18 | 19 | /* Get the current time since the epoch in seconds */ 20 | PyAPI_FUNC(double) _PyTime_FloatTime(void); 21 | 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif 26 | #endif /* TIMEFUNCS_H */ 27 | -------------------------------------------------------------------------------- /minipython/Include/traceback.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef Py_TRACEBACK_H 3 | #define Py_TRACEBACK_H 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | struct _frame; 9 | 10 | /* Traceback interface */ 11 | 12 | typedef struct _traceback { 13 | PyObject_HEAD 14 | struct _traceback *tb_next; 15 | struct _frame *tb_frame; 16 | int tb_lasti; 17 | int tb_lineno; 18 | } PyTracebackObject; 19 | 20 | PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *); 21 | PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *); 22 | PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, const char *, int, int); 23 | 24 | /* Reveal traceback type so we can typecheck traceback objects */ 25 | PyAPI_DATA(PyTypeObject) PyTraceBack_Type; 26 | #define PyTraceBack_Check(v) (Py_TYPE(v) == &PyTraceBack_Type) 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | #endif /* !Py_TRACEBACK_H */ 32 | -------------------------------------------------------------------------------- /minipython/Include/warnings.h: -------------------------------------------------------------------------------- 1 | #ifndef Py_WARNINGS_H 2 | #define Py_WARNINGS_H 3 | #ifdef __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | PyAPI_FUNC(void) _PyWarnings_Init(void); 8 | 9 | PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); 10 | PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, 11 | const char *, PyObject *); 12 | 13 | #define PyErr_WarnPy3k(msg, stacklevel) \ 14 | (Py_Py3kWarningFlag ? PyErr_WarnEx(PyExc_DeprecationWarning, msg, stacklevel) : 0) 15 | 16 | /* DEPRECATED: Use PyErr_WarnEx() instead. */ 17 | #define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1) 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif /* !Py_WARNINGS_H */ 23 | 24 | -------------------------------------------------------------------------------- /minipython/MiniPython.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/MiniPython.7z -------------------------------------------------------------------------------- /minipython/Modules/python.c: -------------------------------------------------------------------------------- 1 | /* Minimal main program -- everything is loaded from the library */ 2 | 3 | #include "Python.h" 4 | 5 | #ifdef __FreeBSD__ 6 | #include 7 | #endif 8 | 9 | int 10 | main(int argc, char **argv) 11 | { 12 | /* 754 requires that FP exceptions run in "no stop" mode by default, 13 | * and until C vendors implement C99's ways to control FP exceptions, 14 | * Python requires non-stop mode. Alas, some platforms enable FP 15 | * exceptions by default. Here we disable them. 16 | */ 17 | #ifdef __FreeBSD__ 18 | fedisableexcept(FE_OVERFLOW); 19 | #endif 20 | return Py_Main(argc, argv); 21 | } 22 | -------------------------------------------------------------------------------- /minipython/Modules/zlib/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -@echo "Please use ./configure first. Thank you." 3 | 4 | distclean: 5 | make -f Makefile.in distclean 6 | -------------------------------------------------------------------------------- /minipython/Modules/zlib/gzclose.c: -------------------------------------------------------------------------------- 1 | /* gzclose.c -- zlib gzclose() function 2 | * Copyright (C) 2004, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | #include "gzguts.h" 7 | 8 | /* gzclose() is in a separate file so that it is linked in only if it is used. 9 | That way the other gzclose functions can be used instead to avoid linking in 10 | unneeded compression or decompression routines. */ 11 | int ZEXPORT gzclose(file) 12 | gzFile file; 13 | { 14 | #ifndef NO_GZCOMPRESS 15 | gz_statep state; 16 | 17 | if (file == NULL) 18 | return Z_STREAM_ERROR; 19 | state = (gz_statep)file; 20 | 21 | return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file); 22 | #else 23 | return gzclose_r(file); 24 | #endif 25 | } 26 | -------------------------------------------------------------------------------- /minipython/Modules/zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003, 2010 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /minipython/Modules/zlib/zlib.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | sharedlibdir=@sharedlibdir@ 5 | includedir=@includedir@ 6 | 7 | Name: zlib 8 | Description: zlib compression library 9 | Version: @VERSION@ 10 | 11 | Requires: 12 | Libs: -L${libdir} -L${sharedlibdir} -lz 13 | Cflags: -I${includedir} 14 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/pythonw.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {3a2896a8-ada3-40ef-bcbc-12c980fe0290} 6 | 7 | 8 | {ff271724-13bd-4740-bd75-9b1db2e1b395} 9 | 10 | 11 | 12 | 13 | Resource Files 14 | 15 | 16 | 17 | 18 | Source Files 19 | 20 | 21 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /minipython/PC/VS8.0/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /minipython/PC/WinMain.c: -------------------------------------------------------------------------------- 1 | /* Minimal main program -- everything is loaded from the library. */ 2 | 3 | #include "Python.h" 4 | 5 | #define WIN32_LEAN_AND_MEAN 6 | #include 7 | 8 | int WINAPI WinMain( 9 | HINSTANCE hInstance, /* handle to current instance */ 10 | HINSTANCE hPrevInstance, /* handle to previous instance */ 11 | LPSTR lpCmdLine, /* pointer to command line */ 12 | int nCmdShow /* show state of window */ 13 | ) 14 | { 15 | return Py_Main(__argc, __argv); 16 | } 17 | -------------------------------------------------------------------------------- /minipython/PC/icons.rc: -------------------------------------------------------------------------------- 1 | 101 ICON "py.ico" 2 | 102 ICON "pyc.ico" 3 | 103 ICON "pycon.ico" 4 | 5 | -------------------------------------------------------------------------------- /minipython/PC/py.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/PC/py.ico -------------------------------------------------------------------------------- /minipython/PC/pyc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/PC/pyc.ico -------------------------------------------------------------------------------- /minipython/PC/pycon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/PC/pycon.ico -------------------------------------------------------------------------------- /minipython/PC/python_exe.rc: -------------------------------------------------------------------------------- 1 | 1 ICON DISCARDABLE "pycon.ico" 2 | -------------------------------------------------------------------------------- /minipython/PC/python_nt.aps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/PC/python_nt.aps -------------------------------------------------------------------------------- /minipython/PC/python_nt.h: -------------------------------------------------------------------------------- 1 | /* This file created by make_versioninfo.exe */ 2 | #define FIELD3 2150 3 | #define MS_DLL_ID "2.7" 4 | #ifndef _DEBUG 5 | #define PYTHON_DLL_NAME "python27.dll" 6 | #else 7 | #define PYTHON_DLL_NAME "python27_d.dll" 8 | #endif 9 | -------------------------------------------------------------------------------- /minipython/PC/python_nt.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/minipython/PC/python_nt.rc -------------------------------------------------------------------------------- /minipython/PC/python_nt_d.h: -------------------------------------------------------------------------------- 1 | /* This file created by make_versioninfo.exe */ 2 | #define FIELD3 2150 3 | #define MS_DLL_ID "2.7" 4 | #ifndef _DEBUG 5 | #define PYTHON_DLL_NAME "python27.dll" 6 | #else 7 | #define PYTHON_DLL_NAME "python27_d.dll" 8 | #endif 9 | -------------------------------------------------------------------------------- /minipython/PC/pythonnt_rc.h: -------------------------------------------------------------------------------- 1 | /* This file created by make_versioninfo.exe */ 2 | #define FIELD3 2150 3 | #define MS_DLL_ID "2.7" 4 | #ifndef _DEBUG 5 | #define PYTHON_DLL_NAME "python27.dll" 6 | #else 7 | #define PYTHON_DLL_NAME "python27_d.dll" 8 | #endif 9 | -------------------------------------------------------------------------------- /minipython/PC/pythonnt_rc_d.h: -------------------------------------------------------------------------------- 1 | /* This file created by make_versioninfo.exe */ 2 | #define FIELD3 2150 3 | #define MS_DLL_ID "2.7" 4 | #ifndef _DEBUG 5 | #define PYTHON_DLL_NAME "python27.dll" 6 | #else 7 | #define PYTHON_DLL_NAME "python27_d.dll" 8 | #endif 9 | -------------------------------------------------------------------------------- /minipython/Parser/tokenizer_pgen.c: -------------------------------------------------------------------------------- 1 | #define PGEN 2 | #include "tokenizer.c" 3 | -------------------------------------------------------------------------------- /minipython/Python/formatter_string.c: -------------------------------------------------------------------------------- 1 | /***********************************************************************/ 2 | /* Implements the string (as opposed to unicode) version of the 3 | built-in formatters for string, int, float. That is, the versions 4 | of int.__format__, etc., that take and return string objects */ 5 | 6 | #include "Python.h" 7 | #include "../Objects/stringlib/stringdefs.h" 8 | 9 | #define FORMAT_STRING _PyBytes_FormatAdvanced 10 | #define FORMAT_LONG _PyLong_FormatAdvanced 11 | #define FORMAT_INT _PyInt_FormatAdvanced 12 | #define FORMAT_FLOAT _PyFloat_FormatAdvanced 13 | #ifndef WITHOUT_COMPLEX 14 | #define FORMAT_COMPLEX _PyComplex_FormatAdvanced 15 | #endif 16 | 17 | #include "../Objects/stringlib/formatter.h" 18 | -------------------------------------------------------------------------------- /minipython/Python/formatter_unicode.c: -------------------------------------------------------------------------------- 1 | /* Implements the unicode (as opposed to string) version of the 2 | built-in formatter for unicode. That is, unicode.__format__(). */ 3 | 4 | #include "Python.h" 5 | 6 | #ifdef Py_USING_UNICODE 7 | 8 | #include "../Objects/stringlib/unicodedefs.h" 9 | 10 | #define FORMAT_STRING _PyUnicode_FormatAdvanced 11 | 12 | /* don't define FORMAT_LONG, FORMAT_FLOAT, and FORMAT_COMPLEX, since 13 | we can live with only the string versions of those. The builtin 14 | format() will convert them to unicode. */ 15 | 16 | #include "../Objects/stringlib/formatter.h" 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /minipython/Python/getcompiler.c: -------------------------------------------------------------------------------- 1 | 2 | /* Return the compiler identification, if possible. */ 3 | 4 | #include "Python.h" 5 | 6 | #ifndef COMPILER 7 | 8 | #ifdef __GNUC__ 9 | #define COMPILER "\n[GCC " __VERSION__ "]" 10 | #endif 11 | 12 | #endif /* !COMPILER */ 13 | 14 | #ifndef COMPILER 15 | 16 | #ifdef __cplusplus 17 | #define COMPILER "[C++]" 18 | #else 19 | #define COMPILER "[C]" 20 | #endif 21 | 22 | #endif /* !COMPILER */ 23 | 24 | const char * 25 | Py_GetCompiler(void) 26 | { 27 | return COMPILER; 28 | } 29 | -------------------------------------------------------------------------------- /minipython/Python/getcopyright.c: -------------------------------------------------------------------------------- 1 | /* Return the copyright string. This is updated manually. */ 2 | 3 | #include "Python.h" 4 | 5 | static char cprt[] = 6 | "\ 7 | Copyright (c) 2001-2020 Python Software Foundation.\n\ 8 | All Rights Reserved.\n\ 9 | \n\ 10 | Copyright (c) 2000 BeOpen.com.\n\ 11 | All Rights Reserved.\n\ 12 | \n\ 13 | Copyright (c) 1995-2001 Corporation for National Research Initiatives.\n\ 14 | All Rights Reserved.\n\ 15 | \n\ 16 | Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\n\ 17 | All Rights Reserved."; 18 | 19 | const char * 20 | Py_GetCopyright(void) 21 | { 22 | return cprt; 23 | } 24 | -------------------------------------------------------------------------------- /minipython/Python/getplatform.c: -------------------------------------------------------------------------------- 1 | 2 | #include "Python.h" 3 | 4 | #ifndef PLATFORM 5 | #define PLATFORM "unknown" 6 | #endif 7 | 8 | const char * 9 | Py_GetPlatform(void) 10 | { 11 | return PLATFORM; 12 | } 13 | -------------------------------------------------------------------------------- /minipython/Python/getversion.c: -------------------------------------------------------------------------------- 1 | 2 | /* Return the full version string. */ 3 | 4 | #include "Python.h" 5 | 6 | #include "patchlevel.h" 7 | 8 | const char * 9 | Py_GetVersion(void) 10 | { 11 | static char version[250]; 12 | PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s", 13 | PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler()); 14 | return version; 15 | } 16 | -------------------------------------------------------------------------------- /minipython/Python/pyfpe.c: -------------------------------------------------------------------------------- 1 | #include "pyconfig.h" 2 | #include "pyfpe.h" 3 | /* 4 | * The signal handler for SIGFPE is actually declared in an external 5 | * module fpectl, or as preferred by the user. These variable 6 | * definitions are required in order to compile Python without 7 | * getting missing externals, but to actually handle SIGFPE requires 8 | * defining a handler and enabling generation of SIGFPE. 9 | */ 10 | 11 | #ifdef WANT_SIGFPE_HANDLER 12 | jmp_buf PyFPE_jbuf; 13 | int PyFPE_counter = 0; 14 | #endif 15 | 16 | /* Have this outside the above #ifdef, since some picky ANSI compilers issue a 17 | warning when compiling an empty file. */ 18 | 19 | double 20 | PyFPE_dummy(void *dummy) 21 | { 22 | return 1.0; 23 | } 24 | -------------------------------------------------------------------------------- /minipython/Python/pystrcmp.c: -------------------------------------------------------------------------------- 1 | /* Cross platform case insensitive string compare functions 2 | */ 3 | 4 | #include "Python.h" 5 | 6 | int 7 | PyOS_mystrnicmp(const char *s1, const char *s2, Py_ssize_t size) 8 | { 9 | if (size == 0) 10 | return 0; 11 | while ((--size > 0) && 12 | (tolower((unsigned)*s1) == tolower((unsigned)*s2))) { 13 | if (!*s1++ || !*s2++) 14 | break; 15 | } 16 | return tolower((unsigned)*s1) - tolower((unsigned)*s2); 17 | } 18 | 19 | int 20 | PyOS_mystricmp(const char *s1, const char *s2) 21 | { 22 | while (*s1 && (tolower((unsigned)*s1++) == tolower((unsigned)*s2++))) { 23 | ; 24 | } 25 | return (tolower((unsigned)*s1) - tolower((unsigned)*s2)); 26 | } 27 | -------------------------------------------------------------------------------- /minipython/README.txt: -------------------------------------------------------------------------------- 1 | Minipython is based on http://www.adintr.com/article/blog/281(Python 2.7.2). I updated it to 2.7.15. 2 | 3 | Based on the description from the author: 4 | 1. 去掉 python 解释器对 Python 源代码的标准库的依赖. 5 | 2. 去掉了以下的一些模块: cPickle, _io, datetime, _random, cStringIO, _lsprof, _collections, _struct, _sre, time, _locale, _headq, _functools, _weakref, itertools 6 | 3. 去掉了这两个内建的对象: bytearray, memoryobject 7 | 8 | English: 9 | 1. Removed the dependency between Python interpreter and Python source code standard library. 10 | 2. Removed internal modules: cPickle, _io, datetime, _random, cStringIO, _lsprof, _collections, _struct, _sre, time, _locale, _headq, _functools, _weakref and itertools 11 | 3. Removed internal objects: bytearray, memoryobject 12 | -------------------------------------------------------------------------------- /msw/vc10/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc10/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc10/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc10/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc10/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc12/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc12/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc12/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc12/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc12/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc14.1/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14.1/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14.1/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14.1/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14.1/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc14.2/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14.2/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14.2/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14.2/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14.2/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc14/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc14/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc14/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc16/MadEdit.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /msw/vc16/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc16/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc16/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc16/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc16/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc17/MadEdit.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /msw/vc17/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc17/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc17/libhunspell.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /msw/vc17/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc17/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc17/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc71/build_debug.bat: -------------------------------------------------------------------------------- 1 | devenv MadEdit.sln /build "Unicode Debug" -------------------------------------------------------------------------------- /msw/vc71/build_release.bat: -------------------------------------------------------------------------------- 1 | devenv MadEdit.sln /build "Unicode Release" -------------------------------------------------------------------------------- /msw/vc80/MadEdit.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/msw/vc80/MadEdit.vcproj -------------------------------------------------------------------------------- /msw/vc80/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc80/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc80/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc80/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc80/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /msw/vc90/MadEdit.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/msw/vc90/MadEdit.vcproj -------------------------------------------------------------------------------- /msw/vc90/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python_d.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | _DEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc90/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc90/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | $(OutDir)kill_python.exe 5 | 6 | 7 | <_ProjectFileVersion>10.0.30319.1 8 | 9 | 10 | 11 | NDEBUG;%(PreprocessorDefinitions) 12 | 13 | 14 | 15 | 16 | $(KillPythonExe) 17 | 18 | 19 | -------------------------------------------------------------------------------- /msw/vc90/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /msw/vc90/x64.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 9 | 14 | 18 | 22 | 23 | -------------------------------------------------------------------------------- /packaging/debian/changelog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/packaging/debian/changelog -------------------------------------------------------------------------------- /packaging/debian/control: -------------------------------------------------------------------------------- 1 | Source: madedit-mod 2 | Section: editors 3 | Priority: optional 4 | Maintainer: Minggang Li 5 | Build-Depends: debhelper (>= 4.0.0) 6 | Standards-Version: 3.6.2 7 | 8 | Package: madedit-mod 9 | Architecture: any 10 | Depends: ${shlibs:Depends}, ${misc:Depends} 11 | HomePage: http://sourceforge.net/projects/madedit-mod/ 12 | Description: GTK+ based text/hex editor 13 | MadEdit-Mod is a cross-platform Text/Hex Editor written in C++ & wxWidgets. 14 | MadEdit-Mod supports many useful functions, e.g. SyntaxHighlightings, 15 | WordWrap, Encodings, Column/Hex Modes. 16 | 17 | -------------------------------------------------------------------------------- /packaging/debian/menu: -------------------------------------------------------------------------------- 1 | ?package(madedit-mod): \ 2 | icon="/usr/share/pixmaps/madedit.xpm" \ 3 | title="MadEdit-Mod" \ 4 | longtitle="MadEdit-Mod, GTK+2/3 based Text/Hex editor" \ 5 | needs="x11" \ 6 | section="Apps/Editors" \ 7 | command="/usr/bin/madedit" 8 | -------------------------------------------------------------------------------- /packaging/debian/mkdeb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export LC_ALL=C 4 | 5 | TOP_DIR="../.." 6 | DEBIAN_DIR="$TOP_DIR/debian" 7 | DEBSOURCE_DIR="$DEBIAN_DIR/source" 8 | mkdir -p "$DEBSOURCE_DIR" 9 | cat ./changelog > "$DEBIAN_DIR/changelog" 10 | cp control copyright menu rules "$DEBIAN_DIR" 11 | echo '1.0' > "$DEBSOURCE_DIR/format" 12 | echo 8 > "$DEBIAN_DIR/compat" 13 | cd "$TOP_DIR" 14 | sh autogen.sh 15 | touch aclocal.m4 configure Makefile.in config.h.in 16 | chmod +x configure 17 | dpkg-buildpackage -------------------------------------------------------------------------------- /packaging/freebsd/mkpkg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ( 4 | cd /usr/ports/editors/ 5 | [ -e madedit-mod_bak ] && sudo rm -rf madedit-mod_bak 6 | [ -e madedit-mod ] && sudo mv -f madedit-mod madedit-mod_bak 7 | sudo mkdir madedit-mod 8 | ) 9 | 10 | sudo cp -f Makefile pkg-descr /usr/ports/editors/madedit-mod/ 11 | 12 | sudo sh -c "sed -e 's#share/doc/madedit-mod#%%DOCSDIR%%#' \ 13 | -e 's#share/madedit-mod#%%DATADIR%%#' \ 14 | -e 's/@dirrm /@dirrmtry /' pkg-plist_old > \ 15 | /usr/ports/editors/madedit-mod/pkg-plist" 16 | 17 | cd /usr/ports/editors/madedit-mod 18 | sudo make makesum 19 | sudo make package -------------------------------------------------------------------------------- /packaging/freebsd/pkg-comment: -------------------------------------------------------------------------------- 1 | A GTK+ based text and hex editor -------------------------------------------------------------------------------- /packaging/freebsd/pkg-descr: -------------------------------------------------------------------------------- 1 | MadEdit-Mod is a cross-platform Text/Hex Editor written in C++ & wxWidgets. 2 | MadEdit-Mod supports many useful functions, e.g. SyntaxHighlightings, 3 | WordWrap, Encodings, Column/Hex Modes. 4 | HomePage: https://github.com/LiMinggang/madedit-mod -------------------------------------------------------------------------------- /packaging/freebsd/pkgcreate.txt: -------------------------------------------------------------------------------- 1 | 2 | # make; make install 3 | pkg_create -p /usr/local -c pkg-comment -d pkg-descr -f pkg-plist madedit-mod-{version} 4 | -------------------------------------------------------------------------------- /packaging/rpm/static_spec.sed: -------------------------------------------------------------------------------- 1 | /%configure/s##& --with-wx-config=${HOME}/wxWidgets-3.2.2.1/release/bin/wx-config LIBS="${HOME}/wxWidgets-3.2.2.1/release/lib/libwx_gtk2u_aui-3.2.a ${HOME}/wxWidgets-3.2.2.1/lib/libwx_gtk3u_core-3.2.a ${HOME}/wxWidgets-3.2.2.1/lib/libwx_baseu-3.2.a -lgtk-x11-3.0 -lgthread-2.0 -lX11" glib_gtk3_LIBS="-lm" WX_LIBS="-lm" --with-boost=${HOME}/boost_1_82_0# 2 | /^BuildRequires:/s#^.*$#BuildRequires: gtk3-devel# 3 | /^Requires:/s#^.*$#Requires: gtk3# -------------------------------------------------------------------------------- /po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /po/stamp-po: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /po/xgettext_join.bat: -------------------------------------------------------------------------------- 1 | "C:\Program Files\poEdit\bin\xgettext.exe" -f src.list -o madedit.pot -j --omit-header -LC -k_ -------------------------------------------------------------------------------- /python/.ci/faber: -------------------------------------------------------------------------------- 1 | from faber.tools.python import python 2 | 3 | p = python(command='$PYTHON') 4 | -------------------------------------------------------------------------------- /python/.gitignore: -------------------------------------------------------------------------------- 1 | bin.SCons 2 | *.pyc 3 | *~ 4 | \#*\# -------------------------------------------------------------------------------- /python/doc/html/images/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/alert.png -------------------------------------------------------------------------------- /python/doc/html/images/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/blank.png -------------------------------------------------------------------------------- /python/doc/html/images/boost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/boost.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/1.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /python/doc/html/images/callouts/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/10.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/11.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/12.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/13.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/14.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/15.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/2.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/3.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/4.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/4.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /python/doc/html/images/callouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/5.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/6.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/7.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/7.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /python/doc/html/images/callouts/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/8.png -------------------------------------------------------------------------------- /python/doc/html/images/callouts/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/callouts/9.png -------------------------------------------------------------------------------- /python/doc/html/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/caution.png -------------------------------------------------------------------------------- /python/doc/html/images/draft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/draft.png -------------------------------------------------------------------------------- /python/doc/html/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/home.png -------------------------------------------------------------------------------- /python/doc/html/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/important.png -------------------------------------------------------------------------------- /python/doc/html/images/jam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/jam.png -------------------------------------------------------------------------------- /python/doc/html/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/next.png -------------------------------------------------------------------------------- /python/doc/html/images/next_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/next_disabled.png -------------------------------------------------------------------------------- /python/doc/html/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/note.png -------------------------------------------------------------------------------- /python/doc/html/images/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/prev.png -------------------------------------------------------------------------------- /python/doc/html/images/prev_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/prev_disabled.png -------------------------------------------------------------------------------- /python/doc/html/images/python.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/python.png -------------------------------------------------------------------------------- /python/doc/html/images/python_cpp_mix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/python_cpp_mix.png -------------------------------------------------------------------------------- /python/doc/html/images/smiley.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/smiley.png -------------------------------------------------------------------------------- /python/doc/html/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/tip.png -------------------------------------------------------------------------------- /python/doc/html/images/toc-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/toc-blank.png -------------------------------------------------------------------------------- /python/doc/html/images/toc-minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/toc-minus.png -------------------------------------------------------------------------------- /python/doc/html/images/toc-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/toc-plus.png -------------------------------------------------------------------------------- /python/doc/html/images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/up.png -------------------------------------------------------------------------------- /python/doc/html/images/up_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/up_disabled.png -------------------------------------------------------------------------------- /python/doc/html/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/html/images/warning.png -------------------------------------------------------------------------------- /python/doc/images/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/alert.png -------------------------------------------------------------------------------- /python/doc/images/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/blank.png -------------------------------------------------------------------------------- /python/doc/images/boost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/boost.png -------------------------------------------------------------------------------- /python/doc/images/bpl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/bpl.png -------------------------------------------------------------------------------- /python/doc/images/callouts/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/1.png -------------------------------------------------------------------------------- /python/doc/images/callouts/1.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /python/doc/images/callouts/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/10.png -------------------------------------------------------------------------------- /python/doc/images/callouts/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/11.png -------------------------------------------------------------------------------- /python/doc/images/callouts/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/12.png -------------------------------------------------------------------------------- /python/doc/images/callouts/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/13.png -------------------------------------------------------------------------------- /python/doc/images/callouts/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/14.png -------------------------------------------------------------------------------- /python/doc/images/callouts/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/15.png -------------------------------------------------------------------------------- /python/doc/images/callouts/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/2.png -------------------------------------------------------------------------------- /python/doc/images/callouts/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/3.png -------------------------------------------------------------------------------- /python/doc/images/callouts/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/4.png -------------------------------------------------------------------------------- /python/doc/images/callouts/4.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /python/doc/images/callouts/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/5.png -------------------------------------------------------------------------------- /python/doc/images/callouts/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/6.png -------------------------------------------------------------------------------- /python/doc/images/callouts/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/7.png -------------------------------------------------------------------------------- /python/doc/images/callouts/7.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | ]> 7 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /python/doc/images/callouts/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/8.png -------------------------------------------------------------------------------- /python/doc/images/callouts/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/callouts/9.png -------------------------------------------------------------------------------- /python/doc/images/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/caution.png -------------------------------------------------------------------------------- /python/doc/images/draft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/draft.png -------------------------------------------------------------------------------- /python/doc/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/home.png -------------------------------------------------------------------------------- /python/doc/images/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/important.png -------------------------------------------------------------------------------- /python/doc/images/jam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/jam.png -------------------------------------------------------------------------------- /python/doc/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/next.png -------------------------------------------------------------------------------- /python/doc/images/next_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/next_disabled.png -------------------------------------------------------------------------------- /python/doc/images/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/note.png -------------------------------------------------------------------------------- /python/doc/images/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/prev.png -------------------------------------------------------------------------------- /python/doc/images/prev_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/prev_disabled.png -------------------------------------------------------------------------------- /python/doc/images/smiley.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/smiley.png -------------------------------------------------------------------------------- /python/doc/images/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/tip.png -------------------------------------------------------------------------------- /python/doc/images/toc-blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/toc-blank.png -------------------------------------------------------------------------------- /python/doc/images/toc-minus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/toc-minus.png -------------------------------------------------------------------------------- /python/doc/images/toc-plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/toc-plus.png -------------------------------------------------------------------------------- /python/doc/images/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/up.png -------------------------------------------------------------------------------- /python/doc/images/up_disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/up_disabled.png -------------------------------------------------------------------------------- /python/doc/images/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/images/warning.png -------------------------------------------------------------------------------- /python/doc/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/index.html -------------------------------------------------------------------------------- /python/doc/index.qbk: -------------------------------------------------------------------------------- 1 | [library Boost.Python 2 | [quickbook 1.3] 3 | [authors [Abrahams, David], [Seefeld, Stefan]] 4 | [copyright 2002 2003 2004 2005 2015 David Abrahams, Stefan Seefeld] 5 | [category inter-language support] 6 | [id python] 7 | [purpose 8 | Reflects C++ classes and functions into Python 9 | ] 10 | [license 11 | Distributed under the Boost Software License, Version 1.0. 12 | (See accompanying file LICENSE_1_0.txt or copy at 13 | [@http://www.boost.org/LICENSE_1_0.txt]) 14 | ] 15 | ] 16 | 17 | [/ QuickBook Document version 1.3 ] 18 | 19 | [include preface.qbk] 20 | -------------------------------------------------------------------------------- /python/doc/numpy/_static/boost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/boost.png -------------------------------------------------------------------------------- /python/doc/numpy/_static/bpl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/bpl.png -------------------------------------------------------------------------------- /python/doc/numpy/_static/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/home.png -------------------------------------------------------------------------------- /python/doc/numpy/_static/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/next.png -------------------------------------------------------------------------------- /python/doc/numpy/_static/prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/prev.png -------------------------------------------------------------------------------- /python/doc/numpy/_static/style.css: -------------------------------------------------------------------------------- 1 | @import url(boost.css); 2 | 3 | .header h1 a 4 | { 5 | color: #00507f; 6 | font-size: 200%; 7 | font-style: italic; 8 | } 9 | .header h3 { margin: 1px;} 10 | #contents 11 | { 12 | /* border-bottom: solid thin black;*/ 13 | } 14 | 15 | .highlight 16 | { 17 | border: 1px solid #dcdcdc; 18 | background-color: inherit; 19 | padding: 0 1em; 20 | margin: 0 5em; 21 | } 22 | #searchbox 23 | { 24 | float: right; 25 | width: auto; 26 | margin: 0 2em; 27 | } 28 | 29 | .admonition-title { font-weight: bold;} 30 | .toctree-wrapper 31 | { 32 | border: 1px solid #dcdcdc; 33 | padding: 1em; 34 | margin: 0 2em; 35 | } 36 | .toctree-wrapper .caption, 37 | .toctree-wrapper .topic-title { font-weight: bold;} 38 | 39 | -------------------------------------------------------------------------------- /python/doc/numpy/_static/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/doc/numpy/_static/up.png -------------------------------------------------------------------------------- /python/doc/numpy/index.rst: -------------------------------------------------------------------------------- 1 | .. Boost.Python NumPy extension documentation master file, created by 2 | sphinx-quickstart on Thu Oct 27 09:04:58 2011. 3 | You can adapt this file completely to your liking, but it should at least 4 | contain the root `toctree` directive. 5 | 6 | Welcome to the documentation of the Boost.Python NumPy extension! 7 | ================================================================= 8 | 9 | .. toctree:: 10 | :maxdepth: 2 11 | 12 | Tutorial 13 | Reference 14 | 15 | -------------------------------------------------------------------------------- /python/doc/numpy/reference/index.rst: -------------------------------------------------------------------------------- 1 | Boost.Python NumPy extension Reference 2 | ====================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | dtype 8 | ndarray 9 | unary_ufunc 10 | binary_ufunc 11 | multi_iter 12 | 13 | -------------------------------------------------------------------------------- /python/doc/numpy/tutorial/index.rst: -------------------------------------------------------------------------------- 1 | Boost.Python NumPy extension Tutorial 2 | ===================================== 3 | 4 | .. toctree:: 5 | :maxdepth: 2 6 | 7 | simple 8 | dtype 9 | ndarray 10 | ufunc 11 | fromdata 12 | 13 | -------------------------------------------------------------------------------- /python/doc/reference.qbk: -------------------------------------------------------------------------------- 1 | [book Boost.Python Reference Manual 2 | [quickbook 1.6] 3 | [authors [Abrahams, David], [Seefeld, Stefan]] 4 | [copyright 2002 2003 2004 2005 2015 David Abrahams, Stefan Seefeld] 5 | [id reference] 6 | [license 7 | Distributed under the Boost Software License, Version 1.0. 8 | (See accompanying file LICENSE_1_0.txt or copy at 9 | [@http://www.boost.org/LICENSE_1_0.txt] 10 | ] 11 | ] 12 | 13 | [include reference/concepts.qbk] 14 | [include reference/components.qbk] 15 | [include reference/objects.qbk] 16 | [include reference/functions.qbk] 17 | [include reference/conversion.qbk] 18 | [include reference/embedding.qbk] 19 | [include reference/utility.qbk] 20 | [include reference/topics.qbk] 21 | [include glossary.qbk] 22 | -------------------------------------------------------------------------------- /python/doc/reference/components.qbk: -------------------------------------------------------------------------------- 1 | [chapter High Level Components 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include class.qbk] 6 | [include def.qbk] 7 | [include def_visitor.qbk] 8 | [include docstring_options.qbk] 9 | [include enum.qbk] 10 | [include errors.qbk] 11 | [include exception_translator.qbk] 12 | [include init.qbk] 13 | [include iterator.qbk] 14 | [include module.qbk] 15 | [include operators.qbk] 16 | [include scope.qbk] 17 | [include stl_iterator.qbk] 18 | [include wrapper.qbk] 19 | -------------------------------------------------------------------------------- /python/doc/reference/conversion.qbk: -------------------------------------------------------------------------------- 1 | [chapter To/From Python Type Conversion 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include extract.qbk] 6 | [include implicit.qbk] 7 | [include lvalue_from_pytype.qbk] 8 | [include opaque_pointer_converter.qbk] 9 | [include to_python_converter.qbk] 10 | [include register_ptr_to_python.qbk] 11 | -------------------------------------------------------------------------------- /python/doc/reference/embedding.qbk: -------------------------------------------------------------------------------- 1 | [chapter Embedding 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include exec.qbk] 6 | [include import.qbk] 7 | -------------------------------------------------------------------------------- /python/doc/reference/objects.qbk: -------------------------------------------------------------------------------- 1 | [chapter Object Wrappers 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include dict.qbk] 6 | [include list.qbk] 7 | [include long.qbk] 8 | [include object.qbk] 9 | [include str.qbk] 10 | [include slice.qbk] 11 | [include tuple.qbk] 12 | -------------------------------------------------------------------------------- /python/doc/reference/topics.qbk: -------------------------------------------------------------------------------- 1 | [chapter Topics 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include calling.qbk] 6 | [include pickle.qbk] 7 | [include indexing.qbk] 8 | -------------------------------------------------------------------------------- /python/doc/reference/utility.qbk: -------------------------------------------------------------------------------- 1 | [chapter Utility and Infrastructure 2 | [quickbook 1.7] 3 | ] 4 | 5 | [include has_back_reference.qbk] 6 | [include instance_holder.qbk] 7 | [include pointee.qbk] 8 | [include handle.qbk] 9 | [include type_id.qbk] 10 | [include ssize_t.qbk] 11 | -------------------------------------------------------------------------------- /python/doc/release_notes.qbk: -------------------------------------------------------------------------------- 1 | [chapter Release Notes 2 | [quickbook 1.7] 3 | [id rn] 4 | ] 5 | 6 | [section Version 1.67] 7 | 8 | * The Boost.Python library names now contain the Python version suffix. 9 | A variant compiled with Python 2.7 will thus produce library names 10 | `boost_python27` and `boost_numpy27`, etc., making it possible to host 11 | variants for multiple Python versions next to each other. -------------------------------------------------------------------------------- /python/example/README.md: -------------------------------------------------------------------------------- 1 | ![logo](https://raw.githubusercontent.com/boostorg/python/develop/doc/images/bpl.png) 2 | 3 | # Examples 4 | 5 | This directory contains various examples using Boost.Python. 6 | You may compile these using the `bjam` command either in this directory 7 | or in any of the subdirectories. 8 | You may need to adjust the paths in the Jamroot file if Boost.Python 9 | is not installed in a default location. 10 | See http://boostorg.github.io/python/doc/html/building/no_install_quickstart.html 11 | for details. 12 | -------------------------------------------------------------------------------- /python/example/quickstart/script.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | # Copyright Stefan Seefeld 2006. Distributed under the Boost 3 | # Software License, Version 1.0. (See accompanying 4 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | print('Hello World !') 7 | number = 42 8 | -------------------------------------------------------------------------------- /python/example/tutorial/Jamfile: -------------------------------------------------------------------------------- 1 | # Copyright Stefan Seefeld 2016. 2 | # Distributed under the Boost Software License, Version 1.0. 3 | # (See accompanying file LICENSE_1_0.txt or copy at 4 | # http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | import python ; 7 | 8 | project tutorial 9 | : requirements 10 | . 11 | ; 12 | 13 | python-extension hello_ext : hello.cpp ; 14 | 15 | run-test hello : hello_ext hello.py ; 16 | 17 | alias test : hello ; 18 | explicit test ; 19 | 20 | -------------------------------------------------------------------------------- /python/example/tutorial/hello.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Joel de Guzman 2002-2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt 3 | // or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | // Hello World Example from the tutorial 5 | // [Joel de Guzman 10/9/2002] 6 | 7 | #include 8 | #include 9 | 10 | char const* greet() 11 | { 12 | return "hello, world"; 13 | } 14 | 15 | BOOST_PYTHON_MODULE(hello_ext) 16 | { 17 | using namespace boost::python; 18 | def("greet", greet); 19 | } 20 | 21 | -------------------------------------------------------------------------------- /python/example/tutorial/hello.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env python 2 | # Copyright Joel de Guzman 2002-2007. Distributed under the Boost 3 | # Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt 4 | # or copy at http://www.boost.org/LICENSE_1_0.txt) 5 | # Hello World Example from the tutorial 6 | 7 | import hello_ext 8 | print(hello_ext.greet()) 9 | -------------------------------------------------------------------------------- /python/include/boost/python/borrowed.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef BORROWED_DWA2002614_HPP 6 | # define BORROWED_DWA2002614_HPP 7 | 8 | # include 9 | # include 10 | 11 | namespace boost { namespace python { 12 | 13 | template 14 | inline python::detail::borrowed* borrowed(T* p) 15 | { 16 | return (detail::borrowed*)p; 17 | } 18 | 19 | }} // namespace boost::python 20 | 21 | #endif // BORROWED_DWA2002614_HPP 22 | -------------------------------------------------------------------------------- /python/include/boost/python/converter/arg_to_python_base.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef ARG_TO_PYTHON_BASE_DWA200237_HPP 6 | # define ARG_TO_PYTHON_BASE_DWA200237_HPP 7 | # include 8 | 9 | namespace boost { namespace python { namespace converter { 10 | 11 | struct registration; 12 | 13 | namespace detail 14 | { 15 | struct BOOST_PYTHON_DECL arg_to_python_base 16 | : handle<> 17 | { 18 | arg_to_python_base(void const volatile* source, registration const&); 19 | }; 20 | } 21 | 22 | }}} // namespace boost::python::converter 23 | 24 | #endif // ARG_TO_PYTHON_BASE_DWA200237_HPP 25 | -------------------------------------------------------------------------------- /python/include/boost/python/converter/constructor_function.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef CONSTRUCTOR_FUNCTION_DWA200278_HPP 6 | # define CONSTRUCTOR_FUNCTION_DWA200278_HPP 7 | 8 | namespace boost { namespace python { namespace converter { 9 | 10 | // Declares the type of functions used to construct C++ objects for 11 | // rvalue from_python conversions. 12 | struct rvalue_from_python_stage1_data; 13 | typedef void (*constructor_function)(PyObject* source, rvalue_from_python_stage1_data*); 14 | 15 | }}} // namespace boost::python::converter 16 | 17 | #endif // CONSTRUCTOR_FUNCTION_DWA200278_HPP 18 | -------------------------------------------------------------------------------- /python/include/boost/python/converter/context_result_converter.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef CONTEXT_RESULT_CONVERTER_DWA2003917_HPP 6 | # define CONTEXT_RESULT_CONVERTER_DWA2003917_HPP 7 | 8 | namespace boost { namespace python { namespace converter { 9 | 10 | // A ResultConverter base class used to indicate that this result 11 | // converter should be constructed with the original Python argument 12 | // list. 13 | struct context_result_converter {}; 14 | 15 | }}} // namespace boost::python::converter 16 | 17 | #endif // CONTEXT_RESULT_CONVERTER_DWA2003917_HPP 18 | -------------------------------------------------------------------------------- /python/include/boost/python/converter/convertible_function.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef CONVERTIBLE_FUNCTION_DWA200278_HPP 6 | # define CONVERTIBLE_FUNCTION_DWA200278_HPP 7 | 8 | namespace boost { namespace python { namespace converter { 9 | 10 | typedef void* (*convertible_function)(PyObject*); 11 | 12 | }}} // namespace boost::python::converter 13 | 14 | #endif // CONVERTIBLE_FUNCTION_DWA200278_HPP 15 | -------------------------------------------------------------------------------- /python/include/boost/python/converter/shared_ptr_deleter.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef SHARED_PTR_DELETER_DWA2002121_HPP 6 | # define SHARED_PTR_DELETER_DWA2002121_HPP 7 | 8 | namespace boost { namespace python { namespace converter { 9 | 10 | struct BOOST_PYTHON_DECL shared_ptr_deleter 11 | { 12 | shared_ptr_deleter(handle<> owner); 13 | ~shared_ptr_deleter(); 14 | 15 | void operator()(void const*); 16 | 17 | handle<> owner; 18 | }; 19 | 20 | }}} // namespace boost::python::converter 21 | 22 | #endif // SHARED_PTR_DELETER_DWA2002121_HPP 23 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/api_placeholder.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | // DEPRECATED HEADER (2006 Jan 12) 7 | // Provided only for backward compatibility. 8 | // The boost::python::len() function is now defined in object.hpp. 9 | 10 | #ifndef BOOST_PYTHON_API_PLACE_HOLDER_HPP 11 | #define BOOST_PYTHON_API_PLACE_HOLDER_HPP 12 | 13 | #include 14 | 15 | #endif // BOOST_PYTHON_API_PLACE_HOLDER_HPP 16 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/copy_ctor_mutates_rhs.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef COPY_CTOR_MUTATES_RHS_DWA2003219_HPP 6 | # define COPY_CTOR_MUTATES_RHS_DWA2003219_HPP 7 | 8 | #include 9 | #include 10 | 11 | namespace boost { namespace python { namespace detail { 12 | 13 | template 14 | struct copy_ctor_mutates_rhs 15 | : is_auto_ptr 16 | { 17 | }; 18 | 19 | }}} // namespace boost::python::detail 20 | 21 | #endif // COPY_CTOR_MUTATES_RHS_DWA2003219_HPP 22 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/dealloc.hpp: -------------------------------------------------------------------------------- 1 | // Copyright Gottfried Ganßauge 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | # ifndef BOOST_PYTHON_DETAIL_DEALLOC_HPP_ 7 | # define BOOST_PYTHON_DETAIL_DEALLOC_HPP_ 8 | namespace boost { namespace python { namespace detail { 9 | extern "C" 10 | { 11 | inline void dealloc(PyObject* self) 12 | { 13 | PyObject_Del(self); 14 | } 15 | } 16 | }}} // namespace boost::python::detail 17 | # endif // BOOST_PYTHON_DETAIL_DEALLOC_HPP_ 18 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/decref_guard.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef DECREF_GUARD_DWA20021220_HPP 6 | # define DECREF_GUARD_DWA20021220_HPP 7 | 8 | namespace boost { namespace python { namespace detail { 9 | 10 | struct decref_guard 11 | { 12 | decref_guard(PyObject* o) : obj(o) {} 13 | ~decref_guard() { Py_XDECREF(obj); } 14 | void cancel() { obj = 0; } 15 | private: 16 | PyObject* obj; 17 | }; 18 | 19 | }}} // namespace boost::python::detail 20 | 21 | #endif // DECREF_GUARD_DWA20021220_HPP 22 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/def_helper_fwd.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef DEF_HELPER_FWD_DWA2003810_HPP 6 | # define DEF_HELPER_FWD_DWA2003810_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { namespace detail { 11 | 12 | template 13 | struct def_helper; 14 | 15 | }}} // namespace boost::python::detail 16 | 17 | #endif // DEF_HELPER_FWD_DWA2003810_HPP 18 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/force_instantiate.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef FORCE_INSTANTIATE_DWA200265_HPP 6 | # define FORCE_INSTANTIATE_DWA200265_HPP 7 | 8 | namespace boost { namespace python { namespace detail { 9 | 10 | // Allows us to force the argument to be instantiated without 11 | // incurring unused variable warnings 12 | 13 | template 14 | inline void force_instantiate(T const&) {} 15 | 16 | }}} // namespace boost::python::detail 17 | 18 | #endif // FORCE_INSTANTIATE_DWA200265_HPP 19 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/indirect_traits.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #ifndef INDIRECT_TRAITS_DWA2004915_HPP 5 | # define INDIRECT_TRAITS_DWA2004915_HPP 6 | 7 | # include 8 | 9 | namespace boost { namespace python { 10 | namespace indirect_traits = boost::detail::indirect_traits; 11 | }} // namespace boost::python::detail 12 | 13 | #endif // INDIRECT_TRAITS_DWA2004915_HPP 14 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/is_auto_ptr.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef IS_AUTO_PTR_DWA2003224_HPP 6 | # define IS_AUTO_PTR_DWA2003224_HPP 7 | 8 | # ifndef BOOST_NO_AUTO_PTR 9 | # include 10 | # include 11 | # endif 12 | 13 | namespace boost { namespace python { namespace detail { 14 | 15 | # if !defined(BOOST_NO_AUTO_PTR) 16 | 17 | BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1) 18 | 19 | # else 20 | 21 | template 22 | struct is_auto_ptr : mpl::false_ 23 | { 24 | }; 25 | 26 | # endif 27 | 28 | }}} // namespace boost::python::detail 29 | 30 | #endif // IS_AUTO_PTR_DWA2003224_HPP 31 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/is_shared_ptr.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Copyright Stefan Seefeld 2016. 3 | // Distributed under the Boost Software License, Version 1.0. (See 4 | // accompanying file LICENSE_1_0.txt or copy at 5 | // http://www.boost.org/LICENSE_1_0.txt) 6 | 7 | #ifndef boost_python_detail_is_shared_ptr_hpp_ 8 | #define boost_python_detail_is_shared_ptr_hpp_ 9 | 10 | #include 11 | #include 12 | 13 | namespace boost { namespace python { namespace detail { 14 | 15 | BOOST_PYTHON_IS_XXX_DEF(shared_ptr, shared_ptr, 1) 16 | #if !defined(BOOST_NO_CXX11_SMART_PTR) 17 | template 18 | struct is_shared_ptr > : std::true_type {}; 19 | #endif 20 | 21 | }}} // namespace boost::python::detail 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/is_xxx.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2005. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef IS_XXX_DWA2003224_HPP 6 | # define IS_XXX_DWA2003224_HPP 7 | 8 | # include 9 | 10 | # define BOOST_PYTHON_IS_XXX_DEF(name, qualified_name, nargs) \ 11 | BOOST_DETAIL_IS_XXX_DEF(name, qualified_name, nargs) 12 | 13 | #endif // IS_XXX_DWA2003224_HPP 14 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/mpl_lambda.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef MPL_LAMBDA_DWA2002122_HPP 6 | # define MPL_LAMBDA_DWA2002122_HPP 7 | 8 | // this header should go away soon 9 | # include 10 | # define BOOST_PYTHON_MPL_LAMBDA_SUPPORT BOOST_MPL_AUX_LAMBDA_SUPPORT 11 | 12 | #endif // MPL_LAMBDA_DWA2002122_HPP 13 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/none.hpp: -------------------------------------------------------------------------------- 1 | // (C) Copyright David Abrahams 2000. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | // 6 | // The author gratefully acknowleges the support of Dragon Systems, Inc., in 7 | // producing this work. 8 | 9 | #ifndef NONE_DWA_052000_H_ 10 | # define NONE_DWA_052000_H_ 11 | 12 | # include 13 | 14 | namespace boost { namespace python { namespace detail { 15 | 16 | inline PyObject* none() { Py_INCREF(Py_None); return Py_None; } 17 | 18 | }}} // namespace boost::python::detail 19 | 20 | #endif // NONE_DWA_052000_H_ 21 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/not_specified.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef NOT_SPECIFIED_DWA2002321_HPP 6 | # define NOT_SPECIFIED_DWA2002321_HPP 7 | 8 | namespace boost { namespace python { namespace detail { 9 | 10 | struct not_specified {}; 11 | 12 | }}} // namespace boost::python::detail 13 | 14 | #endif // NOT_SPECIFIED_DWA2002321_HPP 15 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/overloads_fwd.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef OVERLOADS_FWD_DWA2002101_HPP 6 | # define OVERLOADS_FWD_DWA2002101_HPP 7 | 8 | namespace boost { namespace python { namespace detail { 9 | 10 | // forward declarations 11 | struct overloads_base; 12 | 13 | template 14 | inline void define_with_defaults(char const* name, OverloadsT const&, NameSpaceT&, SigT const&); 15 | 16 | }}} // namespace boost::python::detail 17 | 18 | #endif // OVERLOADS_FWD_DWA2002101_HPP 19 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/prefix.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef PREFIX_DWA2003531_HPP 6 | # define PREFIX_DWA2003531_HPP 7 | 8 | // The rule is that must be included before any system 9 | // headers (so it can get control over some awful macros). 10 | // Unfortunately, Boost.Python needs to #include first, at 11 | // least... but this gets us as close as possible. 12 | 13 | # include 14 | # include 15 | 16 | #endif // PREFIX_DWA2003531_HPP 17 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/scope.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef SCOPE_DWA2002927_HPP 6 | # define SCOPE_DWA2002927_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { namespace detail { 11 | 12 | void BOOST_PYTHON_DECL scope_setattr_doc(char const* name, object const& obj, char const* doc); 13 | 14 | }}} // namespace boost::python::detail 15 | 16 | #endif // SCOPE_DWA2002927_HPP 17 | -------------------------------------------------------------------------------- /python/include/boost/python/detail/sfinae.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #ifndef SFINAE_DWA2004723_HPP 5 | # define SFINAE_DWA2004723_HPP 6 | 7 | # include 8 | 9 | # if defined(BOOST_NO_SFINAE) && !defined(BOOST_MSVC) 10 | # define BOOST_PYTHON_NO_SFINAE 11 | # endif 12 | 13 | #endif // SFINAE_DWA2004723_HPP 14 | -------------------------------------------------------------------------------- /python/include/boost/python/handle_fwd.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef HANDLE_FWD_DWA2002615_HPP 6 | # define HANDLE_FWD_DWA2002615_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { 11 | 12 | template class handle; 13 | 14 | }} // namespace boost::python 15 | 16 | #endif // HANDLE_FWD_DWA2002615_HPP 17 | -------------------------------------------------------------------------------- /python/include/boost/python/has_back_reference.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef HAS_BACK_REFERENCE_DWA2002323_HPP 6 | # define HAS_BACK_REFERENCE_DWA2002323_HPP 7 | 8 | # include 9 | # include 10 | 11 | namespace boost { namespace python { 12 | 13 | // traits class which users can specialize to indicate that a class 14 | // contains a back-reference to its owning PyObject* 15 | template 16 | struct has_back_reference 17 | : mpl::false_ 18 | { 19 | }; 20 | 21 | 22 | }} // namespace boost::python 23 | 24 | #endif // HAS_BACK_REFERENCE_DWA2002323_HPP 25 | -------------------------------------------------------------------------------- /python/include/boost/python/import.hpp: -------------------------------------------------------------------------------- 1 | // Copyright Stefan Seefeld 2005. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef IMPORT_SS20050624_HPP 6 | # define IMPORT_SS20050624_HPP 7 | 8 | # include 9 | # include 10 | 11 | namespace boost 12 | { 13 | namespace python 14 | { 15 | 16 | // Import the named module and return a reference to it. 17 | object BOOST_PYTHON_DECL import(str name); 18 | 19 | } 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /python/include/boost/python/module.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2001. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef MODULE_DWA2001128_HPP 6 | # define MODULE_DWA2001128_HPP 7 | 8 | # include 9 | 10 | # include 11 | # define BOOST_PYTHON_MODULE BOOST_PYTHON_MODULE_INIT 12 | 13 | #endif // MODULE_DWA20011221_HPP 14 | -------------------------------------------------------------------------------- /python/include/boost/python/object/class_detail.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef CLASS_DETAIL_DWA200295_HPP 6 | # define CLASS_DETAIL_DWA200295_HPP 7 | 8 | # include 9 | # include 10 | 11 | namespace boost { namespace python { namespace objects { 12 | 13 | BOOST_PYTHON_DECL type_handle registered_class_object(type_info id); 14 | BOOST_PYTHON_DECL type_handle class_metatype(); 15 | BOOST_PYTHON_DECL type_handle class_type(); 16 | 17 | }}} // namespace boost::python::object 18 | 19 | #endif // CLASS_DETAIL_DWA200295_HPP 20 | -------------------------------------------------------------------------------- /python/include/boost/python/object/inheritance_query.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef INHERITANCE_QUERY_DWA2003520_HPP 6 | # define INHERITANCE_QUERY_DWA2003520_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { namespace objects { 11 | 12 | BOOST_PYTHON_DECL void* find_static_type(void* p, type_info src, type_info dst); 13 | BOOST_PYTHON_DECL void* find_dynamic_type(void* p, type_info src, type_info dst); 14 | 15 | }}} // namespace boost::python::object 16 | 17 | #endif // INHERITANCE_QUERY_DWA2003520_HPP 18 | -------------------------------------------------------------------------------- /python/include/boost/python/object/iterator_core.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef ITERATOR_CORE_DWA2002512_HPP 6 | # define ITERATOR_CORE_DWA2002512_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { namespace objects { 11 | 12 | BOOST_PYTHON_DECL object const& identity_function(); 13 | BOOST_PYTHON_DECL void stop_iteration_error(); 14 | 15 | }}} // namespace boost::python::object 16 | 17 | #endif // ITERATOR_CORE_DWA2002512_HPP 18 | -------------------------------------------------------------------------------- /python/include/boost/python/object/life_support.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef LIFE_SUPPORT_DWA200222_HPP 6 | # define LIFE_SUPPORT_DWA200222_HPP 7 | # include 8 | 9 | namespace boost { namespace python { namespace objects { 10 | 11 | BOOST_PYTHON_DECL PyObject* make_nurse_and_patient(PyObject* nurse, PyObject* patient); 12 | 13 | }}} // namespace boost::python::object 14 | 15 | #endif // LIFE_SUPPORT_DWA200222_HPP 16 | -------------------------------------------------------------------------------- /python/include/boost/python/object/value_holder_fwd.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef VALUE_HOLDER_FWD_DWA2002311_HPP 6 | # define VALUE_HOLDER_FWD_DWA2002311_HPP 7 | 8 | namespace boost { namespace python { namespace objects { 9 | 10 | struct no_back_reference; 11 | 12 | template struct value_holder_generator; 13 | 14 | }}} // namespace boost::python::object 15 | 16 | #endif // VALUE_HOLDER_FWD_DWA2002311_HPP 17 | -------------------------------------------------------------------------------- /python/include/boost/python/object_fwd.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef OBJECT_FWD_DWA2002724_HPP 6 | # define OBJECT_FWD_DWA2002724_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { 11 | namespace api 12 | { 13 | class object; 14 | } 15 | using api::object; 16 | }} // namespace boost::python 17 | 18 | #endif // OBJECT_FWD_DWA2002724_HPP 19 | -------------------------------------------------------------------------------- /python/include/boost/python/overloads.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef OVERLOADS_DWA2002101_HPP 6 | # define OVERLOADS_DWA2002101_HPP 7 | 8 | # include 9 | 10 | # include 11 | # include 12 | 13 | #endif // OVERLOADS_DWA2002101_HPP 14 | -------------------------------------------------------------------------------- /python/include/boost/python/return_value_policy.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef RETURN_VALUE_POLICY_DWA2002131_HPP 6 | # define RETURN_VALUE_POLICY_DWA2002131_HPP 7 | 8 | # include 9 | # include 10 | 11 | namespace boost { namespace python { 12 | 13 | template 14 | struct return_value_policy : BasePolicy_ 15 | { 16 | typedef ResultConverterGenerator result_converter; 17 | }; 18 | 19 | }} // namespace boost::python 20 | 21 | #endif // RETURN_VALUE_POLICY_DWA2002131_HPP 22 | -------------------------------------------------------------------------------- /python/include/boost/python/tag.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef TAG_DWA2002720_HPP 6 | # define TAG_DWA2002720_HPP 7 | 8 | # include 9 | 10 | namespace boost { namespace python { 11 | 12 | // used only to prevent argument-dependent lookup from finding the 13 | // wrong function in some cases. Cheaper than qualification. 14 | enum tag_t { tag }; 15 | 16 | }} // namespace boost::python 17 | 18 | #endif // TAG_DWA2002720_HPP 19 | -------------------------------------------------------------------------------- /python/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/python/index.html -------------------------------------------------------------------------------- /python/meta/libraries.json: -------------------------------------------------------------------------------- 1 | { 2 | "key": "python", 3 | "name": "Python", 4 | "authors": [ 5 | "Dave Abrahams" 6 | ], 7 | "description": "The Boost Python Library is a framework for interfacing Python and C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice-versa, using no special tools -- just your C++ compiler.", 8 | "category": [ 9 | "Inter-language" 10 | ], 11 | "maintainers": [ 12 | "Stefan Seefeld " 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /python/src/import.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Stefan Seefeld 2005. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | namespace boost 12 | { 13 | namespace python 14 | { 15 | 16 | object BOOST_PYTHON_DECL import(str name) 17 | { 18 | // should be 'char const *' but older python versions don't use 'const' yet. 19 | char *n = python::extract(name); 20 | python::handle<> module(PyImport_ImportModule(n)); 21 | return python::object(module); 22 | } 23 | 24 | } // namespace boost::python 25 | } // namespace boost 26 | -------------------------------------------------------------------------------- /python/test/andreas_beyer.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from andreas_beyer_ext import * 6 | >>> b=B() 7 | >>> a=b.get() # let b create an A 8 | >>> a2=b.get() 9 | >>> assert id(a) == id(a2) 10 | ''' 11 | def run(args = None): 12 | import sys 13 | import doctest 14 | 15 | if args is not None: 16 | sys.argv = args 17 | return doctest.testmod(sys.modules.get(__name__)) 18 | 19 | if __name__ == '__main__': 20 | print("running...") 21 | import sys 22 | status = run()[0] 23 | if (status == 0): print("Done.") 24 | sys.exit(status) 25 | -------------------------------------------------------------------------------- /python/test/as_to_python_function.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | 8 | struct hopefully_illegal 9 | { 10 | static PyObject* convert(int&); 11 | }; 12 | 13 | PyObject* x = boost::python::converter::as_to_python_function::convert(0); 14 | -------------------------------------------------------------------------------- /python/test/ben_scott1.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | # This regression test checks that call_method(...) where T is a 5 | # non-reference, non-pointer type that happens to be held inside the 6 | # result object (and thus is found as an lvalue) works. 7 | from ben_scott1_ext import * 8 | 9 | class CreatorImpl(Creator): 10 | def create(self): 11 | return Product() 12 | 13 | factory = Factory() 14 | c = CreatorImpl() 15 | factory.reg(c) 16 | 17 | a = factory.create() 18 | -------------------------------------------------------------------------------- /python/test/bienstman1.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | # Try to reproduce a Numeric interaction bug if Numeric is installed. 6 | >>> from bienstman1_ext import * 7 | >>> try: from Numeric import * 8 | ... except: pass 9 | ''' 10 | def run(args = None): 11 | import sys 12 | import doctest 13 | 14 | if args is not None: 15 | sys.argv = args 16 | return doctest.testmod(sys.modules.get(__name__)) 17 | 18 | if __name__ == '__main__': 19 | print("running...") 20 | import sys 21 | status = run()[0] 22 | if (status == 0): print("Done.") 23 | sys.exit(status) 24 | -------------------------------------------------------------------------------- /python/test/bienstman2.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #include 5 | #include 6 | #include 7 | 8 | struct C {}; 9 | 10 | struct D {}; 11 | 12 | struct E 13 | { 14 | const D fe (const C&) {return D();} 15 | const D fe2(const C&, const C&) {return D();} 16 | }; 17 | 18 | BOOST_PYTHON_MODULE(bienstman2_ext) 19 | { 20 | using namespace boost::python; 21 | 22 | class_("C"); 23 | class_("D"); 24 | class_("E") 25 | .def("fe", &E::fe) // this compiles. 26 | .def("fe2", &E::fe2) // this doesn't... well, now it does ;-) 27 | ; 28 | } 29 | -------------------------------------------------------------------------------- /python/test/bienstman2.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> import bienstman2_ext 6 | ''' 7 | def run(args = None): 8 | import sys 9 | import doctest 10 | 11 | if args is not None: 12 | sys.argv = args 13 | return doctest.testmod(sys.modules.get(__name__)) 14 | 15 | if __name__ == '__main__': 16 | print("running...") 17 | import sys 18 | status = run()[0] 19 | if (status == 0): print("Done.") 20 | sys.exit(status) 21 | -------------------------------------------------------------------------------- /python/test/bienstman3.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #include 5 | #include 6 | #include 7 | 8 | struct V 9 | { 10 | virtual ~V() {}; // silence compiler warningsa 11 | virtual void f() = 0; 12 | }; 13 | 14 | struct B 15 | { 16 | B(const V&) {} 17 | }; 18 | 19 | BOOST_PYTHON_MODULE(bienstman3_ext) 20 | { 21 | using namespace boost::python; 22 | 23 | class_("V", no_init); 24 | class_("B", init()); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /python/test/bienstman3.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from bienstman3_ext import * 6 | 7 | >>> try: 8 | ... V() 9 | ... except RuntimeError as x: 10 | ... print(x) 11 | ... else: 12 | ... print('expected an exception') 13 | ... 14 | This class cannot be instantiated from Python 15 | 16 | ''' 17 | def run(args = None): 18 | import sys 19 | import doctest 20 | 21 | if args is not None: 22 | sys.argv = args 23 | return doctest.testmod(sys.modules.get(__name__)) 24 | 25 | if __name__ == '__main__': 26 | print("running...") 27 | import sys 28 | status = run()[0] 29 | if (status == 0): print("Done.") 30 | sys.exit(status) 31 | -------------------------------------------------------------------------------- /python/test/bienstman4.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from bienstman4_ext import * 6 | >>> t1 = T1() 7 | >>> e = Expression() 8 | >>> e.add(t1) 9 | ''' 10 | def run(args = None): 11 | import sys 12 | import doctest 13 | 14 | if args is not None: 15 | sys.argv = args 16 | return doctest.testmod(sys.modules.get(__name__)) 17 | 18 | if __name__ == '__main__': 19 | print("running...") 20 | import sys 21 | status = run()[0] 22 | if (status == 0): print("Done.") 23 | sys.exit(status) 24 | -------------------------------------------------------------------------------- /python/test/bienstman5.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include 12 | 13 | struct M {M(const std::complex&) {} }; 14 | 15 | BOOST_PYTHON_MODULE(bienstman5_ext) 16 | { 17 | using namespace boost::python; 18 | 19 | class_("M", init const&>()) 20 | ; 21 | } 22 | 23 | 24 | -------------------------------------------------------------------------------- /python/test/bienstman5.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from bienstman5_ext import * 6 | >>> m = M(1j) 7 | ''' 8 | def run(args = None): 9 | import sys 10 | import doctest 11 | 12 | if args is not None: 13 | sys.argv = args 14 | return doctest.testmod(sys.modules.get(__name__)) 15 | 16 | if __name__ == '__main__': 17 | print("running...") 18 | import sys 19 | status = run()[0] 20 | if (status == 0): print("Done.") 21 | sys.exit(status) 22 | -------------------------------------------------------------------------------- /python/test/boost_shared_ptr.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Copyright Stefan Seefeld 2016. 3 | // Distributed under the Boost Software License, Version 1.0. (See 4 | // accompanying file LICENSE_1_0.txt or copy at 5 | // http://www.boost.org/LICENSE_1_0.txt) 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | using boost::shared_ptr; 16 | #define MODULE boost_shared_ptr_ext 17 | 18 | #include "shared_ptr.hpp" 19 | #include "module_tail.cpp" 20 | 21 | -------------------------------------------------------------------------------- /python/test/class.cpp: -------------------------------------------------------------------------------- 1 | // Distributed under the Boost Software License, Version 1.0. (See 2 | // accompanying file LICENSE_1_0.txt or copy at 3 | // http://www.boost.org/LICENSE_1_0.txt) 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | using namespace boost::python; 10 | 11 | struct X 12 | { 13 | int x; 14 | X(int n) : x(n) { } 15 | }; 16 | 17 | int x_function(X& x) 18 | { return x.x; 19 | } 20 | 21 | 22 | BOOST_PYTHON_MODULE(class_ext) 23 | { 24 | class_("X", init()); 25 | def("x_function", x_function); 26 | } 27 | 28 | #include "module_tail.cpp" 29 | -------------------------------------------------------------------------------- /python/test/const_argument.py: -------------------------------------------------------------------------------- 1 | # Copyright Jonathan Brandmeyer, 2004. Distributed under the Boost 2 | # Software License, Version 1.0 (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | """ 5 | >>> from const_argument_ext import * 6 | >>> accept_const_arg(1) 7 | 1 8 | """ 9 | 10 | def run(args = None): 11 | import sys 12 | import doctest 13 | 14 | if args is not None: 15 | sys.argv = args 16 | return doctest.testmod(sys.modules.get(__name__)) 17 | 18 | if __name__ == '__main__': 19 | print("running...") 20 | import sys 21 | status = run()[0] 22 | if (status == 0): print("Done.") 23 | sys.exit(status) 24 | -------------------------------------------------------------------------------- /python/test/copy_ctor_mutates_rhs.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2003. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | struct foo 11 | { 12 | operator std::auto_ptr&() const; 13 | }; 14 | 15 | int main() 16 | { 17 | using namespace boost::python::detail; 18 | BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs::value); 19 | BOOST_STATIC_ASSERT(copy_ctor_mutates_rhs >::value); 20 | BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs::value); 21 | BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs::value); 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /python/test/crossmod_exception.py: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2003 Rational Discovery LLC. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy 3 | # at http://www.boost.org/LICENSE_1_0.txt) 4 | 5 | print("running...") 6 | 7 | import crossmod_exception_a 8 | import crossmod_exception_b 9 | 10 | try: 11 | crossmod_exception_b.tossit() 12 | except IndexError: 13 | pass 14 | try: 15 | crossmod_exception_a.tossit() 16 | except IndexError: 17 | pass 18 | 19 | print("Done.") 20 | -------------------------------------------------------------------------------- /python/test/crossmod_exception_a.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2003 Rational Discovery LLC 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | 8 | namespace python = boost::python; 9 | 10 | void tossit(){ 11 | PyErr_SetString(PyExc_IndexError,"a-blah!"); 12 | throw python::error_already_set(); 13 | } 14 | 15 | BOOST_PYTHON_MODULE(crossmod_exception_a) 16 | { 17 | python::def("tossit",tossit); 18 | } 19 | -------------------------------------------------------------------------------- /python/test/crossmod_exception_b.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2003 Rational Discovery LLC 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | 8 | namespace python = boost::python; 9 | 10 | void tossit(){ 11 | PyErr_SetString(PyExc_IndexError,"b-blah!"); 12 | throw python::error_already_set(); 13 | } 14 | 15 | BOOST_PYTHON_MODULE(crossmod_exception_b) 16 | { 17 | python::def("tossit",tossit); 18 | } 19 | -------------------------------------------------------------------------------- /python/test/crossmod_opaque.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # Copyright Gottfried Ganßauge 2006. 3 | # Distributed under the Boost Software License, Version 1.0. (See 4 | # accompanying file LICENSE_1_0.txt or copy at 5 | # http://www.boost.org/LICENSE_1_0.txt) 6 | 7 | if __name__ == '__main__': 8 | print("running...") 9 | 10 | import crossmod_opaque_a 11 | import crossmod_opaque_b 12 | 13 | crossmod_opaque_a.get() 14 | crossmod_opaque_b.get() 15 | 16 | print("Done.") 17 | -------------------------------------------------------------------------------- /python/test/crossmod_opaque_a.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Gottfried Ganßauge 2006. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | # include 6 | # include 7 | # include 8 | # include 9 | 10 | typedef struct opaque_ *opaque; 11 | 12 | opaque the_op = ((opaque) 0x47110815); 13 | 14 | opaque get() { return the_op; } 15 | 16 | BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(opaque_) 17 | 18 | namespace bpl = boost::python; 19 | 20 | BOOST_PYTHON_MODULE(crossmod_opaque_a) 21 | { 22 | bpl::def ( 23 | "get", 24 | &::get, 25 | bpl::return_value_policy()); 26 | } 27 | -------------------------------------------------------------------------------- /python/test/crossmod_opaque_b.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Gottfried Ganßauge 2006. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | # include 6 | # include 7 | # include 8 | # include 9 | 10 | typedef struct opaque_ *opaque; 11 | 12 | opaque the_op = ((opaque) 0x47110815); 13 | 14 | opaque get() { return the_op; } 15 | 16 | BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(opaque_) 17 | 18 | namespace bpl = boost::python; 19 | 20 | BOOST_PYTHON_MODULE(crossmod_opaque_b) 21 | { 22 | bpl::def ( 23 | "get", 24 | &::get, 25 | bpl::return_value_policy()); 26 | } 27 | -------------------------------------------------------------------------------- /python/test/enable_shared_from_this.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from enable_shared_from_this_ext import * 6 | 7 | >>> x = Test.construct() 8 | >>> x.take(x) 9 | >>> x.act() 10 | ''' 11 | 12 | def run(args = None): 13 | import sys 14 | import doctest 15 | 16 | if args is not None: 17 | sys.argv = args 18 | return doctest.testmod(sys.modules.get(__name__)) 19 | 20 | if __name__ == '__main__': 21 | print("running...") 22 | import sys 23 | status = run()[0] 24 | if (status == 0): print("Done.") 25 | sys.exit(status) 26 | 27 | -------------------------------------------------------------------------------- /python/test/exception_translator.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #include 5 | #include 6 | #include 7 | 8 | struct error {}; 9 | 10 | void translate(error const& /*e*/) 11 | { 12 | PyErr_SetString(PyExc_RuntimeError, "!!!error!!!"); 13 | } 14 | 15 | void throw_error() 16 | { 17 | throw error(); 18 | 19 | } 20 | 21 | BOOST_PYTHON_MODULE(exception_translator_ext) 22 | { 23 | using namespace boost::python; 24 | register_exception_translator(&translate); 25 | 26 | def("throw_error", throw_error); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /python/test/exception_translator.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from exception_translator_ext import * 6 | >>> try: 7 | ... throw_error(); 8 | ... except RuntimeError as x: 9 | ... print(x) 10 | ... else: 11 | ... print('Expected a RuntimeError!') 12 | !!!error!!! 13 | ''' 14 | def run(args = None): 15 | import sys 16 | import doctest 17 | 18 | if args is not None: 19 | sys.argv = args 20 | return doctest.testmod(sys.modules.get(__name__)) 21 | 22 | if __name__ == '__main__': 23 | print("running...") 24 | import sys 25 | status = run()[0] 26 | if (status == 0): print("Done.") 27 | sys.exit(status) 28 | -------------------------------------------------------------------------------- /python/test/exec.py: -------------------------------------------------------------------------------- 1 | # Copyright Stefan Seefeld 2006. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | 5 | if 1: 6 | number = 42 7 | -------------------------------------------------------------------------------- /python/test/import_.py: -------------------------------------------------------------------------------- 1 | # Copyright Stefan Seefeld 2007. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | 5 | value = 42 6 | -------------------------------------------------------------------------------- /python/test/injected.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from injected_ext import * 6 | >>> X(3,5).value() - (3+5) 7 | 0 8 | >>> X(a=3,b=5,c=7).value() - (3*5*7) 9 | 0 10 | >>> X().value() 11 | 1000 12 | ''' 13 | 14 | def run(args = None): 15 | import sys 16 | import doctest 17 | 18 | if args is not None: 19 | sys.argv = args 20 | return doctest.testmod(sys.modules.get(__name__)) 21 | 22 | if __name__ == '__main__': 23 | print("running...") 24 | import sys 25 | status = run()[0] 26 | if (status == 0): print("Done.") 27 | sys.exit(status) 28 | 29 | -------------------------------------------------------------------------------- /python/test/int_map_indexing_suite.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | 5 | #include 6 | #include 7 | 8 | void int_map_indexing_suite() 9 | { 10 | using namespace boost::python; 11 | 12 | // Compile check only... 13 | class_ >("IntMap") 14 | .def(map_indexing_suite >()) 15 | ; 16 | } 17 | -------------------------------------------------------------------------------- /python/test/minimal.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #include 6 | #include 7 | 8 | #if defined(_AIX) && defined(__EDG_VERSION__) && __EDG_VERSION__ < 245 9 | # include // works around a KCC intermediate code generation bug 10 | #endif 11 | 12 | BOOST_PYTHON_MODULE(minimal_ext) 13 | { 14 | } 15 | 16 | #include "module_tail.cpp" 17 | -------------------------------------------------------------------------------- /python/test/minimal.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | print("IMPORTING minimal_ext") 5 | import minimal_ext 6 | print("DONE IMPORTING minimal_ext") 7 | 8 | -------------------------------------------------------------------------------- /python/test/multi_arg_constructor.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2004. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | #include 5 | #include 6 | #include 7 | 8 | struct A 9 | { 10 | A(const double, const double, const double, const double, const double 11 | , const double, const double 12 | , const double, const double 13 | ) {} 14 | }; 15 | 16 | BOOST_PYTHON_MODULE(multi_arg_constructor_ext) 17 | { 18 | using namespace boost::python; 19 | 20 | class_( 21 | "A" 22 | , init() 23 | ) 24 | ; 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /python/test/multi_arg_constructor.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | >>> from multi_arg_constructor_ext import * 6 | >>> a = A(1.0, 2, 3, 4, 5, 6, 7.0, 8.1, 9.3) 7 | ''' 8 | def run(args = None): 9 | import sys 10 | import doctest 11 | 12 | if args is not None: 13 | sys.argv = args 14 | return doctest.testmod(sys.modules.get(__name__)) 15 | 16 | if __name__ == '__main__': 17 | print("running...") 18 | import sys 19 | status = run()[0] 20 | if (status == 0): print("Done.") 21 | sys.exit(status) 22 | -------------------------------------------------------------------------------- /python/test/numpy/shapes.cpp: -------------------------------------------------------------------------------- 1 | // Copyright Jim Bosch & Ankit Daftery 2010-2012. 2 | // Copyright Stefan Seefeld 2016. 3 | // Distributed under the Boost Software License, Version 1.0. 4 | // (See accompanying file LICENSE_1_0.txt or copy at 5 | // http://www.boost.org/LICENSE_1_0.txt) 6 | 7 | #include 8 | 9 | namespace p = boost::python; 10 | namespace np = boost::python::numpy; 11 | 12 | np::ndarray reshape(np::ndarray old_array, p::tuple shape) 13 | { 14 | np::ndarray local_shape = old_array.reshape(shape); 15 | return local_shape; 16 | } 17 | 18 | BOOST_PYTHON_MODULE(shapes_ext) 19 | { 20 | np::initialize(); 21 | p::def("reshape", reshape); 22 | } 23 | -------------------------------------------------------------------------------- /python/test/numpy/shapes.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright Jim Bosch & Ankit Daftery 2010-2012. 4 | # Distributed under the Boost Software License, Version 1.0. 5 | # (See accompanying file LICENSE_1_0.txt or copy at 6 | # http://www.boost.org/LICENSE_1_0.txt) 7 | 8 | import shapes_ext 9 | import unittest 10 | import numpy 11 | 12 | class TestShapes(unittest.TestCase): 13 | 14 | def testShapes(self): 15 | a1 = numpy.array([(0,1),(2,3)]) 16 | a1_shape = (1,4) 17 | a1 = shapes_ext.reshape(a1,a1_shape) 18 | self.assertEqual(a1_shape,a1.shape) 19 | 20 | if __name__=="__main__": 21 | unittest.main() 22 | -------------------------------------------------------------------------------- /python/test/object_fail1.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #include 6 | 7 | int f(boost::python::object const& x) 8 | { 9 | x._("hello") = 1; 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /python/test/operators_wrapper.py: -------------------------------------------------------------------------------- 1 | from operators_wrapper_ext import * 2 | 3 | class D2(vector): pass 4 | d2 = D2() 5 | 6 | for lhs in (v,d,d2): 7 | -lhs 8 | for rhs in (v,d,d2): 9 | lhs + rhs 10 | lhs += rhs 11 | 12 | -------------------------------------------------------------------------------- /python/test/pointer_vector.py: -------------------------------------------------------------------------------- 1 | # Copyright Joel de Guzman 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | ''' 5 | 6 | >>> import pointer_vector_ext 7 | >>> d = pointer_vector_ext.DoesSomething() 8 | >>> lst = d.returnList() 9 | >>> lst[0].f(); 10 | 'harru' 11 | 12 | ''' 13 | 14 | 15 | def run(args = None): 16 | import sys 17 | import doctest 18 | 19 | if args is not None: 20 | sys.argv = args 21 | return doctest.testmod(sys.modules.get(__name__)) 22 | 23 | if __name__ == '__main__': 24 | print('running...') 25 | import sys 26 | status = run()[0] 27 | if (status == 0): print("Done.") 28 | sys.exit(status) 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /python/test/polymorphism2_auto_ptr.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2005. Distributed under the Boost 2 | // Software License, Version 1.0. (See accompanying 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | 5 | #define HELD_BY_AUTO_PTR 6 | #include "polymorphism2.cpp" 7 | -------------------------------------------------------------------------------- /python/test/polymorphism2_auto_ptr.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2005. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | import polymorphism2 5 | polymorphism2.test() 6 | -------------------------------------------------------------------------------- /python/test/pyrun.py: -------------------------------------------------------------------------------- 1 | import sys 2 | 3 | pythonpath = sys.argv[1] 4 | scriptfile = sys.argv[2] 5 | sys.argv = sys.argv[2:] 6 | sys.path.append(pythonpath) 7 | exec(compile(open(scriptfile).read(), scriptfile, 'exec')) 8 | -------------------------------------------------------------------------------- /python/test/pytype_function.py: -------------------------------------------------------------------------------- 1 | # Copyright David Abrahams 2004. Distributed under the Boost 2 | # Software License, Version 1.0. (See accompanying 3 | # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 4 | """ 5 | >>> from pytype_function_ext import * 6 | 7 | >>> print(func.__doc__.splitlines()[1]) 8 | func( (A)arg1) -> A : 9 | 10 | >>> print(func.__module__) 11 | pytype_function_ext 12 | 13 | >>> print(func.__name__) 14 | func 15 | """ 16 | def run(args = None): 17 | import sys 18 | import doctest 19 | 20 | if args is not None: 21 | sys.argv = args 22 | return doctest.testmod(sys.modules.get(__name__)) 23 | 24 | if __name__ == '__main__': 25 | print("running...") 26 | import sys 27 | status = run()[0] 28 | if (status == 0): print("Done.") 29 | sys.exit(status) 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /python/test/raw_pyobject_fail1.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #include 6 | 7 | int main() 8 | { 9 | boost::python::converter::arg_to_python x(0); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /python/test/raw_pyobject_fail2.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #include 6 | 7 | struct X : PyObject {}; 8 | 9 | int main() 10 | { 11 | boost::python::converter::arg_to_python x(0); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /python/test/shared_ptr.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Copyright Stefan Seefeld 2016. 3 | // Distributed under the Boost Software License, Version 1.0. (See 4 | // accompanying file LICENSE_1_0.txt or copy at 5 | // http://www.boost.org/LICENSE_1_0.txt) 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | using std::shared_ptr; 15 | #define MODULE shared_ptr_ext 16 | 17 | #include "shared_ptr.hpp" 18 | #include "module_tail.cpp" 19 | 20 | -------------------------------------------------------------------------------- /python/test/simple_type.hpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2001. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | #ifndef SIMPLE_TYPE_DWA2001128_HPP 6 | # define SIMPLE_TYPE_DWA2001128_HPP 7 | 8 | struct simple 9 | { 10 | char* s; 11 | }; 12 | 13 | #endif // SIMPLE_TYPE_DWA2001128_HPP 14 | -------------------------------------------------------------------------------- /python/test/upcast.cpp: -------------------------------------------------------------------------------- 1 | // Copyright David Abrahams 2002. 2 | // Distributed under the Boost Software License, Version 1.0. (See 3 | // accompanying file LICENSE_1_0.txt or copy at 4 | // http://www.boost.org/LICENSE_1_0.txt) 5 | 6 | #include 7 | #include 8 | 9 | struct X { long x; }; 10 | struct Y : X, PyObject {}; 11 | 12 | int main() 13 | { 14 | PyTypeObject o; 15 | Y y; 16 | BOOST_TEST(&Py_REFCNT(boost::python::upcast(&o)) == &Py_REFCNT(&o)); 17 | BOOST_TEST(&Py_REFCNT(boost::python::upcast(&y)) == &Py_REFCNT(&y)); 18 | return boost::report_errors(); 19 | } 20 | -------------------------------------------------------------------------------- /scripts/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | scriptsdir = $(pkgdatadir)/scripts 3 | scripts_DATA = deletstring.mpy \ 4 | findall.mpy \ 5 | insertlines.mpy \ 6 | regex_patch.mpy \ 7 | replaceall.mpy \ 8 | replacehexstring.mpy \ 9 | dosdir2unix.mpy 10 | 11 | EXTRA_DIST = $(scripts_DATA) 12 | -------------------------------------------------------------------------------- /scripts/deletstring.mpy: -------------------------------------------------------------------------------- 1 | #### Find a string then delete the chars from the beginning of it to a char specified 2 | #Create MadEdit Object for active edit 3 | medit = MadEdit() 4 | 5 | #Restore caret position 6 | res = 1 7 | while res != 0: 8 | res = medit.FindTextNext("AAAA", False, False, False, False, -1, -1) 9 | if res != 0: 10 | pos1 = medit.GetSelectionBeginPos() 11 | res = medit.FindHexNext("A1A1", -1, -1) 12 | if res != 0: 13 | pos2 = medit.GetSelectionBeginPos() 14 | medit.SetSelection(pos1, pos2, True) 15 | medit.Delete() 16 | medit.InsertStr("\n\n") 17 | -------------------------------------------------------------------------------- /scripts/dosdir2unix.mpy: -------------------------------------------------------------------------------- 1 | ####Change Dos/Windows directory seperator to Unix ones 2 | ####!Alt-U 3 | 4 | me=MadEdit() 5 | res = me.ReplaceTextAll("\\", "/", False, False, False) 6 | 7 | -------------------------------------------------------------------------------- /scripts/findall.mpy: -------------------------------------------------------------------------------- 1 | #### Sample for FindTextAll API 2 | me=MadEdit() 3 | res = me.FindTextAll("a", False, False, False) 4 | 5 | print res 6 | 7 | me = None -------------------------------------------------------------------------------- /scripts/regex_patch.mpy: -------------------------------------------------------------------------------- 1 | ### This is a patch for Regex Replace issue of MadEdit 2 | #The issue is hard to fix, so, use this workarond, remove the '#' 3 | #before the InsertStr if you want to replace the space 4 | 5 | #Create MadEdit Object for active edit 6 | medit = MadEdit() 7 | 8 | #Restore caret position 9 | medit.SetCaretPosition(0) #Move caret/cursor to the begeinning of the file 10 | #Search a space char that was between two none space chars 11 | while medit.FindTextNext("(?<=.)\s(?=.)", True, False, False, False, -1, -1) == -1: 12 | medit.Delete() #delete the space char if found 13 | -------------------------------------------------------------------------------- /scripts/replaceall.mpy: -------------------------------------------------------------------------------- 1 | me=MadEdit() 2 | res = me.ReplaceTextAll("\\r\\n", "\\n", True, False, False) 3 | 4 | res = me.ReplaceTextAll("\\n\\n", "\\n", True, False, False) 5 | -------------------------------------------------------------------------------- /scripts/replacehexstring.mpy: -------------------------------------------------------------------------------- 1 | #### Example script to replace hex string 2 | ####!Ctrl+Shift+E 3 | # This is an example script. '#' is used for line comment which is Python's 4 | # """ is for block comment 5 | # #### in the first line is used for help string which would be shown at the status bar 6 | # ####! is for customized key shortcut 7 | 8 | #Create MadEdit Object for active edit 9 | medit = MadEdit() 10 | 11 | # Replace 'b\r\n' with 'e\n' and 'a\r' with 'e\n', '\r' is for carriage return, '\n' is for new line 12 | # you should keep the number of items in oldStr and newStr equal 13 | oldStr = ["620d0a", "610d", ] 14 | newStr = ["650a", "660a", ] 15 | 16 | ridx = 0 17 | for ostr in oldStr: 18 | medit.ReplaceHexAll(ostr, newStr[ridx], -1, -1) ## (oldstr, new, start_pos(-1 or 0 is file start), end_pos(-1 or filesize is endof file)) 19 | ridx = ridx +1 -------------------------------------------------------------------------------- /spellchecker/SpellCheckUserInterface.cpp: -------------------------------------------------------------------------------- 1 | #include "SpellCheckUserInterface.h" 2 | 3 | wxSpellCheckUserInterface::wxSpellCheckUserInterface(wxSpellCheckEngineInterface* pSpellChecker /*= NULL*/) 4 | { 5 | m_strMisspelledWord = _T(""); 6 | m_strReplaceWithText = _T(""); 7 | m_strContext = _T(""); 8 | m_pSpellCheckEngine = pSpellChecker; 9 | 10 | m_nLastAction = ACTION_INITIAL; 11 | } 12 | 13 | wxSpellCheckUserInterface::~wxSpellCheckUserInterface() 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /spellchecker/hunspell/Makefile.am: -------------------------------------------------------------------------------- 1 | ACLOCAL_AMFLAGS = -I m4 2 | 3 | SUBDIRS= po src man tests 4 | 5 | pkgconfdir = $(libdir)/pkgconfig 6 | pkgconf_DATA = hunspell.pc 7 | 8 | EXTRA_DIST = license.myspell license.hunspell \ 9 | ChangeLog.O COPYING.LESSER COPYING.MPL hunspell.pc.in 10 | -------------------------------------------------------------------------------- /spellchecker/hunspell/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/spellchecker/hunspell/NEWS -------------------------------------------------------------------------------- /spellchecker/hunspell/hunspell.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=${prefix} 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: hunspell 7 | Description: Hunspell spellchecking library 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lhunspell-@HUNSPELL_VERSION_MAJOR@.@HUNSPELL_VERSION_MINOR@ 10 | Cflags: -I${includedir}/hunspell 11 | -------------------------------------------------------------------------------- /spellchecker/hunspell/m4/README: -------------------------------------------------------------------------------- 1 | These files are used by a program called aclocal (part of the GNU automake 2 | package). aclocal uses these files to create aclocal.m4 which is in turn 3 | used by autoconf to create the configure script at the the top level in 4 | this distribution. 5 | -------------------------------------------------------------------------------- /spellchecker/hunspell/man/Makefile.am: -------------------------------------------------------------------------------- 1 | man_MANS = hunspell.1 hunspell.3 hunspell.5 hzip.1 hunzip.1 2 | EXTRA_DIST = $(man_MANS) 3 | SUBDIRS=hu 4 | -------------------------------------------------------------------------------- /spellchecker/hunspell/man/hu/Makefile.am: -------------------------------------------------------------------------------- 1 | #mandir = $(DESTDIR)/share 2 | man1dir = $(mandir)/hu/man1 3 | man4dir = $(mandir)/hu/man4 4 | man_MANS = hunspell.1 hunspell.5 5 | EXTRA_DIST = $(man_MANS) 6 | -------------------------------------------------------------------------------- /spellchecker/hunspell/man/hunzip.1: -------------------------------------------------------------------------------- 1 | .TH hzip 1 "2008-06-12" 2 | .LO 1 3 | .SH NAME 4 | hunzip \- decompress and decrypt hzip files to the standard output 5 | .SH SYNOPSIS 6 | hunzip [\-h] file.hz [password] 7 | .SH DESCRIPTION 8 | .I Hunzip 9 | is the decompression and decryption program of hzip format. 10 | .SH OPTIONS 11 | .IP \fB\-h\fR 12 | Display short help description. 13 | .SH EXAMPLE 14 | .sp 15 | .BI "hunzip file.hz >file" 16 | .SH NOTES 17 | Redirection of the standard output results platform-specific 18 | line terminating, so a compressed hzip file with new line terminators 19 | would be bigger with the extra CR characters of the decompression on 20 | Windows platforms. 21 | .SH SEE ALSO 22 | .B hunzip (1), hunspell(1) 23 | .SH AUTHOR 24 | László Németh. 25 | -------------------------------------------------------------------------------- /spellchecker/hunspell/man/hzip.1: -------------------------------------------------------------------------------- 1 | .TH hunzip 1 "2008-06-12" 2 | .LO 1 3 | .SH NAME 4 | hunzip \- compress and encrypt dictionary files 5 | .SH SYNOPSIS 6 | hzip [\-h] [\-P password] [file(s)] 7 | .SH DESCRIPTION 8 | .I hunzip 9 | is a small utility for text file compression and encryption, especially for 10 | sorted dictionaries. "hunspell filename" creates the compressed 11 | file "filename.hz" without removing the original file. 12 | 13 | The compression algorithm uses 16-bit Huffman encoding and 14 | line-oriented prefix-suffix compression. It has good 15 | compression ratio for huge sorted word lists. 16 | .SH OPTIONS 17 | .IP \fB\-h\fR 18 | Display short help description. 19 | .IP \fB\-P\ password\fR 20 | Encrypted compression by an arbitrary length password. 21 | .SH SEE ALSO 22 | .B hzip (1), hunspell(1) 23 | .SH AUTHOR 24 | László Németh. 25 | -------------------------------------------------------------------------------- /spellchecker/hunspell/msvc/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | /Debug/ 3 | /Release/ 4 | /Backup*/ 5 | /x64/ 6 | /*.db 7 | /*.user 8 | *.sdf 9 | *.opensdf 10 | *.suo 11 | UpgradeLog.htm 12 | -------------------------------------------------------------------------------- /spellchecker/hunspell/msvc/Hunspell.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/spellchecker/hunspell/msvc/Hunspell.rc -------------------------------------------------------------------------------- /spellchecker/hunspell/po/ChangeLog: -------------------------------------------------------------------------------- 1 | 2017-10-22 gettextize 2 | 3 | * Makefile.in.in: Upgrade to gettext-0.19.8.1. 4 | 5 | 2016-11-02 gettextize 6 | 7 | * Makefile.in.in: Upgrade to gettext-0.19.7. 8 | 9 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/LINGUAS: -------------------------------------------------------------------------------- 1 | # Set of available languages. 2 | an 3 | ca 4 | ckb 5 | cs 6 | da 7 | de 8 | de_CH 9 | eo 10 | es 11 | es_EU 12 | fr 13 | fy 14 | gl 15 | hr 16 | hu 17 | hy 18 | ie 19 | is 20 | it 21 | kab 22 | ky 23 | mk 24 | nb_NO 25 | nl 26 | nl_BE 27 | oc 28 | pa 29 | pl 30 | pt 31 | pt_BR 32 | pt_PT 33 | ru 34 | si 35 | sl 36 | sv 37 | ta 38 | tg 39 | tr 40 | tt 41 | uk 42 | zh_Hant 43 | fa 44 | zh_Hans 45 | el 46 | ka 47 | lt 48 | ar 49 | uz 50 | mn 51 | ur 52 | hi 53 | bg 54 | br 55 | ko 56 | co 57 | kn 58 | vi 59 | id 60 | sq 61 | lv 62 | ro 63 | ast 64 | he 65 | ht 66 | tok 67 | fur 68 | ln 69 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/POTFILES.in: -------------------------------------------------------------------------------- 1 | # List of source files containing translatable strings. 2 | # Copyright (C) 1995, 1996 Free Software Foundation, Inc. 3 | 4 | # Package source files 5 | src/tools/hunspell.cxx 6 | 7 | # end of file POTFILE.in 8 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /spellchecker/hunspell/po/stamp-po: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS=hunspell parsers tools 2 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/hunspell/hunvisapi.h: -------------------------------------------------------------------------------- 1 | #ifndef HUNSPELL_VISIBILITY_H_ 2 | #define HUNSPELL_VISIBILITY_H_ 3 | 4 | #if defined(HUNSPELL_STATIC) 5 | # define LIBHUNSPELL_DLL_EXPORTED 6 | #elif defined(_WIN32) 7 | # if defined(BUILDING_LIBHUNSPELL) 8 | # define LIBHUNSPELL_DLL_EXPORTED __declspec(dllexport) 9 | # else 10 | # define LIBHUNSPELL_DLL_EXPORTED __declspec(dllimport) 11 | # endif 12 | #elif defined(BUILDING_LIBHUNSPELL) && 1 13 | # define LIBHUNSPELL_DLL_EXPORTED __attribute__((__visibility__("default"))) 14 | #else 15 | # define LIBHUNSPELL_DLL_EXPORTED 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/hunspell/hunvisapi.h.in: -------------------------------------------------------------------------------- 1 | #ifndef HUNSPELL_VISIBILITY_H_ 2 | #define HUNSPELL_VISIBILITY_H_ 3 | 4 | #if defined(HUNSPELL_STATIC) 5 | # define LIBHUNSPELL_DLL_EXPORTED 6 | #elif defined(_WIN32) 7 | # if defined(BUILDING_LIBHUNSPELL) 8 | # define LIBHUNSPELL_DLL_EXPORTED __declspec(dllexport) 9 | # else 10 | # define LIBHUNSPELL_DLL_EXPORTED __declspec(dllimport) 11 | # endif 12 | #elif defined(BUILDING_LIBHUNSPELL) && @HAVE_VISIBILITY@ 13 | # define LIBHUNSPELL_DLL_EXPORTED __attribute__((__visibility__("default"))) 14 | #else 15 | # define LIBHUNSPELL_DLL_EXPORTED 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/parsers/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | AM_CPPFLAGS=-I${top_builddir}/src/hunspell 3 | 4 | noinst_LIBRARIES=libparsers.a 5 | libparsers_a_SOURCES=firstparser.cxx xmlparser.cxx \ 6 | latexparser.cxx manparser.cxx \ 7 | textparser.cxx htmlparser.cxx \ 8 | odfparser.cxx 9 | 10 | noinst_PROGRAMS=testparser 11 | testparser_SOURCES=firstparser.cxx firstparser.hxx xmlparser.cxx \ 12 | xmlparser.hxx latexparser.cxx latexparser.hxx \ 13 | manparser.cxx manparser.hxx testparser.cxx \ 14 | textparser.cxx textparser.hxx htmlparser.cxx \ 15 | htmlparser.hxx odfparser.hxx odfparser.cxx 16 | 17 | # need mystrrep() 18 | LDADD = ../hunspell/libhunspell-1.7.la 19 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/tools/.gitignore: -------------------------------------------------------------------------------- 1 | analyze 2 | bulkcheck 3 | chmorph 4 | example 5 | hunspell 6 | hunzip 7 | hzip 8 | munch 9 | unmunch 10 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/tools/fuzzer.options: -------------------------------------------------------------------------------- 1 | [libfuzzer] 2 | max_len = 262144 3 | -------------------------------------------------------------------------------- /spellchecker/hunspell/src/tools/ispellaff2myspell: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/spellchecker/hunspell/src/tools/ispellaff2myspell -------------------------------------------------------------------------------- /src/MadEdit/MadEditPv.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // Name: MadEdit/MadEditPv.h 3 | // Description: main Edit component of MadEdit 4 | // Author: minggang.li@gmail.com 5 | // Licence: GPL 6 | /////////////////////////////////////////////////////////////////////////////// 7 | // PATCH_ used for bug fix 8 | // EXTRA_ used for extra functinal 9 | #ifndef _MADEDITPV_H_ 10 | #define _MADEDITPV_H_ 11 | 12 | #define USE_MADEDITPV 1 13 | 14 | #if USE_MADEDITPV == 1 15 | #define PATCH_RPLACEALL_HEX_MODE 1 16 | #define PATCH_RPLACE_REGEXP 1 17 | #define PATCH_MAXLINELENGTH 1 18 | 19 | #else 20 | 21 | #endif //USE_MADEDITPV 22 | #endif //_MADEDITPV_H_ 23 | -------------------------------------------------------------------------------- /src/MadEdit/MadEditSearch.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/src/MadEdit/MadEditSearch.cpp -------------------------------------------------------------------------------- /src/MadEdit/clipbrd_gtk.cpp: -------------------------------------------------------------------------------- 1 | #ifdef __WXGTK__ 2 | #include 3 | #if wxMAJOR_VERSION < 3 4 | #include "clipbrd_gtk_wx2.cpp" 5 | #else 6 | #include "clipbrd_gtk_wx3.cpp" 7 | #endif 8 | #endif // __WXGTK__ 9 | -------------------------------------------------------------------------------- /src/MadEdit/clipbrd_gtk.h: -------------------------------------------------------------------------------- 1 | #ifdef __WXGTK__ 2 | #include 3 | #if __cplusplus <= 199711L 4 | #ifndef nullptr 5 | #define nullptr (0) 6 | #endif 7 | #endif 8 | 9 | #if wxMAJOR_VERSION >= 3 10 | #include "clipbrd_gtk_wx3.h" 11 | #else 12 | #include "clipbrd_gtk_wx2.h" 13 | #endif 14 | #endif // __WXGTK__ 15 | -------------------------------------------------------------------------------- /src/MadPlugin.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | // Name: MadPlugin.cpp 3 | // Description: 4 | // Author: madedit@gmail.com 5 | // Maintainer: minggang.li@gmail.com 6 | // Licence: GPL 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "plugin.h" 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/plugin_example/makefile.linux: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXX = g++ 4 | 5 | CXXFLAGS = 6 | LIBS = 7 | 8 | OBJ = plugin.o 9 | DLL = plugin.so 10 | 11 | 12 | RM = rm -f 13 | 14 | .PHONY: all all-before all-after clean clean-custom 15 | 16 | all: all-before $(DLL) all-after 17 | 18 | 19 | clean: clean-custom 20 | $(RM) $(OBJ) $(DLL) 21 | 22 | 23 | $(DLL): $(OBJ) 24 | $(CXX) -shared $(OBJ) $(LIBS) -o $(DLL) 25 | 26 | .cpp.o: 27 | $(CXX) $(CXXFLAGS) -c $< -o $@ 28 | 29 | -------------------------------------------------------------------------------- /src/plugin_example/makefile.mingw32: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXX = g++ 4 | 5 | CXXFLAGS = -DWIN32 6 | LIBS = 7 | 8 | OBJ = plugin.o 9 | DLL = plugin.dll 10 | 11 | 12 | RM = del /F 13 | 14 | .PHONY: all all-before all-after clean clean-custom 15 | 16 | all: all-before $(DLL) all-after 17 | 18 | 19 | clean: clean-custom 20 | $(RM) $(OBJ) $(DLL) 21 | 22 | 23 | $(DLL): $(OBJ) 24 | $(CXX) -shared $(OBJ) $(LIBS) -o $(DLL) 25 | 26 | .cpp.o: 27 | $(CXX) $(CXXFLAGS) -c $< -o $@ 28 | 29 | -------------------------------------------------------------------------------- /src/plugin_example/makefile.vc: -------------------------------------------------------------------------------- 1 | 2 | 3 | CXX = cl 4 | LINK = link 5 | 6 | CXXFLAGS = /D"WIN32" /MT /GS /Zc:wchar_t /Wp64 /TP 7 | LINKFLAGS = /SUBSYSTEM:WINDOWS /NOLOGO /ENTRY:DllMain /INCREMENTAL:NO /OPT:REF /OPT:ICF /MACHINE:X86 /DLL 8 | LIBS = 9 | 10 | OBJ = plugin.obj 11 | DLL = plugin.dll 12 | 13 | 14 | RM = del /F 15 | 16 | all: all-before $(DLL) all-after 17 | all-before: 18 | all-after: 19 | 20 | clean: 21 | $(RM) $(OBJ) $(DLL) 22 | 23 | $(DLL): $(OBJ) 24 | $(LINK) $(LINKFLAGS) /OUT:$(DLL) $(LIBS) $(OBJ) 25 | 26 | plugin.obj: plugin.cpp 27 | $(CXX) $(CXXFLAGS) /c /Fo$@ $** 28 | 29 | .PHONY: all all-before all-after clean 30 | -------------------------------------------------------------------------------- /src/plugin_example/vc_cl.bat: -------------------------------------------------------------------------------- 1 | cl /D"WIN32" /MT /GS /Zc:wchar_t /Wp64 /TP %1 /link /SUBSYSTEM:WINDOWS /NOLOGO /ENTRY:DllMain /OUT:%2 /INCREMENTAL:NO /OPT:REF /OPT:ICF /MACHINE:X86 /DLL -------------------------------------------------------------------------------- /src/plugin_example/wxwin16x16.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *wxwin16x16_xpm[] = { 3 | "16 16 6 1", 4 | " c None", 5 | ". c #000000", 6 | "X c #000084", 7 | "o c #FFFFFF", 8 | "O c #FFFF00", 9 | "+ c #FF0000", 10 | " ", 11 | " ", 12 | " ....... ", 13 | " .XXXXX. ", 14 | " .oXXXX. ", 15 | " .oXXX.......", 16 | ".....oXXX.OOOOO.", 17 | ".+++.XXXX.oOOOO.", 18 | ".o++......oOOOO.", 19 | ".o++++. .oOOOO.", 20 | ".o++++. .OOOOO.", 21 | ".+++++. .......", 22 | "....... ", 23 | " ", 24 | " ", 25 | " "}; 26 | -------------------------------------------------------------------------------- /src/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiMinggang/madedit-mod/22280d049eec242ad16058eab5253408d3e72a25/src/resource.h -------------------------------------------------------------------------------- /syntax/filename.list: -------------------------------------------------------------------------------- 1 | # format: [filename][spaces][syn file] 2 | 3 | makefile syntax_conf.syn 4 | Makefile syntax_conf.syn 5 | CMakeLists syntax_conf.syn 6 | SConscript syntax_python.syn 7 | SConstruct syntax_python.syn 8 | -------------------------------------------------------------------------------- /syntax/firstline.list: -------------------------------------------------------------------------------- 1 | # format: [line (sub)string][spaces][syn file] 2 | 3 | bin/sh syntax_sh.syn 4 | bin/bash syntax_sh.syn 5 | ?xml syntax_xml.syn 6 | bin/make syntax_conf.syn 7 | bin/awk syntax_awk.syn 8 | bin/perl syntax_perl.syn 9 | bin/python syntax_python.syn 10 | bin/ruby syntax_ruby.syn 11 | bin/tclsh syntax_tcl.syn 12 | 13 |