Compare commits

..

2 Commits

Author SHA1 Message Date
Greg Shuflin
da8bc84c36 Remove boilierplate from deleted code 2023-07-25 23:07:52 -07:00
Greg Shuflin
d036f6574b Delete old C source file 2023-07-25 23:03:47 -07:00
3 changed files with 3 additions and 46 deletions

View File

@ -17,7 +17,7 @@ CFLAGS ?= -Wextra -Wall -O2
.PHONY: all install uninstall clean
nms: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmscharset.o $(OBJ)/nmstermio.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
nms: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmstermio.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/$@ $^ target/release/libnmsrust.a
sneakers: $(OBJ)/nmscharset.o $(OBJ)/nmstermio.o $(OBJ)/nmseffect.o $(OBJ)/sneakers.o | $(BIN)
@ -27,7 +27,7 @@ all: nms sneakers
all-ncurses: nms-ncurses sneakers-ncurses
nms-ncurses: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
nms-ncurses: $(OBJ)/input.o $(OBJ)/error.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/nms.o | $(BIN)
$(CC) $(CFLAGS) -o $(BIN)/nms $^ -lncursesw
sneakers-ncurses: $(OBJ)/nmscharset.o $(OBJ)/nmstermio_ncurses.o $(OBJ)/nmseffect.o $(OBJ)/sneakers.o | $(BIN)

View File

@ -4,43 +4,12 @@
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GPL License. See LICENSE for more details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include "nmseffect.h"
#include "input.h"
#include "error.h"
#define VERSION "1.0.1"
extern void rust_main();
int main(int argc, char *argv[])
int main(void)
{
rust_main();
/*
unsigned char *input = NULL;
int r = input_get(&input, "Enter input: ");
if (r < 0)
{
error_log("Could not get input.");
error_print();
return EXIT_FAILURE;
}
else if (r == 0)
{
error_log("Input is empty.");
error_print();
return EXIT_FAILURE;
}
r = nmseffect_exec(input, r);
free(input);
*/
return EXIT_SUCCESS;
}

View File

@ -1,12 +0,0 @@
/*
* Copyright (c) 2017 Brian Barto
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GPL License. See LICENSE for more details.
*/
/*
* The nmscharset module defines the character set that is used to
* represent encryption.
*/