summaryrefslogtreecommitdiff
path: root/src/perl/perl-core.c
AgeCommit message (Collapse)Author
2002-03-24destruct level isn't touched anymore, it crashes irssi with a few people..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2641 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-02-01Removed some backwards compatibility code between CVS versions that brokeTimo Sirainen
/SET use_perl_lib git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2367 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-27toupper(), tolower(), isspace(), is..etc..() aren't safe with chars in someTimo Sirainen
systems, use our own is_...() functions now instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2348 dbcabf3a-b0e7-0310-adc4-f8d773084564
2002-01-10g_strdup() the error message before emitting "script error" signal, sinceTimo Sirainen
perl scripting might be executed during that signal and it clears the error message. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2302 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-11I always forget Perl 5.004 doesn't have PL_na .. so, now I've declared forTimo Sirainen
5.004, and changed all STRLEN n_a code to use PL_na instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2238 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-06Irssi::signal_add(), Irssi::timeout_add(), Irssi::input_add() and theirTimo Sirainen
variants now also allow use of code references. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2199 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03a bit more proper initializing of Irssi package..Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2180 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-12-03removed unused variableTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2178 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-25/SCRIPT LOAD modifies the script name so that all non-alphanumericTimo Sirainen
characters are translated to '_' char .. now this behaviour is done also when /SCRIPT UNLOAD is done, so people don't get confused why their "test-1" script can't be unloaded. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2145 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-19Settings of perl scripts are now stored in "perl/core/scripts" instead ofTimo Sirainen
old "perl/core". The settings are automatically moved to the perl/core/scripts for now - this will be removed before 0.7.99 comes out. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2101 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-18/SCRIPT UNLOAD didn't destroy the perl package from memory. Also the scriptsTimo Sirainen
weren't destroyed when error occured in them. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2053 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-11Updated perl API version. Fixed irssi to behave better if the API doesn'tTimo Sirainen
match (doesn't crash). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1985 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-25Boot dynaloader too even if perl libraries are compiled statically in irssi.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1917 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24typofix - s/per/perl/Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1916 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24bugfixTimo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1915 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24Added --with-perl-staticlib option to configure. If used, irssi's perlTimo Sirainen
libraries are compiled statically into irssi binary. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1914 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-24/SET perl_use_lib setting to specify the path for irssi's perl libraries.Timo Sirainen
Default should work usually, but if you for some reason want to use different then change this. May contain multiple paths separated with space. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1905 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-23Added eval { } around the DynaLoader::dl_unload_file() calls to get rid ofTimo Sirainen
the errors it's printing with perl < 5.6. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1900 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-21added irssi_init_finished variable to core.h which is TRUE after "irssi initTimo Sirainen
finished" signal is sent. Perl scripts aren't now autoloaded until irssi_init_finished is TRUE (fixes the crash at startup). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1879 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20Dependencies finally work correctly in perl libraries (they're each compiledTimo Sirainen
separately now). Added statusbar code to available to perl, it's now possible to create new statusbar items with perl scripts. statusbar_items_redraw(char *name) can now be used to easily redraw all named statusbar items in screen. Probably several other changes I've already forgotten :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1861 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-10-20Added API version check between perl module and perl libs.Timo Sirainen
perl_scripts_deinit() now destroys all dynamically loaded libraries (Irssi, Irssi::Irc, Irssi::UI too) so /UNLOAD perl should now release more memory, this also makes /unload perl, /load perl work again. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1859 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-14Module loading updates - /LOAD shows now also the statically loaded modules.Timo Sirainen
You can't /LOAD the same module twice. Syntax changed to /LOAD <module> [<submodule>], /UNLOAD <module> [<submodule>]. NOTE: all modules now need to call register_module() in their init() function. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-07Irssi crashed if loading script failed.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1713 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-08-07/SCRIPT RESET didn't work properly (start/stop functions were called inTimo Sirainen
wrong order). Added a few extra deinits. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1712 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-31Stop scripts when there's error in signal/timeout/input handler.Timo Sirainen
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1694 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-30Script name is printed now correctly if there's an error inTimo Sirainen
timeouts/signals. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1688 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-07-29--enable-perl* -> --with-perl*. Added a new libfe_perl which handles /SCRIPTTimo Sirainen
commands. /RUN -> /SCRIPT LOAD, /PERLFLUSH -> /SCRIPT FLUSH, /PERL -> /SCRIPT EXEC. Added /SCRIPT UNLOAD, /SCRIPT LIST. Lots of cleanups. filename_complete() has extra argument for "default directory" which is searched if no path is given when completing. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1680 dbcabf3a-b0e7-0310-adc4-f8d773084564