Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 59958 invoked from network); 5 Oct 2006 13:18:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 13:18:50 -0000 Received: (qmail 45618 invoked by uid 500); 5 Oct 2006 13:18:49 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 45593 invoked by uid 500); 5 Oct 2006 13:18:48 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 45582 invoked by uid 99); 5 Oct 2006 13:18:48 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Oct 2006 06:18:48 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received: from [140.211.166.113] ([140.211.166.113:56553] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 78/E4-20288-B2605254 for ; Thu, 05 Oct 2006 06:18:37 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 5DA4D1A981A; Thu, 5 Oct 2006 06:17:43 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r453231 - /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c Date: Thu, 05 Oct 2006 13:17:43 -0000 To: harmony-commits@incubator.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061005131743.5DA4D1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: hindessm Date: Thu Oct 5 06:17:42 2006 New Revision: 453231 URL: http://svn.apache.org/viewvc?view=rev&rev=453231 Log: Fixed compilation errors with this (unused) code. Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c?view=diff&rev=453231&r1=453230&r2=453231 ============================================================================== --- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c (original) +++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/gl/shared/JPEGEncoder/JpegEncoder.c Thu Oct 5 06:17:42 2006 @@ -197,7 +197,7 @@ //-- create compress struct cinfo = malloc(sizeof(struct jpeg_compress_struct)); if (!cinfo) { - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return 0; } @@ -205,7 +205,7 @@ err_mgr = malloc(sizeof(enc_error_mgr)); if (!err_mgr) { free(cinfo); - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return 0; } @@ -221,7 +221,7 @@ if (!dest_mgr) { free(cinfo); free(err_mgr); - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return 0; } cinfo->dest = dest_mgr; @@ -232,7 +232,7 @@ free(cinfo); free(err_mgr); free(dest_mgr); - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return 0; } cinfo->client_data = client_data; @@ -243,7 +243,7 @@ free(err_mgr); free(dest_mgr); free(client_data); - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return 0; } dest_mgr->next_output_byte = client_data->jpeg_buffer; @@ -327,7 +327,7 @@ } cdata->ios = (*env)->NewGlobalRef(env, iosObj); if (cdata->ios == NULL) { - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return; } cinfo->dest->next_output_byte = cdata->jpeg_buffer; @@ -360,7 +360,7 @@ row_pointer = (JSAMPROW) malloc(width * numBands); if (!row_pointer) { - throwNewOutOfMemoryError("Unable to allocate memory for IJG structures"); + throwNewOutOfMemoryError(env, "Unable to allocate memory for IJG structures"); return FALSE; }