projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r51: Added support for Windows NT
[ctsim.git]
/
src
/
sdf-2.c
diff --git
a/src/sdf-2.c
b/src/sdf-2.c
index 3a1843848bae049e4cb199570fcbf4393163ef52..89e9bf41f205f693335d8c0ef9324a9a9938fe7e 100644
(file)
--- a/
src/sdf-2.c
+++ b/
src/sdf-2.c
@@
-2,10
+2,17
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: sdf-2.c,v 1.
1 2000/04/28 13:02:44
kevin Exp $
+** $Id: sdf-2.c,v 1.
3 2000/05/11 01:06:30
kevin Exp $
** $Log: sdf-2.c,v $
** $Log: sdf-2.c,v $
-** Revision 1.1 2000/04/28 13:02:44 kevin
-** Initial revision
+** Revision 1.3 2000/05/11 01:06:30 kevin
+** Changed sprintf to snprintf
+**
+** Revision 1.2 2000/05/08 20:02:32 kevin
+** ANSI C changes
+**
+** Revision 1.1.1.1 2000/04/28 13:02:44 kevin
+** Initial CVS import for first public release
+**
**
**
** This program is free software; you can redistribute it and/or modify
**
**
** This program is free software; you can redistribute it and/or modify
@@
-27,13
+34,7
@@
#include "ct.h"
#include "ct.h"
-#define O_ADD 1
-#define O_SUB 2
-#define O_MUL 3
-#define O_COMP 4
-#define O_VERBOSE 7
-#define O_HELP 8
-#define O_VERSION 9
+enum {O_ADD, O_SUB, O_MUL, O_COMP, O_VERBOSE, O_HELP, O_VERSION};
static struct option my_options[] =
{
static struct option my_options[] =
{
@@
-61,7
+62,7
@@
usage (const char *program)
fprintf(stdout, " --mul Multiply images\n");
fprintf(stdout, " --comp Compare images\n");
fprintf(stdout, " --verbose Verbose modem\n");
fprintf(stdout, " --mul Multiply images\n");
fprintf(stdout, " --comp Compare images\n");
fprintf(stdout, " --verbose Verbose modem\n");
- fprintf(stdout,
"
--version Print version\n");
+ fprintf(stdout,
"
--version Print version\n");
fprintf(stdout, " --help Print this help message\n");
exit(1);
}
fprintf(stdout, " --help Print this help message\n");
exit(1);
}