Diff for /libaitwww/src/aitwww.c between versions 1.4.6.1 and 1.5.6.1

version 1.4.6.1, 2013/01/17 14:52:44 version 1.5.6.1, 2016/09/14 15:08:24
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013Copyright 2004 - 2016
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 55  char www_Error[STRSIZ]; Line 55  char www_Error[STRSIZ];
 #pragma GCC visibility pop  #pragma GCC visibility pop
   
 // www_GetErrno() Get error code of last operation  // www_GetErrno() Get error code of last operation
inline intint
 www_GetErrno()  www_GetErrno()
 {  {
         return www_Errno;          return www_Errno;
 }  }
   
 // www_GetError() Get error text of last operation  // www_GetError() Get error text of last operation
inline const char *const char *
 www_GetError()  www_GetError()
 {  {
         return www_Error;          return www_Error;
 }  }
   
 // www_SetErr() Set error to variables for internal use!!!  // www_SetErr() Set error to variables for internal use!!!
inline voidvoid
 www_SetErr(int eno, char *estr, ...)  www_SetErr(int eno, char *estr, ...)
 {  {
         va_list lst;          va_list lst;
Line 243  www_parseQuery(const char *str) Line 243  www_parseQuery(const char *str)
  * @name = Name of cgi variable   * @name = Name of cgi variable
  * return: NULL not found or !=NULL value   * return: NULL not found or !=NULL value
  */   */
inline const char *const char *
 www_getValue(cgi_t * __restrict cgi, const char *name)  www_getValue(cgi_t * __restrict cgi, const char *name)
 {  {
         struct tagCGI *t;          struct tagCGI *t;
Line 361  www_delPair(cgi_t * __restrict cgi, const char *name) Line 361  www_delPair(cgi_t * __restrict cgi, const char *name)
  * @arg = Optional argument pass through callback   * @arg = Optional argument pass through callback
  * return: -1 error or >-1 number of elements   * return: -1 error or >-1 number of elements
  */   */
inline intint
 www_listPairs(cgi_t * __restrict cgi, list_cb_t func, void *arg)  www_listPairs(cgi_t * __restrict cgi, list_cb_t func, void *arg)
 {  {
         register int ret = 0;          register int ret = 0;
Line 388  www_listPairs(cgi_t * __restrict cgi, list_cb_t func,  Line 388  www_listPairs(cgi_t * __restrict cgi, list_cb_t func, 
  * @output = file handle   * @output = file handle
  * return: <1 error or >0 writed bytes   * return: <1 error or >0 writed bytes
  */   */
inline intint
 www_header(FILE *output)  www_header(FILE *output)
 {  {
         FILE *f = output ? output : stdout;          FILE *f = output ? output : stdout;
Line 589  www_parseMultiPart(const char *str, int ctlen, const c Line 589  www_parseMultiPart(const char *str, int ctlen, const c
  * @ct = Content type   * @ct = Content type
  * return: NULL error or !=NULL attributes   * return: NULL error or !=NULL attributes
  */   */
inline cgi_t *cgi_t *
 www_parseAttributes(const char **ct)  www_parseAttributes(const char **ct)
 {  {
         struct tagCGI *t, *old = NULL;          struct tagCGI *t, *old = NULL;
Line 628  www_parseAttributes(const char **ct) Line 628  www_parseAttributes(const char **ct)
  * @name = Name of attribute variable   * @name = Name of attribute variable
  * return: NULL not found or !=NULL value   * return: NULL not found or !=NULL value
  */   */
inline ait_val_t *ait_val_t *
 www_getAttribute(cgi_t * __restrict cgi, const char *name)  www_getAttribute(cgi_t * __restrict cgi, const char *name)
 {  {
         struct tagCGI *t;          struct tagCGI *t;

Removed from v.1.4.6.1  
changed lines
  Added in v.1.5.6.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>