IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4260


Ignore:
Timestamp:
Jun 14, 2005, 3:11:17 PM (21 years ago)
Author:
jhoblitt
Message:

no longer abv. format as fmt

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r4259 r4260  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.144 2005-06-15 01:08:13 jhoblitt Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.145 2005-06-15 01:11:17 jhoblitt Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    642642  \item rename functions/datatypes to abv. ``memory'' as ``mem''
    643643  \item rename functions/datatypes to abv. ``function'' as ``func'' (not ``fcn'')
     644  \item no longer abv. ``format'' as ``fmt''
    644645  \item remove ``my'' from function parameters names
    645646  \item add \code{psComparePtrFunc} function pointer
  • trunk/doc/pslib/psLibSDRS.tex

    r4259 r4260  
    1 %%% $Id: psLibSDRS.tex,v 1.286 2005-06-15 01:08:13 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.287 2005-06-15 01:11:17 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    10941094%
    10951095\begin{prototype}
    1096 void psTrace(const char *facil, int level, const char *fmt,...);
    1097 void psTraceV(const char *facil, int level, const char *fmt, va_list ap);
     1096void psTrace(const char *facil, int level, const char *format,...);
     1097void psTraceV(const char *facil, int level, const char *format, va_list ap);
    10981098\end{prototype}
    10991099%
    1100 where the \code{fmt} argument is a printf-style formatting code
     1100where the \code{format} argument is a printf-style formatting code
    11011101followed by possible arguments to that formatting statement, to be
    11021102implemented using the \code{vprintf} functions.  This command
     
    12151215%
    12161216\begin{prototype}
    1217 bool psTraceSetFormat(const char *fmt);
     1217bool psTraceSetFormat(const char *format);
    12181218\end{prototype}
    12191219%
     
    12521252removes those entries from the output messages.
    12531253
    1254 Specifying a \code{fmt} of \code{NULL} turns off logging (equivalent
     1254Specifying a \code{format} of \code{NULL} turns off logging (equivalent
    12551255to calling \code{psLogSetDestination(PS_LOG_TO_NONE)}, whereas if the
    1256 \code{fmt} is \code{""}, then the format reverts to the default.
     1256\code{format} is \code{""}, then the format reverts to the default.
    12571257
    12581258\subsubsection{Message Logging}
     
    12771277%
    12781278\begin{prototype}
    1279 void psLogMsg(const char *name, int level, const char *fmt, ...);
    1280 void psLogMsgV(const char *name, int level, const char *fmt, va_list ap);
     1279void psLogMsg(const char *name, int level, const char *format, ...);
     1280void psLogMsgV(const char *name, int level, const char *format, va_list ap);
    12811281\end{prototype}
    12821282where \code{name} is a word to describe the source of the message,
    1283 \code{level} is the severity level of this message, and \code{fmt}
     1283\code{level} is the severity level of this message, and \code{format}
    12841284is a printf-style formatting statement defining the actual message,
    12851285and is followed by the arguments to the formatting code.  The second
     
    13301330%
    13311331\begin{prototype}
    1332 bool psLogSetFormat(const char *fmt);
     1332bool psLogSetFormat(const char *format);
    13331333\end{prototype}
    13341334%
     
    13671367removes those entries from the output messages.
    13681368
    1369 Specifying a \code{fmt} of \code{NULL} turns off logging (equivalent
     1369Specifying a \code{format} of \code{NULL} turns off logging (equivalent
    13701370to calling \code{psLogSetDestination(PS_LOG_TO_NONE)}, whereas if the
    1371 \code{fmt} is \code{""}, then the format reverts to the default.
     1371\code{format} is \code{""}, then the format reverts to the default.
    13721372
    13731373The following utility opens an output file descriptor for use by the
     
    14011401\begin{prototype}
    14021402psErrorCode p_psError(const char *filename, unsigned int lineno, const char *func, psErrorCode code,
    1403                       bool new, const char *fmt, ...);
    1404 \end{prototype}
    1405 \begin{datatype}
    1406 #define psError(code, new, fmt, ...) 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__)
    14071407\end{datatype}
    14081408
     
    14161416specifies that an error was passed to this location.  Raising new
    14171417error should clear the error stack.  The final required argument,
    1418 \code{fmt}, is a \code{printf}-style format that is passed to
     1418\code{format}, is a \code{printf}-style format that is passed to
    14191419\code{psLogMsgV} with code \code{PS_LOG_ERROR}, and component equal to
    14201420the concatenation of the file name and the line number, separated by a
     
    14501450descriptor by calling \code{psErrorStackPrint} (or
    14511451\code{psErrorStackPrintV}); if and only if there are current errors,
    1452 the printf-style string \code{fmt} is first printed to the file
     1452the printf-style string \code{format} is first printed to the file
    14531453descriptor \code{fd}. In this printout, error codes shall be replaced
    14541454by their string equivalents as defined in the next section.  Note that
     
    14581458%
    14591459\begin{prototype}
    1460 void psErrorStackPrint(FILE *fd, const char *fmt, ...);
    1461 void psErrorStackPrintV(FILE *fd, const char *fmt, va_list va);
     1460void psErrorStackPrint(FILE *fd, const char *format, ...);
     1461void psErrorStackPrintV(FILE *fd, const char *format, va_list va);
    14621462\end{prototype}
    14631463
     
    15681568
    15691569\begin{prototype}
    1570 void psAbort(const char *name, const char *fmt,...);
     1570void psAbort(const char *name, const char *format, ...);
    15711571\end{prototype}
    15721572
Note: See TracChangeset for help on using the changeset viewer.