Lines Matching defs:rootlen
883 static int rootlen = 0; /* length of rootpath */
1015 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+3)) ==
1022 else if (!renamed_fullpath && rootlen > 1 && rootpath[1] == ':')
1041 } else if (rootlen > 0) {
1043 end = buildpath + rootlen;
1068 rootlen = 0;
1071 if (rootlen > 0) /* rootpath was already set, nothing to do */
1073 if ((rootlen = strlen(pathcomp)) > 0) {
1077 if ((tmproot = (char *)malloc(rootlen+3)) == (char *)NULL) {
1078 rootlen = 0;
1084 if (tmproot[rootlen-1] == '/' || tmproot[rootlen-1] == '\\') {
1085 tmproot[--rootlen] = '\0';
1088 if (has_drive && (rootlen == 2)) {
1091 } else if (rootlen > 0) { /* need not check "x:." and "x:/" */
1103 rootlen = 0;
1116 rootlen = 0;
1124 tmproot[rootlen++] = '.';
1125 tmproot[rootlen++] = '/';
1126 tmproot[rootlen] = '\0';
1127 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
1129 rootlen = 0;
1144 if (rootlen > 0) {
1146 rootlen = 0;