~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getwd.c

  • Committer: Stewart Smith
  • Date: 2008-09-25 10:04:06 UTC
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080925100406-hld92f4dr4nuar3a
Move compression functions (compress, uncompress and compressed_length) out into modules and fix test

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  char * pos;
45
45
 
46
46
  if (curr_dir[0])                              /* Current pos is saved here */
47
 
    strmake(buf,&curr_dir[0],size-1);
 
47
    VOID(strmake(buf,&curr_dir[0],size-1));
48
48
  else
49
49
  {
50
50
#if defined(HAVE_GETCWD)
99
99
    dir=FN_ROOTDIR;
100
100
#ifdef VMS
101
101
  {
102
 
    pos=my_stpcpy(buff,dir);
 
102
    pos=stpcpy(buff,dir);
103
103
    if (pos[-1] != FN_LIBCHAR)
104
104
    {
105
105
      pos[0]=FN_LIBCHAR;                /* Mark as directory */
141
141
int test_if_hard_path(register const char *dir_name)
142
142
{
143
143
  if (dir_name[0] == FN_HOMELIB && dir_name[1] == FN_LIBCHAR)
144
 
    return (home_dir != NULL && test_if_hard_path(home_dir));
 
144
    return (home_dir != NullS && test_if_hard_path(home_dir));
145
145
  if (dir_name[0] == FN_LIBCHAR)
146
146
    return (true);
147
147
#ifdef FN_DEVCHAR