Attempt to make work on OSX, and update the build matrix.
This commit is contained in:
parent
ddfe372ac8
commit
8b0a3ac473
69
.github/workflows/codeql-analysis.yml
vendored
69
.github/workflows/codeql-analysis.yml
vendored
|
@ -1,69 +0,0 @@
|
|||
# For most projects, this workflow file will not need changing; you simply need
|
||||
# to commit it to your repository.
|
||||
#
|
||||
# You may wish to alter this file to override the set of languages analyzed,
|
||||
# or to provide custom queries or build logic.
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [default]
|
||||
pull_request:
|
||||
# The branches below must be a subset of the branches above
|
||||
branches: [default]
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Override automatic language detection by changing the below list
|
||||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
|
||||
language: ['cpp']
|
||||
# Learn more...
|
||||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# We must fetch at least the immediate parents so that if this is
|
||||
# a pull request then we can checkout the head.
|
||||
fetch-depth: 2
|
||||
|
||||
# If this run was triggered by a pull request event, then checkout
|
||||
# the head of the pull request instead of the merge commit.
|
||||
- run: git checkout HEAD^2
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
# By default, queries listed here will override any specified in a config file.
|
||||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: make
|
||||
run: make PREFIX=/tmp/acki +ack
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
# and modify them (or add more) to build your code if your project
|
||||
# uses a compiled language
|
||||
|
||||
#- run: |
|
||||
# make bootstrap
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
|
@ -12,6 +12,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
struct exec {
|
||||
short a_magic;
|
||||
|
@ -52,6 +53,11 @@ int outputfile_created;
|
|||
FILE *output;
|
||||
int rom_in_text;
|
||||
|
||||
static cv_int2();
|
||||
static fatal();
|
||||
static emits();
|
||||
static emit_symtab();
|
||||
|
||||
char *program ;
|
||||
|
||||
char flag ;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "glosym.h"
|
||||
#include "extern.h"
|
||||
#include "subr.h"
|
||||
#include "regvar.h"
|
||||
#include "salloc.h"
|
||||
|
||||
|
||||
|
|
|
@ -17,6 +17,6 @@ void gencode(register char *code);
|
|||
void genexpr(int nodeno);
|
||||
void gennl(void);
|
||||
void prtoken(token_p tp);
|
||||
|
||||
void regreturn(void);
|
||||
|
||||
#endif /* GENCODE_H_ */
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
# include "types.h"
|
||||
# include "io.h"
|
||||
# include "extern.h"
|
||||
|
|
|
@ -19,6 +19,7 @@ void dt_stip(register ptr addr, ptr ap);
|
|||
void dt_stf(register ptr addr, double f, register size n);
|
||||
#endif
|
||||
|
||||
ptr dt_ldip(ptr addr);
|
||||
ptr dt_lddp(register ptr addr);
|
||||
unsigned long dt_ldu(register ptr addr, size n);
|
||||
unsigned long dt_lduw(register ptr addr);
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
#ifndef IO_H_
|
||||
#define IO_H_
|
||||
|
||||
void fatal(char *fmt, ...);
|
||||
void message(char *fmt, ...);
|
||||
void init_ofiles(int firsttime);
|
||||
void close_down(int rc);
|
||||
extern void fatal(char *fmt, ...);
|
||||
extern void message(char *fmt, ...);
|
||||
extern void init_ofiles(int firsttime);
|
||||
extern void close_down(int rc);
|
||||
extern void incr_mess_id(void);
|
||||
|
||||
#endif /* IO_H_ */
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include "trap.h"
|
||||
#include "warn.h"
|
||||
#include "switch.h"
|
||||
#include "stack.h"
|
||||
#include "data.h"
|
||||
|
||||
void do_instr(unsigned int opcode)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue