anjuta r3710 - in trunk: . tagmanager
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3710 - in trunk: . tagmanager
- Date: Mon, 25 Feb 2008 15:38:58 +0000 (GMT)
Author: jhs
Date: Mon Feb 25 15:38:57 2008
New Revision: 3710
URL: http://svn.gnome.org/viewvc/anjuta?rev=3710&view=rev
Log:
2008-02-25 Johannes Schmid <jhs gnome org>
* tagmanager/entry.c: (updateSortedFlag), (isCtagsLine),
(copyBytes), (copyFile), (openTagFile), (makeTagEntry):
Never call error() which calls exit()
#517646 â Anjuta exists with code 2 when i try to import gedit
Modified:
trunk/ChangeLog
trunk/tagmanager/entry.c
Modified: trunk/tagmanager/entry.c
==============================================================================
--- trunk/tagmanager/entry.c (original)
+++ trunk/tagmanager/entry.c Mon Feb 25 15:38:57 2008
@@ -180,7 +180,8 @@
fpos_t nextLine;
if (fgetpos (fp, &nextLine) == -1 || fsetpos (fp, &startOfLine) == -1)
- error (WARNING, "Failed to update 'sorted' pseudo-tag");
+ /*error (WARNING, "Failed to update 'sorted' pseudo-tag");*/
+ return;
else
{
fpos_t flagLocation;
@@ -276,7 +277,8 @@
char *const fields = xMalloc (NUM_FIELDS * fieldLength, char);
if (fields == NULL)
- error (FATAL, "Cannot analyze tag file");
+ /* error (FATAL, "Cannot analyze tag file");*/
+ return FALSE;
else
{
#define field(x) (fields + ((size_t) (x) * fieldLength))
@@ -348,7 +350,8 @@
remaining : (long) BufferSize;
numRead = fread (buffer, (size_t) 1, (size_t) toRead, fromFp);
if (fwrite (buffer, (size_t)1, (size_t)numRead, toFp) < (size_t)numRead)
- error (FATAL | PERROR, "cannot complete write");
+ /* error (FATAL | PERROR, "cannot complete write");*/
+ return;
if (remaining > 0)
remaining -= numRead;
} while (numRead == toRead && remaining != 0);
@@ -359,12 +362,14 @@
{
FILE* const fromFp = fopen (from, "rb");
if (fromFp == NULL)
- error (FATAL | PERROR, "cannot open file to copy");
+ /*error (FATAL | PERROR, "cannot open file to copy");*/
+ return;
else
{
FILE* const toFp = fopen (to, "wb");
if (toFp == NULL)
- error (FATAL | PERROR, "cannot open copy destination");
+ /*error (FATAL | PERROR, "cannot open copy destination");*/
+ return;
else
{
copyBytes (fromFp, toFp, size);
@@ -394,9 +399,10 @@
TagFile.name = eStrdup (Option.tagFileName);
fileExists = doesFileExist (TagFile.name);
if (fileExists && ! isTagFile (TagFile.name))
- error (FATAL,
+ /*error (FATAL,
"\"%s\" doesn't look like a tag file; I refuse to overwrite it.",
- TagFile.name);
+ TagFile.name);*/
+ return;
if (Option.etags)
{
@@ -426,8 +432,8 @@
}
if (TagFile.fp == NULL)
{
- error (FATAL | PERROR, "cannot open tag file");
- exit (1);
+ /* error (FATAL | PERROR, "cannot open tag file");*/
+ return;
}
}
if (TagsToStdout)
@@ -817,7 +823,8 @@
{
Assert (tag->name != NULL);
if (tag->name [0] == '\0')
- error (WARNING, "ignoring null tag in %s", vStringValue (File.name));
+ /*error (WARNING, "ignoring null tag in %s", vStringValue (File.name));*/
+ return;
else
{
int length = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]