7876 Commits

Author SHA1 Message Date
Matthew Brush
8bbe58cdf7 Fix a compiler warning about const 2015-04-10 18:52:46 -07:00
Colomban Wendling
f3078ebbc6 Merge branch 'kugel-/linkage-cleanup_rebase-for-merge'
This merges PR#429 with only small history cleanup (no code changes),
and ABI bump.

Closes #355, #358 and #429.
2015-04-10 16:54:30 +02:00
Colomban Wendling
5caf2b3e77 Bump ABI version for new linkage mechanism 2015-04-10 16:52:30 +02:00
Colomban Wendling
07dacb66d2 waf: Improve passing of export and visibility flags 2015-04-10 16:16:19 +02:00
Colomban Wendling
7ac4bf3d24 waf: Don't abuse static libraries
Instead of abusing static libraries putting shared objects in them, and
manually setting the flags required to build shared objects, use sets
of objects and Waf's own cshlib/cxxshlib flags.

Also explicitly call the appropriate build context method instead of
only listing features in order to make it clear what is built.

Some references:
* http://docs.waf.googlecode.com/git/book_16/single.html#_predefined_task_generators
* http://docs.waf.googlecode.com/git/book_16/single.html#_local_libraries
* https://code.google.com/p/waf/issues/detail?id=1398
2015-04-10 16:16:19 +02:00
Colomban Wendling
01db7f0cac Add signallist.i to gitignore 2015-04-10 16:16:19 +02:00
Colomban Wendling
5b9bb1d7b2 Include geanyplugin.h from geanyfunctions.h for compatibility
geanyfunctions.h used to bring all function declarations, and some
plugins depend on this side effect instead of properly including
geanyplugin.h directly.  So, reintroduce the behavior for
compatibility with those plugins.
2015-04-10 16:16:19 +02:00
Colomban Wendling
ede1faca54 Move GeanyFunctions declaration back in plugindata.h
This avoids breaking plugins that don't use geanyplugin.h as they
should but include some random headers.
2015-04-10 16:16:19 +02:00
Thomas Martitz
e4ab28058d waf: set rpath for executable
Whether rpath is liked or not, it allows geany to Just Work and is consistent
with autotools
2015-04-10 16:16:19 +02:00
Thomas Martitz
7649a6921f waf: Fix core plugins on Linux
The -fvisibility=hidden flag for libgeany.so is also applied to plugins.
This is not desirable.
2015-04-10 16:16:19 +02:00
Thomas Martitz
a1f2d0b94a waf: Don't use temp variables 2015-04-10 16:16:19 +02:00
Thomas Martitz
11b5c0216f stash_group_add_boolean is an API function, misplaced within GEANY_PRIVATE 2015-04-10 16:16:19 +02:00
Thomas Martitz
1c27e41bfa The mkstemps special case for windows is not necessary 2015-04-10 16:16:19 +02:00
Thomas Martitz
a320609d5f waf: Fixes for libgeany
- libgeany install dir was wrong on win32
- comdlg32 is required
- more headers need to be installed
- -fPIC is required on some platforms
- LINKFLAGS_cprogram now have to be applied to libgeany.dll
2015-04-10 16:16:19 +02:00
Thomas Martitz
05f362b3bd Have to include a few more headers for plugins 2015-04-10 16:16:19 +02:00
Colomban Wendling
b2ba6c84d5 autotools: Cleanup makefile a little 2015-04-10 16:16:19 +02:00
Colomban Wendling
4e02f58847 autotools: Remove useless declaration
There is no need for tricking Automake to use the C++ linker to link
the main executable anymore, this is done for libgeany now.
2015-04-10 16:16:19 +02:00
Colomban Wendling
e61948adbd Fix or remove incorrect comments 2015-04-10 16:16:19 +02:00
Colomban Wendling
90b5e9b76f waf: Add rule to generate signallist.i
Based on previous work from Matthew Brush.
2015-04-10 16:16:19 +02:00
Thomas Martitz
dbe910ca5e GEANY_API_SYMBOL for project_write_config() 2015-04-10 16:16:18 +02:00
Colomban Wendling
56b9189a6c Fix generation of signallist.i with BSD sed
4.2BSD sed doesn't understand the `+` quantifier, so use `{1,}`.
2015-04-10 16:16:18 +02:00
Colomban Wendling
c85b846eeb Simplify automated signal connection
Instead of processing a template C source in the build system, generate
a list to be included by the preprocessor.

This simplifies the build system code as it now only generates the list
and doesn't take care of processing the template.  It incidentally
fixes build on systems with 4.2BSD sed (at least OSX and FreeBSD) as it
removes some offending sed code.
2015-04-10 16:16:18 +02:00
Thomas Martitz
11d4bcf7c2 Only use LIBGEANY_CFLAGS on libgeany.
It includes stuff like -fvisibility which isn't appropriate for the main binary.
2015-04-10 16:16:18 +02:00
Enrico Tröger
43037b379b waf: Implement check whether compiler supports -fvisibility=hidden
This is a bit better than compiler == 'gcc'.
Tested with gcc 4.9 (success) and gcc 3.4.5 (not supported).
2015-04-10 16:16:05 +02:00
Enrico Tröger
3d0bdbd6da waf: The GEANY_*_SYMBOL flags also need to be defined for C++
In Waf, we need to add the new flags to CFLAGS *and* CXXFLAGS otherwise
the Scintilla build would break.
To keep it more reabable, we first populate a temporary list
geany_symbol_flags which is then added to CFLAGS and CXXFLAGS.

Concerning the quote FIXME: no further qoting is necessary here.
2015-04-10 16:15:58 +02:00
Enrico Tröger
abc5f3239b waf: Adjust to build and use libgeany 2015-04-10 16:15:45 +02:00
Thomas Martitz
616cbe3da9 src: Makefile.am cleanup 2015-04-10 16:08:08 +02:00
Colomban Wendling
9eee68b71d Fix exporting Scintilla symbols 2015-04-10 16:08:08 +02:00
Colomban Wendling
9644fb0ae2 Define GEANY_{EXPORT,API}_SYMBOL from the build system
This makes it easier to define it consistently to what the compiler
and platform supports, and avoids having to include a special header
everywhere, which is some kind of a problem for separate libraries
like TagManager and especially Scintilla.

As we only use these macros from the source and not the headers, it
is fine for it to be defined to a configure-time check from the build
system.

Warning: Although Waf and Windows makefiles are updated they are not
         tested an will probably required tuning.
2015-04-10 16:08:08 +02:00
Colomban Wendling
4e6da78f54 PHP: Use the variable style for variable interpolated in strings
Use the same variable style for simple interpolations ("$foo") than for
complex ones ("${foo}") instead of using the string style itself.  This
gives a visual feedback for simple interpolations.
2015-04-10 00:24:20 +02:00
Colomban Wendling
1bed458ab9 Merge pull request #270 from b4n/zephir-filetype
Zephir filetype
2015-04-09 01:06:57 +02:00
Jiří Techet
5cf2511945 icon: Adjust the color of the inside of the bottleneck
The (almost) black color of the inside of the bottleneck is a bit too high
contrast and doesn't fit the rest of the icon (the only black part of it).
Use the "lamp yellow" as the base and lower the L in HSL representation of
the color so it just looks as darker lamp material.
2015-04-06 20:59:20 +02:00
Jiří Techet
cbd13b8f71 icon: Adjust the left-bottom curve of the bottleneck
After making the bottleneck wider (by shifting the curve to the left), the
curve became flatter which looks strange. Make the curve a bit more round
in the middle.
2015-04-06 20:59:08 +02:00
Jiří Techet
942d4c6b7f Start bash as a login shell in VTE under OS X
Graphical applications on OS X are started using launchd and don't inherit
shell's environment variables so we don't get the PS1 value. Do the same
as the OS X terminal emulator which runs the shell as a login shell (and yes,
on OS X .bash_profile is read for shells started in the terminal application
instead of .bashrc).
2015-04-06 19:19:55 +02:00
Jiří Techet
ed3142d0df Use editor's default font also for VTE
On OS X Monospace 10 is too small (and using non-standard font).
As we already have a special OS X font for the editor, use this value
(having identical fonts both for the editor and VTE seems to be a
good default).
2015-04-06 19:12:34 +02:00
Dimitar Zhekov
bfa93af5cc Remove the includes of <sys/types.h> and <sys/wait.h> from *.c
These are included from spawn.h under Unix now.
Also fixes spawn.c including <sys/wait.h> without <sys/types.h>
2015-04-05 18:49:28 +03:00
Dimitar Zhekov
e838ef744b Define the WIF* and WEXITSTATUS macros in spawn.h under all OS
In particular, include <sys/types.h> and <sys/wait.h> under Unix.
2015-04-05 18:43:11 +03:00
Dimitar Zhekov
2f0c9686e2 Improved blanks handling in Windows command lines
The argument quoting must be permissive (g_ascii_isspace() doesn't
handle '\v'), the program name to arguments separator must be fixed
to restrictive, and the leading spaces are somewhere between.

Also fixed the test program to check for exactly 2 arguments.
2015-04-04 19:46:45 +03:00
Colomban Wendling
11e16eed6f Remove an unused argument 2015-04-02 19:12:13 +02:00
Dimitar Zhekov
ac00cc0ff6 Add working directory to the "execute" test 2015-04-01 21:45:25 +03:00
Dimitar Zhekov
8745ba58ae Fix Windows attempts to run 2+ unquoted tokens as a program
When passed Foo Bar Qux as a command line, Windows will try to run
Foo.exe Bar Qux, then "Foo Bar.exe" Qux, and last "Foo Bar Qux.exe",
for maximum flexibility. Quoting Foo supresses this behaviour.
2015-04-01 21:16:23 +03:00
Frank Lanitz
d4f707bb78 Small update of German translation 2015-03-31 07:10:31 +02:00
Dimitar Zhekov
47a7b507a7 Remove the unneeded win32_spawn() and win32_get_exit_status()
These are not part of the plugin interface, and are not used in Geany
any more after the spawn changes.
2015-03-30 20:33:55 +03:00
Dimitar Zhekov
7bebf64f3d Fix SPAWN_UNBUFFERED description 2015-03-29 13:51:07 +03:00
Dimitar Zhekov
b3f3bfeee0 Alter utils.c to use the new spawning module
Also simplified the utils_open_browser() loop.
2015-03-29 13:47:13 +03:00
Dimitar Zhekov
0aee6de045 Single-quote file name in the default printing command under Unix 2015-03-28 13:35:20 +02:00
Dimitar Zhekov
44dc8a1c2e Fix a small leak and the checks for output/errors from the child
In particular, if the child is executed successfully, and did not emit
anything to stderr, an empty output is considered valid. The original
tried to check, and leave the selection unchanged on empty output, but
it did not always work.
2015-03-28 13:13:27 +02:00
Colomban Wendling
ca02c593e7 Merge pull request #445 from bengtan/erlang-fishman-ctags
Implement Erlang ctags
2015-03-27 14:44:55 +01:00
Beng Tan
3e6cea696a Update Erlang ctags test. 2015-03-27 11:03:17 +08:00
Beng Tan
36d1db4bc7 Change kind names for Erlang ctags parser
... so the tags will appear in Geany.
2015-03-27 10:56:25 +08:00