summaryrefslogtreecommitdiff
path: root/src/matcher.h
AgeCommit message (Collapse)AuthorFilesLines
2007-02-05The continual reallocation of GValueArray is the last trivially avoidableChris Wilson1-1/+1
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk> The continual reallocation of GValueArray is the last trivially avoidable g_realloc. * src/interpret.c: (main): * src/matcher.c: (_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_match), (_vte_matcher_free_params_array): * src/matcher.h: * src/table.c: (_vte_table_extract_string): * src/trie.c: (_vte_trie_matchx), (_vte_trie_match), (main): * src/vte.c: (vte_terminal_process_incoming): svn path=/trunk/; revision=1622
2007-01-17As part of Bug 397439.Chris Wilson1-0/+23
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk> As part of Bug 397439. * src/matcher.c: (_vte_matcher_add), (_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_new), (_vte_matcher_match), (_vte_matcher_print): * src/matcher.h: * src/table.c: (_vte_table_new): * src/table.h: * src/trie.c: (_vte_trie_new): * src/trie.h: _vte_match_match() is called extremely frequently, and the switch shows up on the profiles. Replace the switch with a function pointer obtained by introducing function tables for the matcher implementations. svn path=/trunk/; revision=1444
2006-11-16Bug 356602 – const cast warning fixes for libvte Patch by Ryan LortieMariano Suárez-Alvarez1-1/+1
2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org> Bug 356602 – const cast warning fixes for libvte Patch by Ryan Lortie (desrt) * src/matcher.h: Use const char * where appropriate. * src/matcher.c: Use const char * where appropriate. Cast g_strdup to (GCacheDupFunc) to avoid a warning. * src/vtetc.h: Use const char * where appropriate. * src/vtetc.c: Use const char * where appropriate. Cast g_strdup to (GCacheDupFunc) to avoid a warning. * src/vte.c: Use const char * where appropriate.
2006-04-18Remove the #ident strings.Behdad Esfahbod1-1/+0
2005-03-14Add patch for excessive memory consumption when opening new tabs. ThisKjartan Maraas1-7/+4
2005-03-14 Kjartan Maraas <kmaraas@gnome.org> * src/Makefile.am: * src/interpret.c: (main): * src/matcher.c: (_vte_matcher_add), (_vte_matcher_init), (_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_new), (_vte_matcher_free): * src/matcher.h: * src/vte.c: (vte_terminal_set_emulation), (vte_terminal_init): * src/vtetc.c: (_vte_termcap_create), (_vte_termcap_destroy), (_vte_termcap_new), (_vte_termcap_free): * src/vtetc.h: Add patch for excessive memory consumption when opening new tabs. This patch makes struct _vte_matcher and struct _vte_termcap shared between terminals and should reduce memory consumption with multiple tabs a lot. Patch from Aivars Kalvans <kalvans at inbox lv>. From bug #160993.
2003-05-21free the temporary array. add. use _vte_matcher_free_params_array insteadNalin Dahyabhai1-0/+3
* src/iso2022.c(_vte_iso2022_process): free the temporary array. * src/matcher.c(_vte_matcher_free_params_array): add. * src/vte.c: use _vte_matcher_free_params_array instead of the local copy, which is removed. * src/interpret.c, src/table.c, src/trie.c: use _vte_matcher_free_params_array to free parameter arrays instead of g_value_array_free, which doesn't take care of the pointer values. * src/vte.c(vte_sequence_handler_set_title_internal): only attempt to close the conversion descriptor if it was opened successfully. * src/vteapp.c: add the -k option to spin after gtk_main() returns. * src/vtefc.c: make copies of patterns with FcPatternDuplicate so that we know where all of the returned patterns came from. * src/vtexft.c(_vte_xft_font_for_char): set the item in the pattern array to NULL if we successfully opened a font using the pattern.
2003-05-07add VteConv as a thin wrapper around GIConv. use VteConv. remove. remove.Nalin Dahyabhai1-3/+0
* src/vteconv.c, src/vteconv.h: add VteConv as a thin wrapper around GIConv. * src/iso2022.c: use VteConv. * src/matcher.c(_vte_matcher_find_valid_encoding): remove. * src/matcher.c(_vte_matcher_wide_encoding): remove. * src/trie.c: use VteConv. * src/utf8echo.c: use VteConv. * src/vte.c: use VteConv (#112446).
2003-05-05include <glib.h> for gboolean type definition. include "config.h" andNalin Dahyabhai1-0/+4
* src/debug.h: include <glib.h> for gboolean type definition. * src/matcher.c: include "config.h" and "debug.h". * src/matcher.h: use G_BEGIN_DECLS/G_END_DECLS * src/table.h: use G_BEGIN_DECLS/G_END_DECLS * src/termcap.h: include <glib.h>, again for gboolean. * src/vtebg.h,src/vterdb.h,src/vtergb.h: adjust macro used to prevent multiple inclusions to match the rest of the tree. * src/vtefc.c(_vte_fc_patterns_from_pango_font_desc): provide a callback which can be used to override all defaults. * src/vtegl.h,src/vtexft.h: don't include "config.h" * src/vteglyph.c, src/vteglyph.h: add _vte_glyph_get_uncached().
2003-04-30remove the unused DEFAULT_ISO_8859_1 case. don't callNalin Dahyabhai1-3/+0
* src/vte.c(vte_sequence_handler_local_charset): remove the unused DEFAULT_ISO_8859_1 case. * src/vte.c(vte_terminal_class_init): don't call _vte_matcher_narrow_encoding(), because we don't need it any more. Change the error message emitted when _vte_matcher_wide_encoding() fails (#111925), and mark it for translation. * src/trie.c(main): don't call _vte_matcher_narrow_encoding() just to print its result. * src/vte.c(vte_terminal_set_encoding): include the right codeset name in the error message. * src/vteglyph.c(_vte_glyph_get): mark error message for translation. * src/matcher.c, src/matcher.h: remove _vte_matcher_narrow_encoding(). Make tables of strings "const".
2002-12-10- addNalin Dahyabhai1-0/+56