Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit eeca793

Browse files
committed
Better check for scripts without entry point and without public functions.
Updated comment headers on changed files.
1 parent fb37fa7 commit eeca793

File tree

12 files changed

+47
-32
lines changed

12 files changed

+47
-32
lines changed

amx/amx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: amx.c 6965 2023-07-20 15:44:35Z thiadmer $
17+
* Version: $Id: amx.c 6966 2023-07-20 18:46:01Z thiadmer $
1818
*/
1919

2020
#define WIN32_LEAN_AND_MEAN

amx/amx.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: amx.h 6964 2023-07-19 19:08:42Z thiadmer $
17+
* Version: $Id: amx.h 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919

2020
#ifndef AMX_H_INCLUDED

amx/amxfile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Text file I/O module for the Pawn Abstract Machine
22
*
3-
* Copyright (c) CompuPhase, 2003-2020
3+
* Copyright (c) CompuPhase, 2003-2023
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
* use this file except in compliance with the License. You may obtain a copy
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: amxfile.c 6131 2020-04-29 19:47:15Z thiadmer $
17+
* Version: $Id: amxfile.c 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919
#if defined _UNICODE || defined __UNICODE__ || defined UNICODE
2020
# if !defined UNICODE /* for Windows */

amx/amxtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: amxtime.c 6131 2020-04-29 19:47:15Z thiadmer $
17+
* Version: $Id: amxtime.c 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919
#include <time.h>
2020
#include <assert.h>

compiler/sc1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* License for the specific language governing permissions and limitations
2424
* under the License.
2525
*
26-
* Version: $Id: sc1.c 6965 2023-07-20 15:44:35Z thiadmer $
26+
* Version: $Id: sc1.c 6966 2023-07-20 18:46:01Z thiadmer $
2727
*/
2828
#include <assert.h>
2929
#include <ctype.h>
@@ -5432,7 +5432,7 @@ static int testsymbols(symbol *root,int level,int testlabs,int testconst)
54325432
error(203,symname); /* symbol isn't used ... (and not public/native/stock) */
54335433
} /* if */
54345434
} /* if */
5435-
if ((sym->usage & uPUBLIC)!=0 || (sym->flags & flgENTRYPOINT)!=0)
5435+
if (((sym->usage & uPUBLIC)!=0 || (sym->flags & flgENTRYPOINT)!=0) && (sym->usage & uDEFINE)!=0)
54365436
entry=TRUE; /* there is an entry point */
54375437
/* also mark the function to the debug information */
54385438
if (((sym->usage & uREAD)!=0 || (sym->usage & uPUBLIC)!=0 && (sym->usage & uDEFINE)!=0)

compiler/sc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Pawn compiler - File input, preprocessing and lexical analysis functions
22
*
3-
* Copyright (c) CompuPhase, 1997-2020
3+
* Copyright (c) CompuPhase, 1997-2023
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
* use this file except in compliance with the License. You may obtain a copy
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: sc2.c 6932 2023-04-03 13:56:19Z thiadmer $
17+
* Version: $Id: sc2.c 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919
#include <assert.h>
2020
#include <stdio.h>

compiler/sc3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Pawn compiler - Recursive descend expresion parser
22
*
3-
* Copyright (c) CompuPhase, 1997-2021
3+
* Copyright (c) CompuPhase, 1997-2023
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
* use this file except in compliance with the License. You may obtain a copy
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: sc3.c 6932 2023-04-03 13:56:19Z thiadmer $
17+
* Version: $Id: sc3.c 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919
#include <assert.h>
2020
#include <stdio.h>

compiler/sc5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* In fact a very simple system, using only 'panic mode'.
44
*
5-
* Copyright (c) CompuPhase, 1997-2016
5+
* Copyright (c) CompuPhase, 1997-2023
66
*
77
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
88
* use this file except in compliance with the License. You may obtain a copy
@@ -16,7 +16,7 @@
1616
* License for the specific language governing permissions and limitations
1717
* under the License.
1818
*
19-
* Version: $Id: sc5.c 6932 2023-04-03 13:56:19Z thiadmer $
19+
* Version: $Id: sc5.c 6965 2023-07-20 15:44:35Z thiadmer $
2020
*/
2121
#include <assert.h>
2222
#if defined __WIN32__ || defined _WIN32 || defined __MSDOS__

compiler/sci18n.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* License for the specific language governing permissions and limitations
2727
* under the License.
2828
*
29-
* Version: $Id: sci18n.c 6965 2023-07-20 15:44:35Z thiadmer $
29+
* Version: $Id: sci18n.c 6966 2023-07-20 18:46:01Z thiadmer $
3030
*/
3131
#include <assert.h>
3232
#include <stdio.h>

compiler/svnrev.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
* (https://www.compuphase.com/svnrev.htm).
33
* You should not modify it manually, as it may be re-generated.
44
*
5-
* $Revision: 6932M$
6-
* $Date: 2023-04-03$
5+
* $Revision: 6965M$
6+
* $Date: 2023-07-20$
77
*/
88

99
#ifndef _SVNREV_H_
1010
#define _SVNREV_H_
1111

12-
#define SVNREV_NUM 6932
13-
#define SVNREV_STR "6932M"
14-
#define SVNREV_RCS "$Revision: 6932M $"
15-
#define SVNREV_DATE "2023-04-03"
16-
#define SVNREV_STAMP 20230403L
12+
#define SVNREV_NUM 6965
13+
#define SVNREV_STR "6965M"
14+
#define SVNREV_RCS "$Revision: 6965M $"
15+
#define SVNREV_DATE "2023-07-20"
16+
#define SVNREV_STAMP 20230720L
1717
#define SVNREV_MODIFIED 1
1818

1919
#endif /* _SVNREV_H_ */

0 commit comments

Comments
 (0)