Changeset 4260
- Timestamp:
- Jun 14, 2005, 3:11:17 PM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r4259 r4260 1 %%% $Id: ChangeLogSDRS.tex,v 1.14 4 2005-06-15 01:08:13jhoblitt Exp $1 %%% $Id: ChangeLogSDRS.tex,v 1.145 2005-06-15 01:11:17 jhoblitt Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 642 642 \item rename functions/datatypes to abv. ``memory'' as ``mem'' 643 643 \item rename functions/datatypes to abv. ``function'' as ``func'' (not ``fcn'') 644 \item no longer abv. ``format'' as ``fmt'' 644 645 \item remove ``my'' from function parameters names 645 646 \item add \code{psComparePtrFunc} function pointer -
trunk/doc/pslib/psLibSDRS.tex
r4259 r4260 1 %%% $Id: psLibSDRS.tex,v 1.28 6 2005-06-15 01:08:13jhoblitt Exp $1 %%% $Id: psLibSDRS.tex,v 1.287 2005-06-15 01:11:17 jhoblitt Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1094 1094 % 1095 1095 \begin{prototype} 1096 void psTrace(const char *facil, int level, const char *f mt,...);1097 void psTraceV(const char *facil, int level, const char *f mt, va_list ap);1096 void psTrace(const char *facil, int level, const char *format,...); 1097 void psTraceV(const char *facil, int level, const char *format, va_list ap); 1098 1098 \end{prototype} 1099 1099 % 1100 where the \code{f mt} argument is a printf-style formatting code1100 where the \code{format} argument is a printf-style formatting code 1101 1101 followed by possible arguments to that formatting statement, to be 1102 1102 implemented using the \code{vprintf} functions. This command … … 1215 1215 % 1216 1216 \begin{prototype} 1217 bool psTraceSetFormat(const char *f mt);1217 bool psTraceSetFormat(const char *format); 1218 1218 \end{prototype} 1219 1219 % … … 1252 1252 removes those entries from the output messages. 1253 1253 1254 Specifying a \code{f mt} of \code{NULL} turns off logging (equivalent1254 Specifying a \code{format} of \code{NULL} turns off logging (equivalent 1255 1255 to calling \code{psLogSetDestination(PS_LOG_TO_NONE)}, whereas if the 1256 \code{f mt} is \code{""}, then the format reverts to the default.1256 \code{format} is \code{""}, then the format reverts to the default. 1257 1257 1258 1258 \subsubsection{Message Logging} … … 1277 1277 % 1278 1278 \begin{prototype} 1279 void psLogMsg(const char *name, int level, const char *f mt, ...);1280 void psLogMsgV(const char *name, int level, const char *f mt, va_list ap);1279 void psLogMsg(const char *name, int level, const char *format, ...); 1280 void psLogMsgV(const char *name, int level, const char *format, va_list ap); 1281 1281 \end{prototype} 1282 1282 where \code{name} is a word to describe the source of the message, 1283 \code{level} is the severity level of this message, and \code{f mt}1283 \code{level} is the severity level of this message, and \code{format} 1284 1284 is a printf-style formatting statement defining the actual message, 1285 1285 and is followed by the arguments to the formatting code. The second … … 1330 1330 % 1331 1331 \begin{prototype} 1332 bool psLogSetFormat(const char *f mt);1332 bool psLogSetFormat(const char *format); 1333 1333 \end{prototype} 1334 1334 % … … 1367 1367 removes those entries from the output messages. 1368 1368 1369 Specifying a \code{f mt} of \code{NULL} turns off logging (equivalent1369 Specifying a \code{format} of \code{NULL} turns off logging (equivalent 1370 1370 to calling \code{psLogSetDestination(PS_LOG_TO_NONE)}, whereas if the 1371 \code{f mt} is \code{""}, then the format reverts to the default.1371 \code{format} is \code{""}, then the format reverts to the default. 1372 1372 1373 1373 The following utility opens an output file descriptor for use by the … … 1401 1401 \begin{prototype} 1402 1402 psErrorCode p_psError(const char *filename, unsigned int lineno, const char *func, psErrorCode code, 1403 bool new, const char *f mt, ...);1404 \end{prototype} 1405 \begin{datatype} 1406 #define psError(code, new, f mt, ...) psError(__FILE__, __LINE__, __func__, code, new, fmt, __VA_ARGS__)1403 bool new, const char *format, ...); 1404 \end{prototype} 1405 \begin{datatype} 1406 #define psError(code, new, format, ...) psError(__FILE__, __LINE__, __func__, code, new, format, __VA_ARGS__) 1407 1407 \end{datatype} 1408 1408 … … 1416 1416 specifies that an error was passed to this location. Raising new 1417 1417 error should clear the error stack. The final required argument, 1418 \code{f mt}, is a \code{printf}-style format that is passed to1418 \code{format}, is a \code{printf}-style format that is passed to 1419 1419 \code{psLogMsgV} with code \code{PS_LOG_ERROR}, and component equal to 1420 1420 the concatenation of the file name and the line number, separated by a … … 1450 1450 descriptor by calling \code{psErrorStackPrint} (or 1451 1451 \code{psErrorStackPrintV}); if and only if there are current errors, 1452 the printf-style string \code{f mt} is first printed to the file1452 the printf-style string \code{format} is first printed to the file 1453 1453 descriptor \code{fd}. In this printout, error codes shall be replaced 1454 1454 by their string equivalents as defined in the next section. Note that … … 1458 1458 % 1459 1459 \begin{prototype} 1460 void psErrorStackPrint(FILE *fd, const char *f mt, ...);1461 void psErrorStackPrintV(FILE *fd, const char *f mt, va_list va);1460 void psErrorStackPrint(FILE *fd, const char *format, ...); 1461 void psErrorStackPrintV(FILE *fd, const char *format, va_list va); 1462 1462 \end{prototype} 1463 1463 … … 1568 1568 1569 1569 \begin{prototype} 1570 void psAbort(const char *name, const char *f mt,...);1570 void psAbort(const char *name, const char *format, ...); 1571 1571 \end{prototype} 1572 1572
Note:
See TracChangeset
for help on using the changeset viewer.
