This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
// sdbm from here: | |
// http://www.cse.yorku.ca/~oz/hash.html | |
static size_t cstr_hash(const char *str) | |
{ | |
size_t hash = 0; | |
int c; | |
while ((c = *str++)) | |
hash = c + (hash << 6) + (hash << 16) - hash; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ninja -C build | |
ninja: Entering directory `build' | |
[34/261] Compiling C++ object libscintilla.a.p/scintilla_gtk_ScintillaGTK.cxx.o | |
../scintilla/gtk/ScintillaGTK.cxx: In function 'std::vector<int> MapImeIndicators(PangoAttrList*, const char*)': | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_SINGLE_LINE' not handled in switch [-Wswitch] | |
2301 | switch (uline) { | |
| ^ | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_DOUBLE_LINE' not handled in switch [-Wswitch] | |
../scintilla/gtk/ScintillaGTK.cxx:2301:13: warning: enumeration value 'PANGO_UNDERLINE_ERROR_LINE' not handled in switch [-Wswitch] | |
[82/261] Compiling C object libfnmatch.a.p/ctags_fnmatch_fnmatch.c.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <type_traits> | |
template <typename E> | |
struct enable_enum_flags { | |
static constexpr const bool value = false; | |
}; | |
template <typename E> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[theme_info] | |
name=No Theme | |
description=A colour theme with no language highlighting. | |
version=0.01 | |
author= | |
url= | |
[named_styles] | |
default=0x000000;0xffffff;false;false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/meson.build b/meson.build | |
index ab1148cc..3d045976 100644 | |
--- a/meson.build | |
+++ b/meson.build | |
@@ -32,11 +32,11 @@ def_cflags += '-DGEANY_DOCDIR="@0@"'.format(join_paths(prefix, get_option('datad | |
geany_cflags = def_cflags | |
have_gcc4_visibility = cc.has_argument('-fvisibility=hidden') | |
geany_cflags += '-DGEANY_PRIVATE' | |
-if target_machine.system() == 'windows' | |
- geany_cflags += '-DGEANY_EXPORT_SYMBOL="__declspec(dllexport)"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Commands | |
======== | |
Configure: | |
time ../configure --prefix=/opt/geany --disable-api-docs --disable-gtkdoc-header --disable-pdf-docs --disable-html-docs --disable-gtk3 | |
Make: | |
time make -j12 | |
Incremental: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
sudo apt-get install build-essential autotools-dev autoconf libgtk2.0-dev | |
mkdir -p ${HOME}/.local/src | |
cd ${HOME}/.local/src | |
git clone https://github.com/geany/geany.git | |
cd geany | |
./autogen.sh --prefix=${HOME}/.local --disable-gtk3 | |
make | |
make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if HAVE_DBUS | |
mousepad-dbus-infos.c: mousepad-dbus-infos.xml | |
$(AM_V_GEN)gdbus-codegen --interface-prefix org.xfce. --body --output $@ mousepad-dbus-infos.xml | |
mousepad-dbus-infos.h: mousepad-dbus-infos.xml | |
$(AM_V_GEN)gdbus-codegen --interface-prefix org.xfce. --header --output $@ mousepad-dbus-infos.xml | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/about.c b/src/about.c | |
index 6c9a13896..7c31368a9 100644 | |
--- a/src/about.c | |
+++ b/src/about.c | |
@@ -43,6 +43,7 @@ | |
#define INFO "<span size=\"larger\" weight=\"bold\">%s</span>" | |
#define CODENAME "<span weight=\"bold\">\"" GEANY_CODENAME "\"</span>" | |
#define BUILDDATE "<span size=\"smaller\">%s</span>" | |
+#define RUNTIME BUILDDATE | |
#define COPYRIGHT _("Copyright (c) 2005\nThe Geany contributors") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* document.c - this file is part of Geany, a fast and lightweight IDE | |
* | |
* Copyright 2005 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>, | |
* Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>, and others. | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. |