Skip to content

Commit

Permalink
Rename modules tNum* to num* #20
Browse files Browse the repository at this point in the history
  • Loading branch information
subogero committed Jul 25, 2013
1 parent 753a653 commit bb03552
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Expand Up @@ -7,8 +7,8 @@ grammar.c
grammar.h
patterns.c
patterns.h
tNum
tNum.exe
num
num.exe
vars
vars.exe
Release.txt
Expand Down
14 changes: 7 additions & 7 deletions Makefile.in
Expand Up @@ -49,15 +49,15 @@ W64C :=
W64LIBS :=

# Sources
CSRC := szg.c grammar.c output.c tNum.c patterns.c arg1.c
HSRC := szg.h output.h tNum.h arg1.h version.h usage.h
CSRC := szg.c grammar.c output.c num.c patterns.c arg1.c
HSRC := szg.h output.h num.h arg1.h version.h usage.h

ifneq "$(VARS)" "no"
CSRC += vars.c
HSRC += vars.h
endif

TMPF := patterns.c patterns.h grammar.c grammar.h tNumTest usage.h version.h *~ *.tar.gz
TMPF := patterns.c patterns.h grammar.c grammar.h num usage.h version.h *~ *.tar.gz

MANPAGE:= szg.1
MANDIR := $(DESTDIR)/usr/share/man/man1
Expand All @@ -80,13 +80,13 @@ $(W64)/$(WARGET): $(CSRC) $(HSRC) Makefile usage.txt version.txt
@if [ ! -d $(W64) ]; then mkdir $(W64); fi
$(W64C) $(CFLAGS) -o $(W64)/$(WARGET) $(W64LIBS) $(CSRC) $(LIBS);

# tNum test-suite
tNum:
@$(CC) $(CFLAGS) -o tNum tNum.c tNumTest.c
# num test-suite
num:
@$(CC) $(CFLAGS) -lm -o num num.c num_test.c

# vars test-suite
vars:
@$(CC) $(CFLAGS) -o vars vars.c tNum.c varsTest.c
@$(CC) $(CFLAGS) -o vars vars.c num.c varsTest.c

# c/h from y (yacc)
%.c: %.y
Expand Down
2 changes: 1 addition & 1 deletion grammar.y
Expand Up @@ -4,7 +4,7 @@
* There is absolutely no warranty.
*****************************************************************************/
%{
#include "tNum.h"
#include "num.h"
%}

%union {
Expand Down
2 changes: 1 addition & 1 deletion tNum.c → num.c
Expand Up @@ -3,7 +3,7 @@
* Free software, distributed under the WTFPL license
* There is absolutely no warranty.
*****************************************************************************/
#include "tNum.h"
#include "num.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tNumTest.c → num_test.c
@@ -1,4 +1,4 @@
#include "tNum.h"
#include "num.h"
int main(void) {
struct tNum n1, n2;

Expand Down
2 changes: 1 addition & 1 deletion output.h
Expand Up @@ -4,7 +4,7 @@
* There is absolutely no warranty.
******************************************************************************/
/* Undo stack for the outputs of all previous statements */
#include "tNum.h"
#include "num.h"

/* Output of the last statement stored here */
extern struct tNum output;
Expand Down
2 changes: 1 addition & 1 deletion vars.h
Expand Up @@ -6,7 +6,7 @@
#ifndef __vars
#define __vars

#include "tNum.h"
#include "num.h"

char *vars_alloc(char *key);
void vars_set(char *key, struct tNum *num);
Expand Down
2 changes: 1 addition & 1 deletion varsTest.c
@@ -1,4 +1,4 @@
#include "tNum.h"
#include "num.h"
#include "vars.h"
#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit bb03552

Please sign in to comment.