aboutsummaryrefslogtreecommitdiffstats
path: root/asm/pptok.pl
Commit message (Collapse)AuthorAgeFilesLines
* pptok.pl: don't leak internal codes into pptok.cH. Peter Anvin (Intel)2019-08-151-1/+1
| | | | | | | | If we have internal codes in pptok.c, we may have false matches for them as tokens, plus, there is no reason for them to exist there. Go back to putting NULL in those slots. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* preproc: simplify handling of conditionals and casesenseH. Peter Anvin (Intel)2019-08-151-40/+55
| | | | | | | | | | Simplify the handling of conditionals; remove the PPC_* types. Automate the generation of case-sensitive versus case-insensitive directives, and make it so the bulk of the code doesn't have to worry about it. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* perl files: clean up warningsH. Peter Anvin (Intel)2019-08-091-2/+0
| | | | | | | | | | | | Clean up some perl warnings, some of which were legitimate (apparently undef doesn't actually take a list of arguments, a common enough mistake that it is mentioned in the man page!, and a list of variables after "my" can be cantankerous), and some of which were nuisance but were easy enough to clean up. Maybe this can resolve the problems with very old version of Perl? Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
* Replace <ctype.h> includes with "nctype.h"H. Peter Anvin2018-12-271-1/+1
| | | | | | | For almost everything we should use "nctype.h". Right now we don't have a nasm_toupper() to use <ctype.h> for things that need toupper(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* perl: change to the new, safer 3-operand form of open()H. Peter Anvin2017-04-021-2/+2
| | | | | | | | | | | The 2-operand form was inherently unsafe. Use the 3-operand form instead, which guarantees that arbitrary filenames are supported. This also means we can remove a few instances of sysopen() which was used for exactly this reason, however, at least in theory sysopen() isn't portable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Reorganize the source code into subdirectoriesH. Peter Anvin2016-05-251-0/+271
Make the source code easier to understand and keep track of by organizing it into subdirectories depending on the function. Signed-off-by: H. Peter Anvin <hpa@zytor.com>