Mercurial > hg > index.cgi
comparison lwasm/input.c @ 248:891bab942b5a
Another adjustment for the drive letter problem.
Need to actually check for a drive letter being specified when looking for a
an open type prefix tag otherwise the drive letter prefix is considered as
an open type.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 24 Jan 2013 21:24:32 -0700 |
parents | 4b36eaaf80c3 |
children | 201b2774cb0e |
comparison
equal
deleted
inserted
replaced
247:4b36eaaf80c3 | 248:891bab942b5a |
---|---|
201 t = lw_alloc(sizeof(struct input_stack)); | 201 t = lw_alloc(sizeof(struct input_stack)); |
202 t -> filespec = lw_strdup(s); | 202 t -> filespec = lw_strdup(s); |
203 | 203 |
204 for (s2 = s; *s2 && (*s2 != ':'); s2++) | 204 for (s2 = s; *s2 && (*s2 != ':'); s2++) |
205 /* do nothing */ ; | 205 /* do nothing */ ; |
206 if (!*s2) | 206 if (input_isabsolute(s) || !*s2) |
207 { | 207 { |
208 t -> type = input_type_file; | 208 t -> type = input_type_file; |
209 } | 209 } |
210 else | 210 else |
211 { | 211 { |