projects
/
framework
/
uifw
/
embryo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tizen 2.3.1 release
[framework/uifw/embryo.git]
/
src
/
bin
/
embryo_cc_sc5.c
diff --git
a/src/bin/embryo_cc_sc5.c
b/src/bin/embryo_cc_sc5.c
index
e87e168
..
4c650ca
100644
(file)
--- a/
src/bin/embryo_cc_sc5.c
+++ b/
src/bin/embryo_cc_sc5.c
@@
-1,7
+1,4
@@
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- *
- * Small compiler - Error message system
+/* Small compiler - Error message system
* In fact a very simple system, using only 'panic mode'.
*
* Copyright (c) ITB CompuPhase, 1997-2003
* In fact a very simple system, using only 'panic mode'.
*
* Copyright (c) ITB CompuPhase, 1997-2003
@@
-22,12
+19,9
@@
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
- * Version: $Id
: embryo_cc_sc5.c 45192 2010-01-15 19:44:25Z englebass
$
+ * Version: $Id$
*/
*/
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
#ifdef HAVE_CONFIG_H
# include <config.h>
#ifdef HAVE_CONFIG_H
# include <config.h>
@@
-38,7
+32,7
@@
#include <stdarg.h>
#include <string.h>
#include <stdarg.h>
#include <string.h>
-#if
ndef _MSC_VER
+#if
def HAVE_UNISTD_H
# include <unistd.h>
#endif
# include <unistd.h>
#endif
@@
-55,9
+49,9
@@
static int errstart; /* line number at which the instruction started */
* errors are ignored until lex() finds a semicolumn or a keyword
* (lex() resets "errflag" in that case).
*
* errors are ignored until lex() finds a semicolumn or a keyword
* (lex() resets "errflag" in that case).
*
- * Global references: inpfname (ref
fe
red to only)
- * fline (ref
fe
red to only)
- * fcurrent (ref
fe
red to only)
+ * Global references: inpfname (ref
er
red to only)
+ * fline (ref
er
red to only)
+ * fcurrent (ref
er
red to only)
* errflag (altered)
*/
int
* errflag (altered)
*/
int
@@
-80,14
+74,16
@@
error(int number, ...)
if (number < 100)
{
if (number < 100)
{
- msg = errmsg[number - 1];
- errflag = TRUE; /* set errflag (skip rest of erroneous expression) */
- errnum++;
+ if (number > 74) number = 74;
+ msg = errmsg[number - 1];
+ errflag = TRUE; /* set errflag (skip rest of erroneous expression) */
+ errnum++;
}
else if (number < 200)
{
}
else if (number < 200)
{
- msg = fatalmsg[number - 100];
- errnum++; /* a fatal error also counts as an error */
+ if (number > 107) number = 107;
+ msg = fatalmsg[number - 100];
+ errnum++; /* a fatal error also counts as an error */
}
else
{
}
else
{
@@
-116,7
+112,7
@@
error(int number, ...)
sc_error(0, "\nCompilation aborted.", NULL, 0, 0, argptr);
va_end(argptr);
sc_error(0, "\nCompilation aborted.", NULL, 0, 0, argptr);
va_end(argptr);
- if (outf
!= NULL
)
+ if (outf)
{
sc_closeasm(outf);
outf = NULL;
{
sc_closeasm(outf);
outf = NULL;