summaryrefslogtreecommitdiff
path: root/src/pdflib/pdcore/pc_generr.h
diff options
context:
space:
mode:
authorscuri <scuri>2009-10-20 18:12:26 +0000
committerscuri <scuri>2009-10-20 18:12:26 +0000
commita972dbb9bd731a439d009bd51e36981c41a06232 (patch)
treee4e5d0aaf23706083dfb1fe4180e18f0907a90c9 /src/pdflib/pdcore/pc_generr.h
parent27a4f9c4ac45ff65f941964f7351b64b1e6a9f35 (diff)
*** empty log message ***
Diffstat (limited to 'src/pdflib/pdcore/pc_generr.h')
-rw-r--r--src/pdflib/pdcore/pc_generr.h45
1 files changed, 38 insertions, 7 deletions
diff --git a/src/pdflib/pdcore/pc_generr.h b/src/pdflib/pdcore/pc_generr.h
index b1651ff..e1b535a 100644
--- a/src/pdflib/pdcore/pc_generr.h
+++ b/src/pdflib/pdcore/pc_generr.h
@@ -1,7 +1,7 @@
/*---------------------------------------------------------------------------*
| PDFlib - A library for generating PDF on the fly |
+---------------------------------------------------------------------------+
- | Copyright (c) 1997-2006 Thomas Merz and PDFlib GmbH. All rights reserved. |
+ | Copyright (c) 1997-2009 Thomas Merz and PDFlib GmbH. All rights reserved. |
+---------------------------------------------------------------------------+
| |
| This software is subject to the PDFlib license. It is NOT in the |
@@ -10,7 +10,7 @@
| |
*---------------------------------------------------------------------------*/
-/* $Id: pc_generr.h,v 1.1 2008/10/17 06:10:43 scuri Exp $
+/* $Id: pc_generr.h,v 1.2 2009/10/20 18:12:26 scuri Exp $
*
* PDCORE error messages
*
@@ -111,15 +111,22 @@ gen(2, 1046, IO_WROPEN_SV,
gen(0, 1048, IO_UNSUPP_UNINAME,
"Unicode file names are not supported on this platform")
+gen(0, 1049, IO_UNSUPP_PDFUNINAME,
+ "Unicode file names require PDF 1.7")
+
gen(1, 1050, IO_COMPRESS, "Compression error ($1)")
gen(0, 1052, IO_NOBUFFER, "Don't fetch buffer contents when writing to file")
gen(2, 1054, IO_BADFORMAT, "'$1' does not appear to be a $2 file")
+gen(2, 1055, IO_WRITE,
+ "Error writing data to file '$1' (system error code $2)")
+
gen(1, 1056, IO_READ, "Error reading data from file '$1'")
-gen(1, 1057, IO_WRITE, "Error writing data to file '$1'")
+gen(3, 1057, IO_WRITE_CODETEXT,
+ "Error writing data to file '$1' (system error code $2: $3)")
gen(3, 1058, IO_ILLSYNTAX, "$1file '$2': Syntax error in line $3")
@@ -134,7 +141,15 @@ gen(2, 1064, IO_RDOPEN_QU,
gen(2, 1066, IO_WROPEN_QU,
"Couldn't open $1file '$2' for writing (quota exceeded)")
+gen(1, 1068, IO_TOOLONG_FULLNAME,
+ "Fully specified file name too long (>= 1024 bytes): '$1'")
+
+gen(2, 1080, IO_TOOFEW_REQFILEHDLS,
+ "Too few requested file handles $1 (< $2)")
+
+gen(2, 1081, IO_TOOMANY_REQFILEHDLS,
+ "Too many requested file handles $1 (> $2)")
/* -------------------------------------------------------------------- */
@@ -171,11 +186,14 @@ gen(1, 1111, ILLARG_FLOAT_NAN,
gen(1, 1112, ILLARG_UTF, "Illegal UTF-$1 sequence in string")
*/
-gen(2, 1114, ILLARG_MATRIX, "Matrix [$1] is degenerate")
+gen(2, 1114, ILLARG_MATRIX, "Matrix [$1] is degenerated")
gen(2, 1116, ILLARG_TOOLONG,
"String parameter '$1' is limited to $2 characters")
+gen(2, 1117, ILLARG_STRINGLEN,
+ "String length has bad value $1 (minimum 0, maximum $2)")
+
gen(2, 1118, ILLARG_HANDLE,
"Handle parameter or option of type '$1' has bad value $2")
@@ -185,6 +203,8 @@ gen(1, 1120, ILLARG_NONNEG, "Parameter '$1' must not be negative")
gen(1, 1122, ILLARG_LANG_CODE, "Unsupported language code '$1'")
+gen(2, 1124, ILLARG_TOOMANY, "Too many '$1' parameters (maximum $2)")
+
/* -------------------------------------------------------------------- */
/* Parameters and values (12xx) */
@@ -204,7 +224,7 @@ gen(2, 1210, PAR_SCOPE_GET, "Can't get parameter '$1' in scope '$2'")
gen(2, 1212, PAR_SCOPE_SET, "Can't set parameter '$1' in scope '$2'")
-gen(2, 1214, PAR_VERSION, "Parameter '$1' requires PDF $2 or above")
+gen(2, 1214, PAR_VERSION, "Parameter '$1' requires PDF $2")
gen(1, 1216, PAR_ILLKEY, "Illegal attempt to set parameter '$1'")
@@ -219,6 +239,8 @@ gen(1, 1220, PAR_UNSUPPKEY, "Unknown or unsupported key '$1'")
gen(1, 1250, PAR_ILLSECT, "Illegal section '$1'")
+gen(1, 1260, PAR_NODATA, "No data supplied ($1)")
+
@@ -317,13 +339,19 @@ gen(2, 1501, CONV_ILLUTF16SUR, "Invalid UTF-16 surrogate pair <U+$1,U+$2>")
gen(0, 1502, CONV_MEMOVERFLOW, "Out of memory in UTF string conversion")
+gen(0, 1503, CONV_ILLUTF32,
+ "Invalid UTF-32 string (byte count not a multiple of four)")
+
gen(1, 1504, CONV_ILLUTF, "Invalid UTF-$1 string")
-gen(1, 1505, CONV_ILLUTF32, "Invalid UTF-32 character U+$1")
+gen(1, 1505, CONV_ILLUTF32CHAR, "Invalid UTF-32 character U+$1")
gen(1, 1506, CONV_ILL_MBTEXTSTRING,
"Invalid text string according to the current codepage '$1'")
+gen(2, 1507, CONV_ILLUTF8SEQU,
+ "Invalid UTF-8 sequence $1 at byte index $2")
+
gen(1, 1508, CONV_UNSUPP_MBTEXTFORM,
"Multi byte text format (codepage $1) not supported on this platform")
@@ -393,6 +421,8 @@ gen(0, 1907, INT_ILLFLOAT, "Bad floating point number for PDF")
gen(2, 1908, INT_BADFORMAT, "Unknown vsprintf() format '$1' ($2)")
+gen(0, 1909, INT_FORMOVERFLOW, "Buffer overflow in formatting function")
+
gen(1, 1910, INT_ALLOC0,
"Tried to allocate 0 or negative number of bytes in function $1")
@@ -429,6 +459,8 @@ gen(1, 1940, INT_BADERRNO,
gen(1, 1950, INT_LONGNAME_MISSING, "Long name is missing at index $1")
+gen(1, 1970, INT_ILLDOCTYPE, "Illegal document type '$1'")
+
@@ -441,4 +473,3 @@ gen(1, 1950, INT_LONGNAME_MISSING, "Long name is missing at index $1")
-