mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 01:25:42 +02:00
core: remove unneeded whitespace
This commit is contained in:
@@ -35,11 +35,11 @@ IF(ASCIIDOC_EXECUTABLE)
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} --version
|
||||
OUTPUT_VARIABLE ASCIIDOC_VERSION
|
||||
)
|
||||
|
||||
|
||||
IF(${ASCIIDOC_VERSION} MATCHES "asciidoc 8.*")
|
||||
SET(ASCIIDOC_FOUND TRUE)
|
||||
ENDIF(${ASCIIDOC_VERSION} MATCHES "asciidoc 8.*")
|
||||
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
ASCIIDOC_EXECUTABLE
|
||||
)
|
||||
|
||||
@@ -36,11 +36,11 @@ IF(LIBGCRYPT_CONFIG_EXECUTABLE)
|
||||
|
||||
EXEC_PROGRAM(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS)
|
||||
EXEC_PROGRAM(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS)
|
||||
|
||||
|
||||
IF(${GCRYPT_CFLAGS} MATCHES "\n")
|
||||
SET(GCRYPT_CFLAGS " ")
|
||||
ENDIF(${GCRYPT_CFLAGS} MATCHES "\n")
|
||||
|
||||
|
||||
IF(GCRYPT_LDFLAGS AND GCRYPT_CFLAGS)
|
||||
SET(GCRYPT_FOUND TRUE)
|
||||
ENDIF(GCRYPT_LDFLAGS AND GCRYPT_CFLAGS)
|
||||
|
||||
@@ -63,7 +63,7 @@ IF(HAVE_LIBINTL_H)
|
||||
ELSE(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
CHECK_LIBRARY_EXISTS(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
|
||||
ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
|
||||
|
||||
IF(LIBINTL_HAS_DGETTEXT)
|
||||
SET(GETTEXT_FOUND TRUE)
|
||||
ENDIF(LIBINTL_HAS_DGETTEXT)
|
||||
|
||||
@@ -54,12 +54,12 @@ IF(PERL_EXECUTABLE)
|
||||
COMMAND ${PERL_EXECUTABLE} -MExtUtils::Embed -e ldopts
|
||||
OUTPUT_VARIABLE PERL_LFLAGS
|
||||
)
|
||||
|
||||
|
||||
# remove the new lines from the output by replacing them with empty strings
|
||||
STRING(REPLACE "\n" "" PERL_INTERNAL_DIR "${PERL_INTERNAL_DIR}")
|
||||
STRING(REPLACE "\n" "" PERL_CFLAGS "${PERL_CFLAGS}")
|
||||
STRING(REPLACE "\n" "" PERL_LFLAGS "${PERL_LFLAGS}")
|
||||
|
||||
|
||||
FIND_PATH(PERL_INCLUDE_PATH
|
||||
NAMES perl.h
|
||||
PATHS ${PERL_INTERNAL_DIR}
|
||||
@@ -69,11 +69,11 @@ IF(PERL_EXECUTABLE)
|
||||
NAMES perl
|
||||
PATHS /usr/lib /usr/local/lib /usr/pkg/lib ${PERL_INTERNAL_DIR}
|
||||
)
|
||||
|
||||
|
||||
IF(PERL_LIBRARY AND PERL_INCLUDE_PATH)
|
||||
SET(PERL_FOUND TRUE)
|
||||
ENDIF(PERL_LIBRARY AND PERL_INCLUDE_PATH)
|
||||
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
PERL_EXECUTABLE
|
||||
PERL_INCLUDE_PATH
|
||||
|
||||
@@ -151,7 +151,7 @@ endmacro(_pkgconfig_invoke_dyn)
|
||||
# Splits given arguments into options and a package list
|
||||
macro(_pkgconfig_parse_options _result _is_req)
|
||||
set(${_is_req} 0)
|
||||
|
||||
|
||||
foreach(_pkg ${ARGN})
|
||||
if (_pkg STREQUAL "REQUIRED")
|
||||
set(${_is_req} 1)
|
||||
@@ -198,7 +198,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||
message(STATUS "checking for modules '${_pkg_check_modules_list}'")
|
||||
endif(_pkg_check_modules_cnt EQUAL 1)
|
||||
endif(NOT ${_is_silent})
|
||||
|
||||
|
||||
set(_pkg_check_modules_packages)
|
||||
set(_pkg_check_modules_failed)
|
||||
|
||||
@@ -225,7 +225,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||
if (_pkg_check_modules_pkg_op STREQUAL "=")
|
||||
list(APPEND _pkg_check_modules_exist_query --exact-version)
|
||||
endif(_pkg_check_modules_pkg_op STREQUAL "=")
|
||||
|
||||
|
||||
if (_pkg_check_modules_pkg_op STREQUAL "<=")
|
||||
list(APPEND _pkg_check_modules_exist_query --max-version)
|
||||
endif(_pkg_check_modules_pkg_op STREQUAL "<=")
|
||||
@@ -272,7 +272,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||
else(_pkg_check_modules_failed)
|
||||
# when we are here, we checked whether requested modules
|
||||
# exist. Now, go through them and set variables
|
||||
|
||||
|
||||
_pkgconfig_set(${_prefix}_FOUND 1)
|
||||
list(LENGTH _pkg_check_modules_packages pkg_count)
|
||||
|
||||
@@ -284,7 +284,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
|
||||
else(pkg_count EQUAL 1)
|
||||
set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
|
||||
endif(pkg_count EQUAL 1)
|
||||
|
||||
|
||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion )
|
||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" PREFIX "" --variable=prefix )
|
||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" INCLUDEDIR "" --variable=includedir )
|
||||
@@ -350,7 +350,7 @@ macro(pkg_search_module _prefix _module0)
|
||||
message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
|
||||
endif(${_pkg_is_required})
|
||||
endif(NOT ${_prefix}_FOUND)
|
||||
|
||||
|
||||
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
|
||||
endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
|
||||
endmacro(pkg_search_module)
|
||||
|
||||
@@ -43,27 +43,27 @@ IF(PYTHON_EXECUTABLE)
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('CONFINCLUDEPY')"
|
||||
OUTPUT_VARIABLE PYTHON_INC_DIR
|
||||
)
|
||||
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('LIBPL')"
|
||||
OUTPUT_VARIABLE PYTHON_POSSIBLE_LIB_PATH
|
||||
)
|
||||
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import *; print get_config_var('LINKFORSHARED')"
|
||||
OUTPUT_VARIABLE PYTHON_LFLAGS
|
||||
)
|
||||
|
||||
|
||||
# remove the new lines from the output by replacing them with empty strings
|
||||
STRING(REPLACE "\n" "" PYTHON_INC_DIR "${PYTHON_INC_DIR}")
|
||||
STRING(REPLACE "\n" "" PYTHON_POSSIBLE_LIB_PATH "${PYTHON_POSSIBLE_LIB_PATH}")
|
||||
STRING(REPLACE "\n" "" PYTHON_LFLAGS "${PYTHON_LFLAGS}")
|
||||
|
||||
|
||||
FIND_PATH(PYTHON_INCLUDE_PATH
|
||||
NAMES Python.h
|
||||
PATHS ${PYTHON_INC_DIR}
|
||||
)
|
||||
|
||||
|
||||
FIND_LIBRARY(PYTHON_LIBRARY
|
||||
NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
|
||||
PATHS ${PYTHON_POSSIBLE_LIB_PATH}
|
||||
@@ -72,12 +72,12 @@ IF(PYTHON_EXECUTABLE)
|
||||
IF(PYTHON_LIBRARY AND PYTHON_INCLUDE_PATH)
|
||||
SET(PYTHON_FOUND TRUE)
|
||||
ENDIF(PYTHON_LIBRARY AND PYTHON_INCLUDE_PATH)
|
||||
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
PYTHON_EXECUTABLE
|
||||
PYTHON_INCLUDE_PATH
|
||||
PYTHON_LIBRARY
|
||||
PYTHON_LFLAGS
|
||||
)
|
||||
|
||||
|
||||
ENDIF(PYTHON_EXECUTABLE)
|
||||
|
||||
@@ -51,7 +51,7 @@ IF(RUBY_EXECUTABLE)
|
||||
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['libdir']"
|
||||
OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH
|
||||
)
|
||||
|
||||
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['rubylibdir']"
|
||||
OUTPUT_VARIABLE RUBY_RUBY_LIB_PATH
|
||||
@@ -61,14 +61,14 @@ IF(RUBY_EXECUTABLE)
|
||||
COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "puts Config::CONFIG['ruby_version']"
|
||||
OUTPUT_VARIABLE RUBY_VERSION
|
||||
)
|
||||
|
||||
|
||||
# remove the new lines from the output by replacing them with empty strings
|
||||
STRING(REPLACE "\n" "" RUBY_ARCH_DIR "${RUBY_ARCH_DIR}")
|
||||
STRING(REPLACE "\n" "" RUBY_POSSIBLE_LIB_PATH "${RUBY_POSSIBLE_LIB_PATH}")
|
||||
STRING(REPLACE "\n" "" RUBY_RUBY_LIB_PATH "${RUBY_RUBY_LIB_PATH}")
|
||||
STRING(REPLACE "\n" "" RUBY_ARCH "${RUBY_ARCH}")
|
||||
STRING(REPLACE "\n" "" RUBY_VERSION "${RUBY_VERSION}")
|
||||
|
||||
|
||||
FIND_PATH(RUBY_INCLUDE_PATH
|
||||
NAMES ruby.h
|
||||
PATHS ${RUBY_ARCH_DIR}
|
||||
@@ -85,11 +85,11 @@ IF(RUBY_EXECUTABLE)
|
||||
IF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
SET(RUBY_FOUND TRUE)
|
||||
ENDIF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
|
||||
|
||||
IF(${RUBY_VERSION} STREQUAL "1.9.0")
|
||||
SET(RUBY_FOUND FALSE)
|
||||
ENDIF(${RUBY_VERSION} STREQUAL "1.9.0")
|
||||
|
||||
|
||||
MARK_AS_ADVANCED(
|
||||
RUBY_EXECUTABLE
|
||||
RUBY_LIBRARY
|
||||
|
||||
+13
-13
@@ -438,9 +438,9 @@ if test "x$enable_perl" = "xyes" ; then
|
||||
else
|
||||
PERL_VERSION=`perl -V:version | sed "s/version='\(.*\)';/\1/"`
|
||||
AC_MSG_CHECKING(for Perl headers files)
|
||||
|
||||
|
||||
PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT; echo "#include <perl.h>" >> $PT; echo "#include <XSUB.h>" >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
|
||||
|
||||
|
||||
if test "x$PERL_HEADER_TEST" = "x0" ; then
|
||||
PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
|
||||
AC_MSG_RESULT(found)
|
||||
@@ -493,7 +493,7 @@ if test "x$enable_python" = "xyes" ; then
|
||||
PYTHON_SYSPREFIX=`$PYTHON -c 'import sys; print "%s" % sys.prefix'`
|
||||
PYTHON_VERSION=`$PYTHON -c 'import sys ; print sys.version[[:3]]'`
|
||||
PYTHON_INCLUDE=`$PYTHON -c "import distutils.sysconfig,string; print distutils.sysconfig.get_config_var('CONFINCLUDEPY')"`
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for Python header files)
|
||||
if test -r "$PYTHON_INCLUDE/Python.h"; then
|
||||
PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
|
||||
@@ -608,7 +608,7 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
if test -n "$lua_lib"; then
|
||||
LDFLAGS="$LDFLAGS -L$lua_lib"
|
||||
fi
|
||||
|
||||
|
||||
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
|
||||
PKGCONFIG=""
|
||||
AC_CHECK_PROGS(PKGCONFIG, pkg-config)
|
||||
@@ -657,9 +657,9 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
|
||||
if test "x$ac_found_lua_lib" = "xyes" ; then
|
||||
LUA_VERSION=">=5.1.0"
|
||||
|
||||
|
||||
LUA_LFLAGS="$LDFLAGS -llua$l -lm"
|
||||
|
||||
|
||||
ac2_save_LDFLAGS="$LDFLAGS"
|
||||
LDFLAGS="$LDFLAGS -llua$l -lm"
|
||||
|
||||
@@ -670,9 +670,9 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
AC_CHECK_LIB(lualib$l,luaL_openlib,ac_found_liblua_lib="yes",ac_found_liblua_lib="no")
|
||||
if test "x$ac_found_liblua_lib" = "xyes" ; then
|
||||
LUA_VERSION="5.0.x"
|
||||
|
||||
|
||||
LUA_LFLAGS="$LUA_LFLAGS -llualib$l"
|
||||
|
||||
|
||||
if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
|
||||
LUA_LFLAGS="$LUA_LFLAGS -ldl"
|
||||
fi
|
||||
@@ -717,7 +717,7 @@ TCL_VERSION=
|
||||
|
||||
if test "x$enable_tcl" = "xyes" ; then
|
||||
enable_plugins="yes"
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for tclConfig.sh)
|
||||
tcl_found="no"
|
||||
tcl_dirs="/usr/lib/tcl8.5 /usr/lib64/tcl8.5 /lib /lib64 /usr/lib /usr/lib64 /usr/tcl/lib /usr/tcl/lib64 /usr/local/tcl-8.5/lib /usr/local/tcl-8.5/lib64 /usr/local/lib /usr/local/lib64 /usr/local/tcl/lib /usr/local/tcl/lib64 /opt/lib /opt/lib64"
|
||||
@@ -755,7 +755,7 @@ GUILE_VERSION=
|
||||
|
||||
if test "x$enable_guile" = "xyes" ; then
|
||||
enable_plugins="yes"
|
||||
|
||||
|
||||
guile_found="no"
|
||||
GUILECONFIG=""
|
||||
AC_CHECK_PROGS(GUILECONFIG, guile-config)
|
||||
@@ -767,7 +767,7 @@ if test "x$enable_guile" = "xyes" ; then
|
||||
GUILE_VERSION=`$GUILECONFIG info guileversion`
|
||||
tcl_found="yes"
|
||||
fi
|
||||
|
||||
|
||||
if test "x$tcl_found" = "xno" ; then
|
||||
AC_MSG_WARN([
|
||||
*** Script guile-config couldn't be found on your system.
|
||||
@@ -802,7 +802,7 @@ fi
|
||||
if test "x$enable_gcrypt" = "xyes" ; then
|
||||
AC_CHECK_HEADER(gcrypt.h,ac_found_gcrypt_header="yes",ac_found_gcrypt_header="no")
|
||||
AC_CHECK_LIB(gcrypt,gcry_check_version,ac_found_gcrypt_lib="yes",ac_found_gcrypt_lib="no")
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for gcrypt headers and librairies)
|
||||
if test "x$ac_found_gcrypt_header" = "xno" -o "x$ac_found_gcrypt_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
@@ -832,7 +832,7 @@ fi
|
||||
if test "x$enable_gnutls" = "xyes" ; then
|
||||
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
|
||||
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
|
||||
|
||||
|
||||
AC_MSG_CHECKING(for gnutls headers and librairies)
|
||||
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
|
||||
Vendored
+19
-19
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -288,12 +288,12 @@ def docgen_cmd_cb(data, buffer, args):
|
||||
infolists = get_infolists()
|
||||
hdata = get_hdata()
|
||||
completions = get_completions()
|
||||
|
||||
|
||||
# get path and replace ~ by home if needed
|
||||
path = weechat.config_get_plugin('path')
|
||||
if path.startswith('~'):
|
||||
path = '%s%s' % (os.environ['HOME'], path[1:])
|
||||
|
||||
|
||||
# write to doc files, by locale
|
||||
num_files = defaultdict(int)
|
||||
num_files_updated = defaultdict(int)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -206,7 +206,7 @@ les touches vitales :
|
||||
- 'tab': compléter le texte de la barre d'entrée, comme avec votre shell
|
||||
- 'page préc/suiv': faire défiler le texte dans le tampon courant
|
||||
- 'alt + A': sauter au tampon avec de l'activité (dans la "hotlist")
|
||||
|
||||
|
||||
Selon votre clavier et/ou vos besoins, vous pouvez associer n'importe
|
||||
quelle touche à une commande avec la commande `/key`.
|
||||
Une touche utile est meta-k (alt-k) pour trouver le code des touches.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -148,7 +148,7 @@ W razie potrzeby, popraw zmienna TERM: `export TERM="xxx"`.
|
||||
Podczas używania WeeChat pod screenem/tmuxem pojawiają mi się dziwne, losowe znaki, jak to naprawić?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Może to być spowodowane przez złą wartość zmiennej TERM w swojej powłoce (spójrz
|
||||
Może to być spowodowane przez złą wartość zmiennej TERM w swojej powłoce (spójrz
|
||||
na wynik `echo $TERM` w swoim terminalu, *poza screenem/tmuxem*).
|
||||
|
||||
Na przykład, 'xterm-color' może wyświetlać takie dziwne znaki, możesz użyc 'xterm',
|
||||
@@ -232,8 +232,8 @@ Na przykład:
|
||||
/bar del input
|
||||
----------------------------------------
|
||||
|
||||
Jeśli kiedyś przestanie ci to odpowiadać, po prostu usuń ten pasek, WeeChat
|
||||
automatycznie stworzy nowy pasek "input" jeśli element "input_text" nie zostanie
|
||||
Jeśli kiedyś przestanie ci to odpowiadać, po prostu usuń ten pasek, WeeChat
|
||||
automatycznie stworzy nowy pasek "input" jeśli element "input_text" nie zostanie
|
||||
użyty w żadnym z pasków:
|
||||
|
||||
----------------------------------------
|
||||
@@ -325,7 +325,7 @@ zalecane wartości to:
|
||||
* poza screenem: 'xterm-256color', 'rxvt-256color', 'putty-256color',...
|
||||
|
||||
[NOTE]
|
||||
Może okazać się konieczne zainstalowanie pakietu "ncurses-term" w celu użycia
|
||||
Może okazać się konieczne zainstalowanie pakietu "ncurses-term" w celu użycia
|
||||
tych wartości w zmiennej 'TERM'.
|
||||
|
||||
Jeśli używasz screena, możesz dodać to do swojego '~/.screenrc':
|
||||
@@ -415,7 +415,7 @@ Lista domyślnych skrótów znajduje się w poradniku użytkownika.
|
||||
Jak używać globalnej historii (zamiast historii buforu) za pomocą strzałek góra/dół?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Możesz przypisać strzałki w górę i dół do globalnej historii (domyślnie dla
|
||||
Możesz przypisać strzałki w górę i dół do globalnej historii (domyślnie dla
|
||||
globalnej historii przypisane są klawisze @k(C-)@k(↑) oraz @k(C-)@k(↓)).
|
||||
|
||||
Przykład:
|
||||
@@ -426,7 +426,7 @@ Przykład:
|
||||
----------------------------------------
|
||||
|
||||
[NOTE]
|
||||
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego terminala. W celu
|
||||
Klawisze "meta2-A" i "meta2-B" mogą być inne dla twojego terminala. W celu
|
||||
znalezienia ich kodów wciśnij @k(A-)@k(k) następnie przycisk (góra lub dół).
|
||||
|
||||
|
||||
@@ -504,7 +504,7 @@ filtry (domyślnie @k(A-)@k(=) zmienia stan filtrów).
|
||||
Jak mogę filtrować wiadomości o wejściu/opuszczeniu/wyjściu na kanałach IRC?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Za pomocą inteligentnych filtrów (zachowuje wejścia/opuszczenia/wyjścia od osób
|
||||
Za pomocą inteligentnych filtrów (zachowuje wejścia/opuszczenia/wyjścia od osób
|
||||
piszących niedawno):
|
||||
|
||||
----------------------------------------
|
||||
|
||||
@@ -102,7 +102,7 @@ Argumenty:
|
||||
* 'licencja': string, licencja
|
||||
* 'opis': string, krótki opis skryptu
|
||||
* 'funkcja_wyłączająca': string, nazwa funkcji wywoływanej podczas wyładowania skryptu
|
||||
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
|
||||
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
|
||||
w UTF-8 można nie podawać tej wartości - UTF-8 to domyślne kodowanie)
|
||||
|
||||
Przykład dla skryptu w każdym z języków:
|
||||
@@ -194,7 +194,7 @@ Możesz zajrzeć do 'Opisu API wtyczek WeeChat' po więcej informacji na temat
|
||||
każdej z funkcji API: prototyp, argumenty, zwracane wartości, przykłady.
|
||||
|
||||
Ważne jest rozróżnienie 'wtyczki' od 'skryptu': 'wtyczka' jest plikiem binarnym
|
||||
skompilowanym i załadowanym za pomocą komendy `/plugin`, natomiast 'skrypt' jest
|
||||
skompilowanym i załadowanym za pomocą komendy `/plugin`, natomiast 'skrypt' jest
|
||||
plikiem tekstowym załadowanym przez wtyczkę jak 'python' za pomocą komendy
|
||||
`/python`.
|
||||
|
||||
@@ -596,7 +596,7 @@ weechat.hook_timer(60 * 1000, 60, 0, "timer_cb", "")
|
||||
Wykonuje proces w tle
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Do wykonywania procesów w tle służy `hook_process`. Twoje callbacki zostaną
|
||||
Do wykonywania procesów w tle służy `hook_process`. Twoje callbacki zostaną
|
||||
wywołane, kiedy dane będą gotowe. Może zostać wywołane wiele razy.
|
||||
|
||||
Dla ostatniego wykonania Twojego callbacku 'rc' jest ustawiane na 0, lub wartość
|
||||
@@ -782,7 +782,7 @@ Informacje
|
||||
Wersja WeeChat
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
Najprostszym sposobem na sprawdzenie wersji to pozyskanie "version_number"
|
||||
Najprostszym sposobem na sprawdzenie wersji to pozyskanie "version_number"
|
||||
i wykonanie porównania między liczbą całkowitą a heksadecymalnym numerem wersji.
|
||||
|
||||
Przykład:
|
||||
|
||||
+3
-3
@@ -40,7 +40,7 @@ FIND_PROGRAM(MSGMERGE_EXECUTABLE msgmerge)
|
||||
FIND_PROGRAM(MSGFMT_EXECUTABLE msgfmt)
|
||||
|
||||
IF(XGETTEXT_EXECUTABLE AND MSGMERGE_EXECUTABLE AND MSGFMT_EXECUTABLE)
|
||||
|
||||
|
||||
# Create PO template file weechat.pot
|
||||
SET(SRC_FILES)
|
||||
SET(POT_DEPENDS)
|
||||
@@ -62,7 +62,7 @@ IF(XGETTEXT_EXECUTABLE AND MSGMERGE_EXECUTABLE AND MSGFMT_EXECUTABLE)
|
||||
SET(GMO_FILES)
|
||||
FOREACH(pofile ${PO_FILES})
|
||||
GET_FILENAME_COMPONENT(polang ${pofile} NAME_WE)
|
||||
|
||||
|
||||
SET(gmofile ${CMAKE_CURRENT_BINARY_DIR}/${polang}.gmo)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${gmofile}
|
||||
@@ -72,7 +72,7 @@ IF(XGETTEXT_EXECUTABLE AND MSGMERGE_EXECUTABLE AND MSGFMT_EXECUTABLE)
|
||||
DEPENDS ${POT_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/${pofile}
|
||||
COMMENT "Compiling locales (${polang})"
|
||||
)
|
||||
|
||||
|
||||
INSTALL(FILES ${gmofile} DESTINATION ${LOCALEDIR}/${polang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo)
|
||||
SET(GMO_FILES ${GMO_FILES} ${gmofile})
|
||||
ENDFOREACH(pofile ${PO_FILES})
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ ENDIF(ENABLE_GCRYPT)
|
||||
# Check for GnuTLS
|
||||
IF(ENABLE_GNUTLS)
|
||||
FIND_PACKAGE(GnuTLS)
|
||||
|
||||
|
||||
IF(GNUTLS_FOUND)
|
||||
STRING(REGEX REPLACE "/[^/]*$" "" GNUTLS_LIBRARY_PATH "${GNUTLS_LIBRARY}")
|
||||
ADD_DEFINITIONS(-DHAVE_GNUTLS)
|
||||
|
||||
@@ -80,14 +80,14 @@ weechat_backtrace_addr2line (int number, void *address, const char *symbol)
|
||||
char cmd_line[1024];
|
||||
char line[1024], *ptr_line, *pos;
|
||||
char function_name[1024];
|
||||
|
||||
|
||||
rc = dladdr (address, &info);
|
||||
if ((rc == 0) || !info.dli_fname || !info.dli_fname[0])
|
||||
{
|
||||
weechat_backtrace_printf ("%03d %s", number, symbol);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
addr = address;
|
||||
if (info.dli_fbase >= (const void *) 0x40000000)
|
||||
addr = (void *)((unsigned long)((const char *) addr) -
|
||||
@@ -166,7 +166,7 @@ weechat_backtrace ()
|
||||
#ifdef HAVE_BACKTRACE
|
||||
trace_size = backtrace (trace, BACKTRACE_MAX);
|
||||
symbols = backtrace_symbols (trace, trace_size);
|
||||
|
||||
|
||||
for (i = 0; i < trace_size; i++)
|
||||
{
|
||||
weechat_backtrace_addr2line (i + 1, trace[i], symbols[i]);
|
||||
@@ -175,6 +175,6 @@ weechat_backtrace ()
|
||||
weechat_backtrace_printf (" No backtrace info (no debug info available "
|
||||
"or no backtrace possible on your system).");
|
||||
#endif
|
||||
|
||||
|
||||
weechat_backtrace_printf ("======= End of backtrace =======");
|
||||
}
|
||||
|
||||
+313
-313
File diff suppressed because it is too large
Load Diff
+94
-94
File diff suppressed because it is too large
Load Diff
+164
-164
File diff suppressed because it is too large
Load Diff
+145
-145
File diff suppressed because it is too large
Load Diff
+37
-37
File diff suppressed because it is too large
Load Diff
+72
-72
File diff suppressed because it is too large
Load Diff
@@ -91,16 +91,16 @@ struct t_hashtable
|
||||
struct t_hashtable_item **htable; /* table to map hashes with linked */
|
||||
/* lists */
|
||||
int items_count; /* number of items in hashtable */
|
||||
|
||||
|
||||
/* type for keys and values */
|
||||
enum t_hashtable_type type_keys; /* type for keys: int/str/pointer */
|
||||
enum t_hashtable_type type_values; /* type for values: int/str/pointer */
|
||||
|
||||
|
||||
/* callbacks */
|
||||
t_hashtable_hash_key *callback_hash_key; /* hash key to int value */
|
||||
t_hashtable_keycmp *callback_keycmp; /* compare two keys */
|
||||
t_hashtable_free_value *callback_free_value; /* callback to free value */
|
||||
|
||||
|
||||
/* keys/values as string */
|
||||
char *keys_values; /* keys/values as string (NULL if */
|
||||
/* never asked) */
|
||||
|
||||
+39
-39
File diff suppressed because it is too large
Load Diff
+331
-331
File diff suppressed because it is too large
Load Diff
+4
-4
@@ -108,7 +108,7 @@ struct t_hook
|
||||
int running; /* 1 if hook is currently running */
|
||||
int priority; /* priority (to sort hooks) */
|
||||
void *callback_data; /* data sent to callback */
|
||||
|
||||
|
||||
/* hook data (depends on hook type) */
|
||||
void *hook_data; /* hook specific data */
|
||||
struct t_hook *prev_hook; /* link to previous hook */
|
||||
@@ -128,17 +128,17 @@ struct t_hook_command
|
||||
char *args; /* (for /help) command arguments */
|
||||
char *args_description; /* (for /help) args long description*/
|
||||
char *completion; /* template for completion */
|
||||
|
||||
|
||||
/* templates */
|
||||
int cplt_num_templates; /* number of templates for compl. */
|
||||
char **cplt_templates; /* completion templates */
|
||||
char **cplt_templates_static; /* static part of template (at */
|
||||
/* beginning */
|
||||
|
||||
|
||||
/* arguments for each template */
|
||||
int *cplt_template_num_args; /* number of arguments for template */
|
||||
char ***cplt_template_args; /* arguments for each template */
|
||||
|
||||
|
||||
/* concatenation of arg N for each template */
|
||||
int cplt_template_num_args_concat; /* number of concatened arguments */
|
||||
char **cplt_template_args_concat; /* concatened arguments */
|
||||
|
||||
+65
-65
File diff suppressed because it is too large
Load Diff
+11
-11
@@ -71,17 +71,17 @@ input_exec_command (struct t_gui_buffer *buffer,
|
||||
{
|
||||
int rc;
|
||||
char *command, *pos, *ptr_args;
|
||||
|
||||
|
||||
if ((!string) || (!string[0]))
|
||||
return;
|
||||
|
||||
|
||||
command = strdup (string);
|
||||
if (!command)
|
||||
return ;
|
||||
|
||||
|
||||
/* look for end of command */
|
||||
ptr_args = NULL;
|
||||
|
||||
|
||||
pos = &command[strlen (command) - 1];
|
||||
if (pos[0] == ' ')
|
||||
{
|
||||
@@ -89,9 +89,9 @@ input_exec_command (struct t_gui_buffer *buffer,
|
||||
pos--;
|
||||
pos[1] = '\0';
|
||||
}
|
||||
|
||||
|
||||
rc = hook_command_exec (buffer, any_plugin, plugin, command);
|
||||
|
||||
|
||||
pos = strchr (command, ' ');
|
||||
if (pos)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ input_exec_command (struct t_gui_buffer *buffer,
|
||||
if (!ptr_args[0])
|
||||
ptr_args = NULL;
|
||||
}
|
||||
|
||||
|
||||
switch (rc)
|
||||
{
|
||||
case 0: /* command hooked, KO */
|
||||
@@ -161,10 +161,10 @@ input_data (struct t_gui_buffer *buffer, const char *data)
|
||||
char *pos, *buf;
|
||||
const char *ptr_data, *ptr_data_for_buffer;
|
||||
int length, char_size;
|
||||
|
||||
|
||||
if (!buffer || !data || !data[0] || (data[0] == '\r') || (data[0] == '\n'))
|
||||
return;
|
||||
|
||||
|
||||
/* use new data (returned by plugin) */
|
||||
ptr_data = data;
|
||||
while (ptr_data && ptr_data[0])
|
||||
@@ -172,7 +172,7 @@ input_data (struct t_gui_buffer *buffer, const char *data)
|
||||
pos = strchr (ptr_data, '\n');
|
||||
if (pos)
|
||||
pos[0] = '\0';
|
||||
|
||||
|
||||
ptr_data_for_buffer = string_input_for_buffer (ptr_data);
|
||||
if (ptr_data_for_buffer)
|
||||
{
|
||||
@@ -202,7 +202,7 @@ input_data (struct t_gui_buffer *buffer, const char *data)
|
||||
/* input string is a command */
|
||||
input_exec_command (buffer, 1, buffer->plugin, ptr_data);
|
||||
}
|
||||
|
||||
|
||||
if (pos)
|
||||
{
|
||||
pos[0] = '\n';
|
||||
|
||||
+24
-24
File diff suppressed because it is too large
Load Diff
+9
-9
@@ -74,7 +74,7 @@ log_open (const char *filename, const char *mode)
|
||||
snprintf (weechat_log_filename, filename_length,
|
||||
"%s/%s", weechat_home, WEECHAT_LOG_NAME);
|
||||
}
|
||||
|
||||
|
||||
weechat_log_file = fopen (weechat_log_filename, mode);
|
||||
if (!weechat_log_file)
|
||||
{
|
||||
@@ -129,10 +129,10 @@ log_printf (const char *message, ...)
|
||||
char *ptr_buffer;
|
||||
static time_t seconds;
|
||||
struct tm *date_tmp;
|
||||
|
||||
|
||||
if (!weechat_log_file)
|
||||
return;
|
||||
|
||||
|
||||
weechat_va_format (message);
|
||||
if (vbuffer)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ log_printf (const char *message, ...)
|
||||
ptr_buffer[0] = '.';
|
||||
ptr_buffer++;
|
||||
}
|
||||
|
||||
|
||||
if (!weechat_log_use_time)
|
||||
string_iconv_fprintf (weechat_log_file, "%s\n", vbuffer);
|
||||
else
|
||||
@@ -163,9 +163,9 @@ log_printf (const char *message, ...)
|
||||
else
|
||||
string_iconv_fprintf (weechat_log_file, "%s\n", vbuffer);
|
||||
}
|
||||
|
||||
|
||||
fflush (weechat_log_file);
|
||||
|
||||
|
||||
free (vbuffer);
|
||||
}
|
||||
}
|
||||
@@ -179,7 +179,7 @@ log_printf_hexa (const char *spaces, const char *string)
|
||||
{
|
||||
int msg_pos, hexa_pos, ascii_pos;
|
||||
char hexa[(16 * 3) + 1], ascii[(16 * 2) + 1];
|
||||
|
||||
|
||||
msg_pos = 0;
|
||||
hexa_pos = 0;
|
||||
ascii_pos = 0;
|
||||
@@ -243,13 +243,13 @@ log_crash_rename ()
|
||||
|
||||
if (!weechat_log_filename)
|
||||
return 0;
|
||||
|
||||
|
||||
old_name = strdup (weechat_log_filename);
|
||||
if (!old_name)
|
||||
return 0;
|
||||
|
||||
log_close ();
|
||||
|
||||
|
||||
length = strlen (weechat_home) + 128;
|
||||
new_name = malloc (length);
|
||||
if (new_name)
|
||||
|
||||
+77
-77
File diff suppressed because it is too large
Load Diff
+44
-44
File diff suppressed because it is too large
Load Diff
@@ -45,7 +45,7 @@ struct t_proxy
|
||||
{
|
||||
char *name; /* proxy name */
|
||||
struct t_config_option *options[PROXY_NUM_OPTIONS];
|
||||
|
||||
|
||||
struct t_proxy *prev_proxy; /* link to previous bar */
|
||||
struct t_proxy *next_proxy; /* link to next bar */
|
||||
};
|
||||
|
||||
+153
-153
File diff suppressed because it is too large
Load Diff
+54
-54
File diff suppressed because it is too large
Load Diff
+48
-48
File diff suppressed because it is too large
Load Diff
+38
-38
File diff suppressed because it is too large
Load Diff
+32
-32
File diff suppressed because it is too large
Load Diff
+10
-10
@@ -197,14 +197,14 @@ void
|
||||
weechat_parse_args (int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
weechat_argv0 = strdup (argv[0]);
|
||||
weechat_upgrading = 0;
|
||||
weechat_home = NULL;
|
||||
weechat_server_cmd_line = 0;
|
||||
weechat_auto_load_plugins = 1;
|
||||
weechat_plugin_no_dlclose = 0;
|
||||
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
if ((strcmp (argv[i], "-c") == 0)
|
||||
@@ -323,7 +323,7 @@ weechat_create_home_dirs ()
|
||||
weechat_shutdown (EXIT_FAILURE, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* create home directory; error is fatal */
|
||||
if (!util_mkdir (weechat_home, 0755))
|
||||
{
|
||||
@@ -383,7 +383,7 @@ weechat_shutdown (int return_code, int crash)
|
||||
free (weechat_local_charset);
|
||||
|
||||
network_end ();
|
||||
|
||||
|
||||
if (crash)
|
||||
abort();
|
||||
else
|
||||
@@ -398,21 +398,21 @@ int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
weechat_init_vars (); /* initialize some variables */
|
||||
|
||||
|
||||
setlocale (LC_ALL, ""); /* initialize gettext */
|
||||
#ifdef ENABLE_NLS
|
||||
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (PACKAGE, "UTF-8");
|
||||
textdomain (PACKAGE);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HAVE_LANGINFO_CODESET
|
||||
weechat_local_charset = strdup (nl_langinfo (CODESET));
|
||||
#else
|
||||
weechat_local_charset = strdup ("");
|
||||
#endif
|
||||
utf8_init ();
|
||||
|
||||
|
||||
util_catch_signal (SIGINT, SIG_IGN); /* ignore SIGINT signal */
|
||||
util_catch_signal (SIGQUIT, SIG_IGN); /* ignore SIGQUIT signal */
|
||||
util_catch_signal (SIGPIPE, SIG_IGN); /* ignore SIGPIPE signal */
|
||||
@@ -449,9 +449,9 @@ main (int argc, char *argv[])
|
||||
gui_layout_window_apply (gui_layout_windows, -1); /* apply win layout */
|
||||
if (weechat_upgrading)
|
||||
upgrade_weechat_end (); /* remove .upgrade files + signal */
|
||||
|
||||
|
||||
gui_main_loop (); /* WeeChat main loop */
|
||||
|
||||
|
||||
gui_layout_save_on_exit (); /* save layout */
|
||||
plugin_end (); /* end plugin interface(s) */
|
||||
if (CONFIG_BOOLEAN(config_look_save_config_on_exit))
|
||||
@@ -463,6 +463,6 @@ main (int argc, char *argv[])
|
||||
unhook_all (); /* remove all hooks */
|
||||
hdata_end (); /* end hdata */
|
||||
weechat_shutdown (EXIT_SUCCESS, 0); /* quit WeeChat (oh no, why?) */
|
||||
|
||||
|
||||
return EXIT_SUCCESS; /* make C compiler happy */
|
||||
}
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@
|
||||
"\n" \
|
||||
"You should have received a copy of the GNU General Public License\n" \
|
||||
"along with WeeChat. If not, see <http://www.gnu.org/licenses/>.\n\n"
|
||||
|
||||
|
||||
/* directory separator, depending on OS */
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
@@ -47,7 +47,7 @@ IF(NCURSES_FOUND)
|
||||
ADD_DEFINITIONS(-DHAVE_NCURSES_H)
|
||||
ENDIF(NCURSES_HEADERS)
|
||||
ENDIF(NCURSESW_HEADERS)
|
||||
|
||||
|
||||
LIST(APPEND EXTRA_LIBS ${NCURSES_LIBRARY})
|
||||
ENDIF(NCURSES_FOUND)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+149
-149
File diff suppressed because it is too large
Load Diff
@@ -45,7 +45,7 @@ int
|
||||
gui_bar_window_objects_init (struct t_gui_bar_window *bar_window)
|
||||
{
|
||||
struct t_gui_bar_window_gtk_objects *new_objects;
|
||||
|
||||
|
||||
new_objects = malloc (sizeof (*new_objects));
|
||||
if (new_objects)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ void
|
||||
gui_bar_window_create_win (struct t_gui_bar_window *bar_window)
|
||||
{
|
||||
(void) bar_window;
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
(void) bar_window;
|
||||
(void) string;
|
||||
(void) max_chars;
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
return 0;
|
||||
}
|
||||
@@ -106,7 +106,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
|
||||
{
|
||||
(void) bar_window;
|
||||
(void) window;
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
}
|
||||
|
||||
|
||||
+11
-11
@@ -96,7 +96,7 @@ gui_chat_reset_style (struct t_gui_window *window)
|
||||
GUI_WINDOW_OBJECTS(window)->current_style_bg = -1;
|
||||
GUI_WINDOW_OBJECTS(window)->current_style_attr = 0;
|
||||
GUI_WINDOW_OBJECTS(window)->current_color_attr = 0;
|
||||
|
||||
|
||||
/* TODO: change following function call */
|
||||
/*gui_window_set_weechat_color (window->win_chat, COLOR_WIN_CHAT);*/
|
||||
gui_chat_remove_style (window,
|
||||
@@ -183,7 +183,7 @@ gui_chat_string_next_char (struct t_gui_window *window, struct t_gui_line *line,
|
||||
(void) line;
|
||||
(void) apply_style;
|
||||
(void) apply_style_inactive;
|
||||
|
||||
|
||||
return (char *)string;
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ void
|
||||
gui_chat_display_word_raw (struct t_gui_window *window, const char *string)
|
||||
{
|
||||
/*char *prev_char, *next_char, saved_char;*/
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
(void) window;
|
||||
(void) string;
|
||||
@@ -215,7 +215,7 @@ gui_chat_display_word (struct t_gui_window *window,
|
||||
{
|
||||
/*char *end_line, saved_char_end, saved_char;
|
||||
int pos_saved_char, chars_to_display, num_displayed;*/
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
(void) window;
|
||||
(void) line;
|
||||
@@ -258,12 +258,12 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l
|
||||
int *line_pos, int difference)
|
||||
{
|
||||
int backward, current_size;
|
||||
|
||||
|
||||
if (!line || !line_pos)
|
||||
return;
|
||||
|
||||
|
||||
backward = (difference < 0);
|
||||
|
||||
|
||||
if (!(*line))
|
||||
{
|
||||
/* if looking backward, start at last line of buffer */
|
||||
@@ -289,7 +289,7 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l
|
||||
}
|
||||
else
|
||||
current_size = gui_chat_display_line (window, *line, 0, 1);
|
||||
|
||||
|
||||
while ((*line) && (difference != 0))
|
||||
{
|
||||
/* looking backward */
|
||||
@@ -329,7 +329,7 @@ gui_chat_calculate_line_diff (struct t_gui_window *window, struct t_gui_line **l
|
||||
difference--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* first or last line reached */
|
||||
if (!(*line))
|
||||
{
|
||||
@@ -365,10 +365,10 @@ gui_chat_draw (struct t_gui_buffer *buffer, int erase)
|
||||
int num_unit;
|
||||
char format[32], date[128], *buf;
|
||||
struct tm *date_tmp;*/
|
||||
|
||||
|
||||
if (!gui_ok)
|
||||
return;
|
||||
|
||||
|
||||
/* TODO: write this function for Gtk */
|
||||
(void) buffer;
|
||||
(void) erase;
|
||||
|
||||
+11
-11
@@ -65,13 +65,13 @@ int
|
||||
gui_color_search (const char *color_name)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i = 0; gui_weechat_colors[i].string; i++)
|
||||
{
|
||||
if (string_strcasecmp (gui_weechat_colors[i].string, color_name) == 0)
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/* color not found */
|
||||
return -1;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ int
|
||||
gui_color_assign (int *color, const char *color_name)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
/* look for curses colors in table */
|
||||
i = 0;
|
||||
while (gui_weechat_colors[i].string)
|
||||
@@ -96,7 +96,7 @@ gui_color_assign (int *color, const char *color_name)
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
/* color not found */
|
||||
return 0;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ gui_color_assign_by_diff (int *color, const char *color_name, int diff)
|
||||
(void) color;
|
||||
(void) color_name;
|
||||
(void) diff;
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -150,7 +150,7 @@ gui_color_get_pair (int fg, int bg)
|
||||
{
|
||||
(void) fg;
|
||||
(void) bg;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ int
|
||||
gui_color_weechat_get_pair (int weechat_color)
|
||||
{
|
||||
(void) weechat_color;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ void
|
||||
gui_color_rebuild_weechat ()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i = 0; i < GUI_COLOR_NUM_COLORS; i++)
|
||||
{
|
||||
if (gui_color[i])
|
||||
@@ -290,7 +290,7 @@ gui_color_palette_new (int number, const char *value)
|
||||
/* This function does nothing in Gtk GUI */
|
||||
(void) number;
|
||||
(void) value;
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ void
|
||||
gui_color_pre_init ()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i = 0; i < GUI_COLOR_NUM_COLORS; i++)
|
||||
{
|
||||
gui_color[i] = NULL;
|
||||
@@ -348,7 +348,7 @@ void
|
||||
gui_color_end ()
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
for (i = 0; i < GUI_COLOR_NUM_COLORS; i++)
|
||||
{
|
||||
gui_color_free (gui_color[i]);
|
||||
|
||||
+36
-36
File diff suppressed because it is too large
Load Diff
@@ -67,7 +67,7 @@ void
|
||||
gui_mouse_grab_init (int area)
|
||||
{
|
||||
(void) area;
|
||||
|
||||
|
||||
/* This function does nothing in Gtk GUI */
|
||||
}
|
||||
|
||||
@@ -89,9 +89,9 @@ const char *
|
||||
gui_mouse_event_code2key (const char *code)
|
||||
{
|
||||
(void) code;
|
||||
|
||||
|
||||
/* This function does nothing in Gtk GUI */
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+174
-174
File diff suppressed because it is too large
Load Diff
+79
-79
File diff suppressed because it is too large
Load Diff
+139
-139
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -82,7 +82,7 @@ struct t_gui_bar
|
||||
/* user choices */
|
||||
char *name; /* bar name */
|
||||
struct t_config_option *options[GUI_BAR_NUM_OPTIONS];
|
||||
|
||||
|
||||
/* internal vars */
|
||||
int conditions_count; /* number of conditions */
|
||||
char **conditions_array; /* bar conditions (after split) */
|
||||
|
||||
+254
-254
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -72,7 +72,7 @@ struct t_gui_buffer
|
||||
* loaded
|
||||
*/
|
||||
char *plugin_name_for_upgrade; /* plugin name when upgrading */
|
||||
|
||||
|
||||
int number; /* buffer number (first is 1) */
|
||||
int layout_number; /* number of buffer saved in layout */
|
||||
int layout_number_merge_order; /* order in merge for layout */
|
||||
@@ -88,15 +88,15 @@ struct t_gui_buffer
|
||||
/* merged and that this one is not */
|
||||
/* selected buffer */
|
||||
int print_hooks_enabled; /* 1 if print hooks are enabled */
|
||||
|
||||
|
||||
/* close callback */
|
||||
int (*close_callback)(void *data, /* called when buffer is closed */
|
||||
struct t_gui_buffer *buffer);
|
||||
void *close_callback_data; /* data for callback */
|
||||
|
||||
|
||||
/* buffer title */
|
||||
char *title; /* buffer title */
|
||||
|
||||
|
||||
/* chat content */
|
||||
struct t_gui_lines *own_lines; /* lines (for this buffer only) */
|
||||
struct t_gui_lines *mixed_lines; /* mixed lines (if buffers merged) */
|
||||
@@ -105,7 +105,7 @@ struct t_gui_buffer
|
||||
int time_for_each_line; /* time is displayed for each line? */
|
||||
int chat_refresh_needed; /* refresh for chat is needed ? */
|
||||
/* (1=refresh, 2=erase+refresh) */
|
||||
|
||||
|
||||
/* nicklist */
|
||||
int nicklist; /* = 1 if nicklist is enabled */
|
||||
int nicklist_case_sensitive; /* nicks are case sensitive ? */
|
||||
@@ -113,7 +113,7 @@ struct t_gui_buffer
|
||||
int nicklist_max_length; /* max length for a nick */
|
||||
int nicklist_display_groups; /* display groups ? */
|
||||
int nicklist_visible_count; /* number of nicks/groups to display */
|
||||
|
||||
|
||||
/* inupt */
|
||||
int input; /* = 1 if input is enabled */
|
||||
int (*input_callback)(void *data, /* called when user send data */
|
||||
@@ -129,29 +129,29 @@ struct t_gui_buffer
|
||||
int input_buffer_length; /* number of chars in buffer */
|
||||
int input_buffer_pos; /* position into buffer */
|
||||
int input_buffer_1st_display; /* first char displayed on screen */
|
||||
|
||||
|
||||
/* undo/redo for input */
|
||||
struct t_gui_input_undo *input_undo_snap; /* snapshot of input buffer */
|
||||
struct t_gui_input_undo *input_undo; /* undo for input */
|
||||
struct t_gui_input_undo *last_input_undo; /* last undo for input */
|
||||
struct t_gui_input_undo *ptr_input_undo; /* pointer to current undo */
|
||||
int input_undo_count; /* number of undos */
|
||||
|
||||
|
||||
/* completion */
|
||||
struct t_gui_completion *completion; /* completion */
|
||||
|
||||
|
||||
/* history */
|
||||
struct t_gui_history *history; /* commands history */
|
||||
struct t_gui_history *last_history;/* last command in history */
|
||||
struct t_gui_history *ptr_history; /* current command in history */
|
||||
int num_history; /* number of commands in history */
|
||||
|
||||
|
||||
/* text search */
|
||||
int text_search; /* text search type */
|
||||
int text_search_exact; /* exact search (case sensitive) ? */
|
||||
int text_search_found; /* 1 if text found, otherwise 0 */
|
||||
char *text_search_input; /* input saved before text search */
|
||||
|
||||
|
||||
/* highlight settings for buffer */
|
||||
char *highlight_words; /* list of words to highlight */
|
||||
char *highlight_regex; /* regex for highlight */
|
||||
@@ -160,19 +160,19 @@ struct t_gui_buffer
|
||||
int highlight_tags_count; /* number of tags to highlight */
|
||||
/* (if 0, any tag is highlighted) */
|
||||
char **highlight_tags_array; /* tags to highlight */
|
||||
|
||||
|
||||
/* hotlist settings for buffer */
|
||||
struct t_hashtable *hotlist_max_level_nicks; /* max hotlist level for */
|
||||
/* some nicks */
|
||||
|
||||
|
||||
/* keys associated to buffer */
|
||||
struct t_gui_key *keys; /* keys specific to buffer */
|
||||
struct t_gui_key *last_key; /* last key for buffer */
|
||||
int keys_count; /* number of keys in buffer */
|
||||
|
||||
|
||||
/* local variables */
|
||||
struct t_hashtable *local_variables; /* local variables */
|
||||
|
||||
|
||||
/* link to previous/next buffer */
|
||||
struct t_gui_buffer *prev_buffer; /* link to previous buffer */
|
||||
struct t_gui_buffer *next_buffer; /* link to next buffer */
|
||||
|
||||
+67
-67
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -37,7 +37,7 @@ enum t_gui_chat_prefix
|
||||
GUI_CHAT_PREFIX_ACTION,
|
||||
GUI_CHAT_PREFIX_JOIN,
|
||||
GUI_CHAT_PREFIX_QUIT,
|
||||
|
||||
|
||||
GUI_CHAT_NUM_PREFIXES,
|
||||
};
|
||||
|
||||
|
||||
+42
-42
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -23,7 +23,7 @@
|
||||
enum t_gui_color_enum
|
||||
{
|
||||
GUI_COLOR_SEPARATOR = 0,
|
||||
|
||||
|
||||
GUI_COLOR_CHAT,
|
||||
GUI_COLOR_CHAT_TIME,
|
||||
GUI_COLOR_CHAT_TIME_DELIMITERS,
|
||||
@@ -65,7 +65,7 @@ enum t_gui_color_enum
|
||||
GUI_COLOR_CHAT_INACTIVE_WINDOW,
|
||||
GUI_COLOR_CHAT_INACTIVE_BUFFER,
|
||||
GUI_COLOR_CHAT_PREFIX_BUFFER_INACTIVE_BUFFER,
|
||||
|
||||
|
||||
/* number of colors */
|
||||
GUI_COLOR_NUM_COLORS,
|
||||
};
|
||||
|
||||
+92
-92
File diff suppressed because it is too large
Load Diff
@@ -47,10 +47,10 @@ struct t_gui_completion
|
||||
int direction; /* +1=search next word, -1=previous word */
|
||||
int add_space; /* add space after completion? */
|
||||
int force_partial_completion; /* force partial completion? */
|
||||
|
||||
|
||||
/* for command argument completion */
|
||||
struct t_weelist *completion_list; /* data list for completion */
|
||||
|
||||
|
||||
/* completion found */
|
||||
char *word_found; /* word found (to replace base word) */
|
||||
int word_found_is_nick; /* word found is nick? */
|
||||
|
||||
+25
-25
File diff suppressed because it is too large
Load Diff
+46
-46
File diff suppressed because it is too large
Load Diff
+17
-17
File diff suppressed because it is too large
Load Diff
+16
-16
File diff suppressed because it is too large
Load Diff
+35
-35
File diff suppressed because it is too large
Load Diff
+89
-89
File diff suppressed because it is too large
Load Diff
+108
-108
File diff suppressed because it is too large
Load Diff
+72
-72
File diff suppressed because it is too large
Load Diff
@@ -36,13 +36,13 @@ struct t_gui_layout_window
|
||||
int internal_id; /* used to save/read layout from */
|
||||
/* config (to find parent) */
|
||||
struct t_gui_layout_window *parent_node; /* pointer to parent node */
|
||||
|
||||
|
||||
/* node info */
|
||||
int split_pct; /* % of split size (child1) */
|
||||
int split_horiz; /* 1 if horizontal, 0 if vertical */
|
||||
struct t_gui_layout_window *child1; /* first child, NULL if a leaf */
|
||||
struct t_gui_layout_window *child2; /* second child, NULL if leaf */
|
||||
|
||||
|
||||
/* leaf info */
|
||||
char *plugin_name;
|
||||
char *buffer_name;
|
||||
|
||||
+96
-96
File diff suppressed because it is too large
Load Diff
+109
-109
File diff suppressed because it is too large
Load Diff
+108
-108
File diff suppressed because it is too large
Load Diff
+12
-12
@@ -51,49 +51,49 @@ struct t_gui_window_coords
|
||||
struct t_gui_window
|
||||
{
|
||||
int number; /* window number (first is 1) */
|
||||
|
||||
|
||||
/* global position & size */
|
||||
int win_x, win_y; /* position of window */
|
||||
int win_width, win_height; /* window geometry */
|
||||
int win_width_pct; /* % of width (compared to win size) */
|
||||
int win_height_pct; /* % of height (compared to win size)*/
|
||||
|
||||
|
||||
/* chat window settings */
|
||||
int win_chat_x, win_chat_y; /* chat window position */
|
||||
int win_chat_width; /* width of chat window */
|
||||
int win_chat_height; /* height of chat window */
|
||||
int win_chat_cursor_x; /* position of cursor in chat window */
|
||||
int win_chat_cursor_y; /* position of cursor in chat window */
|
||||
|
||||
|
||||
/* bar windows */
|
||||
struct t_gui_bar_window *bar_windows; /* bar windows */
|
||||
struct t_gui_bar_window *last_bar_window; /* last bar window */
|
||||
|
||||
|
||||
/* refresh */
|
||||
int refresh_needed; /* 1 if refresh needed for window */
|
||||
|
||||
|
||||
/* GUI specific objects */
|
||||
void *gui_objects; /* pointer to a GUI specific struct */
|
||||
|
||||
|
||||
/* buffer and layout infos */
|
||||
struct t_gui_buffer *buffer; /* buffer currently displayed */
|
||||
char *layout_plugin_name; /* plugin and buffer that should be */
|
||||
char *layout_buffer_name; /* displayed in this window (even if */
|
||||
/* buffer does not exist yet, it will*/
|
||||
/* be assigned later) */
|
||||
|
||||
|
||||
/* scroll */
|
||||
struct t_gui_window_scroll *scroll; /* scroll infos for each buffer */
|
||||
/* scrolled in this window */
|
||||
|
||||
|
||||
/* coordinates (for focus) */
|
||||
int coords_size; /* size of coords (number of lines) */
|
||||
struct t_gui_window_coords *coords;/* coords for window */
|
||||
int coords_x_message; /* start X for messages */
|
||||
|
||||
|
||||
/* tree */
|
||||
struct t_gui_window_tree *ptr_tree;/* pointer to leaf in windows tree */
|
||||
|
||||
|
||||
struct t_gui_window *prev_window; /* link to previous window */
|
||||
struct t_gui_window *next_window; /* link to next window */
|
||||
};
|
||||
@@ -118,13 +118,13 @@ struct t_gui_window_scroll
|
||||
struct t_gui_window_tree
|
||||
{
|
||||
struct t_gui_window_tree *parent_node; /* pointer to parent node */
|
||||
|
||||
|
||||
/* node info */
|
||||
int split_pct; /* % of split size (child1) */
|
||||
int split_horizontal; /* 1 if horizontal, 0 if vertical */
|
||||
struct t_gui_window_tree *child1; /* first child, NULL if a leaf */
|
||||
struct t_gui_window_tree *child2; /* second child, NULL if a leaf */
|
||||
|
||||
|
||||
/* leaf info */
|
||||
struct t_gui_window *window; /* pointer to window, NULL if a node */
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -37,19 +37,19 @@ alias_info_get_infolist_cb (void *data, const char *infolist_name,
|
||||
{
|
||||
struct t_infolist *ptr_infolist;
|
||||
struct t_alias *ptr_alias;
|
||||
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) arguments;
|
||||
|
||||
|
||||
if (!infolist_name || !infolist_name[0])
|
||||
return NULL;
|
||||
|
||||
|
||||
if (weechat_strcasecmp (infolist_name, ALIAS_PLUGIN_NAME) == 0)
|
||||
{
|
||||
if (pointer && !alias_valid (pointer))
|
||||
return NULL;
|
||||
|
||||
|
||||
ptr_infolist = weechat_infolist_new ();
|
||||
if (ptr_infolist)
|
||||
{
|
||||
@@ -83,7 +83,7 @@ alias_info_get_infolist_cb (void *data, const char *infolist_name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
+79
-79
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,7 @@ struct t_aspell_speller
|
||||
{
|
||||
AspellSpeller *speller; /* aspell speller */
|
||||
char *lang; /* language */
|
||||
|
||||
|
||||
struct t_aspell_speller *prev_speller; /* pointer to next speller */
|
||||
struct t_aspell_speller *next_speller; /* pointer to previous speller */
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+24
-24
File diff suppressed because it is too large
Load Diff
@@ -38,12 +38,12 @@ fifo_info_get_info_cb (void *data, const char *info_name,
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) arguments;
|
||||
|
||||
|
||||
if (weechat_strcasecmp (info_name, "fifo_filename") == 0)
|
||||
{
|
||||
return fifo_filename;
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
+39
-39
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -49,15 +49,15 @@ irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
|
||||
{
|
||||
struct t_irc_server *ptr_server;
|
||||
struct t_irc_channel *ptr_channel;
|
||||
|
||||
|
||||
if (server)
|
||||
*server = NULL;
|
||||
if (channel)
|
||||
*channel = NULL;
|
||||
|
||||
|
||||
if (!buffer)
|
||||
return;
|
||||
|
||||
|
||||
/* look for a server or channel using this buffer */
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
@@ -68,7 +68,7 @@ irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
|
||||
*server = ptr_server;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
for (ptr_channel = ptr_server->channels; ptr_channel;
|
||||
ptr_channel = ptr_channel->next_channel)
|
||||
{
|
||||
@@ -82,7 +82,7 @@ irc_buffer_get_server_and_channel (struct t_gui_buffer *buffer,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* no server or channel found */
|
||||
}
|
||||
|
||||
@@ -94,18 +94,18 @@ char *
|
||||
irc_buffer_build_name (const char *server, const char *channel)
|
||||
{
|
||||
static char buffer[128];
|
||||
|
||||
|
||||
buffer[0] = '\0';
|
||||
|
||||
|
||||
if (!server && !channel)
|
||||
return buffer;
|
||||
|
||||
|
||||
if (server && channel)
|
||||
snprintf (buffer, sizeof (buffer), "%s.%s", server, channel);
|
||||
else
|
||||
snprintf (buffer, sizeof (buffer), "%s",
|
||||
(server) ? server : channel);
|
||||
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@@ -117,12 +117,12 @@ int
|
||||
irc_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
|
||||
{
|
||||
struct t_irc_channel *next_channel;
|
||||
|
||||
|
||||
IRC_BUFFER_GET_SERVER_CHANNEL(buffer);
|
||||
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
|
||||
|
||||
if (buffer == irc_raw_buffer)
|
||||
{
|
||||
irc_raw_buffer = NULL;
|
||||
@@ -156,7 +156,7 @@ irc_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -172,10 +172,10 @@ irc_buffer_search_first_for_all_servers ()
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_irc_server *ptr_server;
|
||||
int number, number_found;
|
||||
|
||||
|
||||
ptr_buffer = NULL;
|
||||
number_found = INT_MAX;
|
||||
|
||||
|
||||
for (ptr_server = irc_servers; ptr_server;
|
||||
ptr_server = ptr_server->next_server)
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+17
-17
File diff suppressed because it is too large
Load Diff
+370
-370
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+118
-118
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user