You are forbidden to forbid anyone else to use, share and improve
what you give them. Help stamp out software-hoarding! */
+#if defined(_MSC_VER)
+
+#include "..\..\sdcc_vc.h"
+#include <io.h>
+
+#else
+
#include "sdccconf.h"
+#endif
+
#ifdef EMACS
#define NO_SHORTNAMES
#include "../src/config.h"
#else
#ifndef VMS
#ifndef USG
+#if !defined(_MSC_VER)
#include <sys/time.h> /* for __DATE__ and __TIME__ */
#include <sys/resource.h>
#else
// #include <sys/times.h>
#include <time.h>
#include <fcntl.h>
+#endif // _MSC_VER
#endif /* USG */
#endif /* not VMS */
#endif
break;
case '/':
nextc = PEEKC();
- if (nextc == '*' || (opts->cplusplus_comments && nextc == '*'))
+ if (nextc == '*' || (opts->cplusplus_comments && nextc == '/'))
goto scan_directive_token;
break;
case '\f':
concat = p;
#endif
}
+ else if (*p == '/') {
+ /* A c++ comment. Discard to the end of line */
+ exp_p--;
+ p = limit;
+ }
break;
}
}