~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getwd.c

  • Committer: Brian Aker
  • Date: 2008-07-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
  if (dir_name[0] == FN_HOMELIB && dir_name[1] == FN_LIBCHAR)
148
148
    return (home_dir != NullS && test_if_hard_path(home_dir));
149
149
  if (dir_name[0] == FN_LIBCHAR)
150
 
    return (TRUE);
 
150
    return (true);
151
151
#ifdef FN_DEVCHAR
152
152
  return (strchr(dir_name,FN_DEVCHAR) != 0);
153
153
#else
154
 
  return FALSE;
 
154
  return false;
155
155
#endif
156
156
} /* test_if_hard_path */
157
157
 
164
164
    name                The name to test.
165
165
 
166
166
  RETURN
167
 
    TRUE        name contains a path.
168
 
    FALSE       name does not contain a path.
 
167
    true        name contains a path.
 
168
    false       name does not contain a path.
169
169
*/
170
170
 
171
171
bool has_path(const char *name)