Commit 8fea2b55 authored by Naba Kumar's avatar Naba Kumar Committed by Naba Kumar

Correct version.

2003-03-24  Naba Kumar  <naba@gnome.org>

        * README: Correct version.

2003-03-24  Michael Tindal <etherscape@paradoxpoint.com>

        * configure.in: Added checks to see if were building on FreeBSD
        systems.  Sets -DFREEBSD if we are, and also attempts to find
        gmake if the host system is FreeBSD.

        * src/getline.c: New file used to provide the getline function,
        which isnt available on a FreeBSD system.  The function is only
        defined if FREEBSD is defined.

        * src/Makefile.am: Added getline.c to anjuta_SOURCES

        * tagmanager/Makefile.am:  Uses $(GMAKE) rather than make.
        configure.in sets this to gmake on FreeBSD systems, and make
        on everything else.
parent 8af40a2f
2003-03-24 Naba Kumar <naba@gnome.org>
* README: Correct version.
2003-03-24 Michael Tindal <etherscape@paradoxpoint.com>
* configure.in: Added checks to see if were building on FreeBSD
systems. Sets -DFREEBSD if we are, and also attempts to find
gmake if the host system is FreeBSD.
* src/getline.c: New file used to provide the getline function,
which isnt available on a FreeBSD system. The function is only
defined if FREEBSD is defined.
* src/Makefile.am: Added getline.c to anjuta_SOURCES
* tagmanager/Makefile.am: Uses $(GMAKE) rather than make.
configure.in sets this to gmake on FreeBSD systems, and make
on everything else.
2003-03-23 Naba Kumar <naba@gnome.org>
* Makefile.am, anjuta.spec.in: Fixed rpm build errors.
......
Anjuta Version 1.0.0 Release
Anjuta Version 1.2.0 Release
Copyright (C) 2000-2002 Naba Kumar
Home site => http://anjuta.org/
......
......@@ -363,7 +363,26 @@ main() {
fi
fi
dnl -----------------------------
dnl Checks for FreeBSD Build
dnl -----------------------------
AC_MSG_CHECKING(if building on FreeBSD)
if test `uname -s` = "FreeBSD" ; then
AC_MSG_RESULT(yes)
FREEBSD_BUILD=-DFREEBSD
AC_SUBST(FREEBSD_BUILD)
AC_PATH_PROG(GMAKE, gmake, no)
if test "x$GMAKE" = "xno"; then
AC_ERROR(You need gmake installed to build Anjuta!)
fi
else
AC_MSG_RESULT(no)
GMAKE="make"
fi
AC_SUBST(GMAKE)
dnl Checks for missing prototypes
dnl -----------------------------
AC_CHECKING("for missing prototypes")
......
......@@ -73,6 +73,6 @@ clean-local:
@rm -f system.tags
system.tags:
cd $(top_builddir)/tagmanager && make libctags.a
cd $(top_builddir)/global-tags && make system.tags
cd $(top_builddir)/tagmanager && $(GMAKE) libctags.a
cd $(top_builddir)/global-tags && $(GMAKE) system.tags
mv $(top_builddir)/global-tags/system.tags .
......@@ -3,6 +3,7 @@
INCLUDES = \
$(ANJUTA_CFLAGS)\
$(PCRE_CFLAGS)\
$(FREEBSD_BUILD)\
-I$(srcdir)/../scintilla/include \
-I$(srcdir)/../tagmanager/include \
-I$(srcdir)/../widgets \
......@@ -114,6 +115,7 @@ anjuta_SOURCES = \
find_replace.h\
find_text.c\
find_text.h\
getline.c\
global.h\
gnome_project.c\
gnome_project.h\
......
/*
* getline.c Copyright (C) 2003 Michael Tindal
*
* 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.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., 59
* Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef FREEBSD
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int getline (char** line, int* size, int fd)
{
int len, res;
short brk = 0;
char* buf = malloc(2096);
char buf2[1];
strcpy (buf, "");
while (!brk)
{
if ((res = read(fd, buf2, 1)) < 0)
return -1;
if (res != 0) // check for end-of-line
strcat(buf, buf2);
if (buf2[0] == '\n' || res == 0)
brk = 1;
}
if (*line == NULL)
{
*line = (char*)malloc(strlen(buf));
}
strcpy(*line, buf);
*size = strlen(*line);
return *size;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment