mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
4736d0fe99
Simple optimzations and cleanups Removed compiler warnings and fixed portability issues Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server Fixes for purify client/mysqlimport.c: Remove not used variable client/mysqltest.c: Remove usage of MAXPATHLEN (all MySQL code uses FN_REFLEN) Simplified code Remove usage of sprintf("%llu") as this is not portable include/mysql.h: Added mysql_embedded() to be able to easily check if we are using the embedded server innobase/srv/srv0start.c: Don't use memcmp() when using purify (to avoid false warnings) libmysql/libmysql.c: Added mysql_embedded() to be able to easily check if we are using the embedded server libmysql/libmysql.def: Added mysql_embedded() to be able to easily check if we are using the embedded server myisam/myisam_ftdump.c: Remove compiler warning myisam/myisamchk.c: Remove compiler warning myisam/rt_test.c: #ifdef not used code mysys/hash.c: Remove compiler warning (from last push) mysys/my_gethwaddr.c: Remove compiler warning ndb/src/ndbapi/ndberror.c: #ifdef not used code regex/regcomp.c: Remove not used code regex/regcomp.ih: Remove not used code (to remove compiler warnings) sql-common/client.c: Remove compiler warnings sql/field.cc: Simple optimization sql/ha_innodb.cc: Rename mysql_embedded -> mysqld_embedded sql/item.cc: Fix comments Move variables first on block Remove else after return Simple optimizations (no logic changes) sql/item_cmpfunc.cc: Added comment sql/mysql_priv.h: Rename mysql_embedded -> mysqld_embedded sql/mysqld.cc: Rename mysql_embedded -> mysqld_embedded sql/sql_acl.cc: Added comments simple optimization Fixed 'very unlikely' bug when doing REVOKE ALL PRIVILEGES sql/sql_select.cc: More comments Simple optimization sql/sql_show.cc: Simple changes to make similar code similar More comments sql/sql_string.cc: Trivial optimization and better code layout strings/Makefile.am: Change xml.c to use bcmp to avoid warnings from purify strings/xml.c: Change xml.c to use bcmp to avoid warnings from purify tests/client_test.c: Remove usage of MAXPATHLEN (all MySQL code uses FN_REFLEN)
55 lines
2.7 KiB
Text
55 lines
2.7 KiB
Text
/* ========= begin header generated by ./mkh ========= */
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* === regcomp.c === */
|
|
static void p_ere(register struct parse *p, int stop);
|
|
static void p_ere_exp(register struct parse *p);
|
|
static void p_str(register struct parse *p);
|
|
static void p_bre(register struct parse *p, register int end1, register int end2);
|
|
static int p_simp_re(register struct parse *p, int starordinary);
|
|
static int p_count(register struct parse *p);
|
|
static void p_bracket(register struct parse *p);
|
|
static void p_b_term(register struct parse *p, register cset *cs);
|
|
static void p_b_cclass(register struct parse *p, register cset *cs);
|
|
static void p_b_eclass(register struct parse *p, register cset *cs);
|
|
static char p_b_symbol(register struct parse *p);
|
|
static char p_b_coll_elem(register struct parse *p, int endc);
|
|
static char othercase(CHARSET_INFO *charset,int ch);
|
|
static void bothcases(register struct parse *p, int ch);
|
|
static void ordinary(register struct parse *p, register int ch);
|
|
static void nonnewline(register struct parse *p);
|
|
static void repeat(register struct parse *p, sopno start, int from, int to);
|
|
static int seterr(register struct parse *p, int e);
|
|
static cset *allocset(register struct parse *p);
|
|
static void freeset(register struct parse *p, register cset *cs);
|
|
static int freezeset(register struct parse *p, register cset *cs);
|
|
static int firstch(register struct parse *p, register cset *cs);
|
|
static int nch(register struct parse *p, register cset *cs);
|
|
#ifdef USE_ORIG_REGEX_CODE
|
|
static void mcadd(register struct parse *p, register cset *cs, register char *cp);
|
|
#endif
|
|
#ifdef NOT_USED
|
|
static void mcsub(register cset *cs, register char *cp);
|
|
static int mcin(register cset *cs, register char *cp);
|
|
static char *mcfind(register cset *cs, register char *cp);
|
|
#endif
|
|
static void mcinvert(register struct parse *p, register cset *cs);
|
|
static void mccase(register struct parse *p, register cset *cs);
|
|
static int isinsets(register struct re_guts *g, int c);
|
|
static int samesets(register struct re_guts *g, int c1, int c2);
|
|
static void categorize(struct parse *p, register struct re_guts *g);
|
|
static sopno dupl(register struct parse *p, sopno start, sopno finish);
|
|
static void doemit(register struct parse *p, sop op, size_t opnd);
|
|
static void doinsert(register struct parse *p, sop op, size_t opnd, sopno pos);
|
|
static void dofwd(register struct parse *p, sopno pos, sop value);
|
|
static void enlarge(register struct parse *p, sopno size);
|
|
static void stripsnug(register struct parse *p, register struct re_guts *g);
|
|
static void findmust(register struct parse *p, register struct re_guts *g);
|
|
static sopno pluscount(register struct parse *p, register struct re_guts *g);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/* ========= end header generated by ./mkh ========= */
|