mirror of https://github.com/acanas/swad-core.git
Version 15.168.1
This commit is contained in:
parent
a0617c1edb
commit
ddc4ad2197
|
@ -138,13 +138,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.168 (2016-03-29)"
|
#define Log_PLATFORM_VERSION "SWAD 15.168.1 (2016-03-30)"
|
||||||
#define CSS_FILE "swad15.165.5.css"
|
#define CSS_FILE "swad15.165.5.css"
|
||||||
#define JS_FILE "swad15.131.3.js"
|
#define JS_FILE "swad15.131.3.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 15.168.1: Mar 30, 2016 Fixed bug in list o parameters. (197097 lines)
|
||||||
Version 15.168: Mar 30, 2016 When content is normal, all parameters are retrieved in a list. (197085 lines)
|
Version 15.168: Mar 30, 2016 When content is normal, all parameters are retrieved in a list. (197085 lines)
|
||||||
Version 15.167: Mar 30, 2016 Query string is allocated to the exact needed size to optimize memory. (196998 lines)
|
Version 15.167: Mar 30, 2016 Query string is allocated to the exact needed size to optimize memory. (196998 lines)
|
||||||
Version 15.166.1: Mar 30, 2016 Fixed bug while reading a parameter. (196959 lines)
|
Version 15.166.1: Mar 30, 2016 Fixed bug while reading a parameter. (196959 lines)
|
||||||
|
|
|
@ -473,5 +473,5 @@ void Gbl_Cleanup (void)
|
||||||
if (Gbl.F.Tmp)
|
if (Gbl.F.Tmp)
|
||||||
fclose (Gbl.F.Tmp);
|
fclose (Gbl.F.Tmp);
|
||||||
Fil_CloseXMLFile ();
|
Fil_CloseXMLFile ();
|
||||||
Par_FreeQueryString ();
|
Par_FreeParams ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,8 +157,21 @@ bool Par_GetQueryString (void)
|
||||||
/***************** Free memory allocated for query string ********************/
|
/***************** Free memory allocated for query string ********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Par_FreeQueryString (void)
|
void Par_FreeParams (void)
|
||||||
{
|
{
|
||||||
|
struct Param *Param;
|
||||||
|
struct Param *NextParam;
|
||||||
|
|
||||||
|
/***** Free list of parameters *****/
|
||||||
|
for (Param = Gbl.Params.List;
|
||||||
|
Param != NULL;
|
||||||
|
Param = NextParam)
|
||||||
|
{
|
||||||
|
NextParam = Param->Next;
|
||||||
|
free ((void *) Param);
|
||||||
|
}
|
||||||
|
|
||||||
|
/***** Free query string *****/
|
||||||
if (Gbl.Params.QueryString)
|
if (Gbl.Params.QueryString)
|
||||||
free ((void *) Gbl.Params.QueryString);
|
free ((void *) Gbl.Params.QueryString);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ typedef enum
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
bool Par_GetQueryString (void);
|
bool Par_GetQueryString (void);
|
||||||
void Par_FreeQueryString (void);
|
void Par_FreeParams (void);
|
||||||
void Par_GetMainParameters (void);
|
void Par_GetMainParameters (void);
|
||||||
|
|
||||||
unsigned Par_GetParToText (const char *ParamName,char *ParamValue,size_t MaxBytes);
|
unsigned Par_GetParToText (const char *ParamName,char *ParamValue,size_t MaxBytes);
|
||||||
|
|
Loading…
Reference in New Issue