Re: [code] [textadept] Textadept 5.5 beta

From: Bill Meahan <wmeahan94.att.gmail.com>
Date: Mon, 09 Jul 2012 13:40:16 -0400

On 07/09/2012 13:18, Mitchell wrote:
> Bill,
>
> On Mon, 9 Jul 2012, Bill Meahan wrote:
>
>> On 07/09/2012 12:29, Mitchell wrote:
>>> Bill,
>>>
>>
>>> Please change '-D_POSIX_C_SOURCE=200809L' to '-D_XOPEN_SOURCE=700' and
>>> try again.
>>>
>>> Thanks,
>>> Mitchell
>>
>> wwm.att.Linden$ gmake
>> gcc -c -std=c99 -O -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE -DGTK
>> -Iscintilla/include -Igtdialog -W -Wall -Wno-sign-compare -Wno-unused
>> -DSINGLE_INSTANCE -Ilua/src -D_THREAD_SAFE -D_REENTRANT
>> -I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0
>> -I/usr/local/include/cairo -I/usr/local/include/gdk-pixbuf-2.0
>> -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/
>> -I/usr/local/include -I/usr/local/include/glib-2.0
>> -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
>> -I/usr/local/include/libpng15 textadept.c
>> In file included from textadept.c:20:
>> /usr/include/sys/sysctl.h:793: error: expected declaration specifiers
>> or '...' before 'u_int'
>
> Okay, as a last resort, change the _XOPEN_SOURCE flag back to
> POSIX_C_SOURCE and then insert '#define u_int unsigned int' on
> textadept.c:19. If that doesn't work, insert on line 20.
>
> Mitchell

Um. the first 66 lines of textadept.c are:

// Copyright 2007-2012 Mitchell mitchell.att.foicica.com. See LICENSE.

#include <locale.h>
#include <iconv.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if __linux__
#include <unistd.h>
#elif _WIN32
#include <windows.h>
#define main main_
#elif __APPLE__ && !NCURSES
#include <gtkmacintegration/gtkosxapplication.h>
//#elif __APPLE__ && NCURSES
//#include <mach-o/dyld.h>
#elif (__FreeBSD__ || __NetBSD__ || __OpenBSD__)
#include <sys/types.h> <== Line 19
#include <sys/sysctl.h> <== Line 20
#endif
#if GTK
#include <gtk/gtk.h>
#define PLAT_GTK 1
#elif NCURSES
#include <signal.h>
#include <termios.h>
#include <ncurses.h>
#include <cdk/cdk.h>
#define PLAT_TERM 1
#endif

#include "gtdialog.h"
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "Scintilla.h"
#include "SciLexer.h"
#if GTK
#include "ScintillaWidget.h"
#elif NCURSES
#include "ScintillaTerm.h"
#include "termkey.h"
#endif

#if GTK
typedef GtkWidget Scintilla;
#define SS(view, m, w, l) scintilla_send_message(SCINTILLA(view), m, w, l)
#define signal(o, s, c) g_signal_connect(G_OBJECT(o), s, G_CALLBACK(c), 0)
#define osx_signal(a, s, c) g_signal_connect(a, s, G_CALLBACK(c), 0)
#define focus_view(v) gtk_widget_grab_focus(v)
#define scintilla_delete(w) gtk_widget_destroy(w)
#if GTK_CHECK_VERSION(3,0,0)
#define gtk_statusbar_set_has_resize_grip(_,__)
#define gtk_combo_box_entry_new_with_model(m,_) \
   gtk_combo_box_new_with_model_and_entry(m)
#define gtk_combo_box_entry_set_text_column
gtk_combo_box_set_entry_text_column
#define GTK_COMBO_BOX_ENTRY GTK_COMBO_BOX
#endif
#elif NCURSES
#define SS(view, m, w, l) scintilla_send_message(view, m, w, l)
#define focus_view(v) \
   SS(focused_view, SCI_SETFOCUS, 0, 0), SS(v, SCI_SETFOCUS, 1, 0)
#endif

// Window

I don't think lines 19/20 are the correct place. Am I wrong?

-- 
Bill Meahan, Westland, Michigan USA
“Writing is a combination of intangible
   creative fantasy and appallingly
   hard work.”
           —Anthony Powell
This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 09 Jul 2012 - 13:40:16 EDT

This archive was generated by hypermail 2.2.0 : Tue 10 Jul 2012 - 06:48:49 EDT