~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_fn_ext.c

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#include <config.h>
17
 
 
18
 
#include <drizzled/internal/my_sys.h>
19
 
#include <drizzled/internal/m_string.h>
20
 
 
21
 
namespace drizzled
22
 
{
23
 
namespace internal
24
 
{
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
 
 
17
#include "mysys_priv.h"
 
18
#include <mystrings/m_string.h>
25
19
 
26
20
/*
27
21
  Return a pointer to the extension of the filename.
43
37
{
44
38
  register const char *pos, *gpos;
45
39
 
46
 
#if defined(FN_DEVCHAR)
 
40
#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR) || defined(BASKSLASH_MBTAIL)
47
41
  {
48
42
    char buff[FN_REFLEN];
49
43
    size_t res_length;
54
48
    gpos= name;
55
49
#endif
56
50
  pos=strchr(gpos,FN_EXTCHAR);
57
 
  return((char*) (pos ? pos : strchr(gpos, '\0')));
 
51
  return((char*) (pos ? pos : strend(gpos)));
58
52
} /* fn_ext */
59
 
 
60
 
} /* namespace internal */
61
 
} /* namespace drizzled */