IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13405


Ignore:
Timestamp:
May 16, 2007, 4:18:15 PM (19 years ago)
Author:
eugene
Message:

fixing compile-time errors

Location:
branches/kapa-mods-2007-05/Ohana
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/Makefile.in

    r12859 r13405  
    3737imclean     \
    3838imregister  \
    39 kapa        \
    40 kii         \
     39kapa2       \
    4140misc        \
    4241mosastro    \
     
    9695mana:
    9796        make libs
    98         make kii.install
    99         make kapa.install
     97        make kapa2.install
    10098        cd src/opihi; make mana.install && exit
    10199
    102100dvoshell:
    103101        make libs
    104         make kii.install
    105         make kapa.install
     102        make kapa2.install
    106103        cd src/opihi; make dvo.install && exit
    107104
  • branches/kapa-mods-2007-05/Ohana/src/gastro/Makefile

    r12842 r13405  
    1515FULL_CFLAGS   = $(BASE_CFLAGS)
    1616FULL_CPPFLAGS = $(BASE_CPPFLAGS)
    17 FULL_LDFLAGS  = -ldvo -lFITS -lohana $(BASE_LDFLAGS)
     17FULL_LDFLAGS  = -lkapa -ldvo -lFITS -lohana $(BASE_LDFLAGS)
    1818
    1919gastro: $(BIN)/gastro.$(ARCH)
  • branches/kapa-mods-2007-05/Ohana/src/gastro2/Makefile

    r12842 r13405  
    1515FULL_CFLAGS   = $(BASE_CFLAGS)
    1616FULL_CPPFLAGS = $(BASE_CPPFLAGS)
    17 FULL_LDFLAGS  = -ldvo -lFITS -lohana $(BASE_LDFLAGS)
     17FULL_LDFLAGS  = -lkapa -ldvo -lFITS -lohana $(BASE_LDFLAGS)
    1818
    1919gastro2: $(BIN)/gastro2.$(ARCH)
  • branches/kapa-mods-2007-05/Ohana/src/kapa2/Makefile

    r13333 r13405  
    4949$(SRC)/Graphs.$(ARCH).o                   $(SRC)/SetGraphSize.$(ARCH).o       \
    5050$(SRC)/Resize.$(ARCH).o                   $(SRC)/ErasePlots.$(ARCH).o         \
     51$(SRC)/EraseImage.$(ARCH).o         \
    5152$(SRC)/EraseCurrentPlot.$(ARCH).o         $(SRC)/EraseSections.$(ARCH).o      \
    5253$(SRC)/SetSection.$(ARCH).o               $(SRC)/DefineSection.$(ARCH).o      \
  • branches/kapa-mods-2007-05/Ohana/src/kapa2/src/Sections.c

    r13404 r13405  
    158158int MoveSection (int sock) {
    159159
     160  int i, N;
    160161  char name[128];
    161162  char direction[16];
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/include/kapa.h

    r13404 r13405  
    154154int KapaSelectSection (int fd, char *name);
    155155int KapaGetSection (int fd, char *name);
    156 int KapaMoveSection (int fd, KapaSection *section, char *direction);
     156int KapaMoveSection (int fd, char *name, char *direction);
    157157
    158158/* KapaColors */
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KapaWindow.c

    r13404 r13405  
    22
    33int KiiCenter (int fd, double x, double y, int zoom) {
     4
     5  char word[5];
    46
    57  KiiSendCommand (fd, 4, "CENT");
     
    1618int KiiResize (int fd, int Nx, int Ny) {
    1719
     20  char word[5];
     21
    1822  KiiSendCommand (fd, 4, "RSIZ");
    1923  KiiSendMessage (fd, "%d %d", Nx, Ny);
     
    2933int KapaBox (int fd, Graphdata *graphdata) {
    3034
     35  char word[5];
     36
    3137  KiiSendCommand (fd, 4, "DBOX");
    32 
    3338  KiiSendMessage (fd, "%12.6g %12.6g %12.6g %12.6g",
    3439                    graphdata[0].xmin, graphdata[0].xmax, graphdata[0].ymin, graphdata[0].ymax);
     
    4651int KapaClearCurrentPlot (int fd) {
    4752 
     53  char word[5];
     54
    4855  KiiSendCommand (fd, 4, "ERSC");
    4956  KiiScanCommand (fd, 4, "%s", word);
     
    5764int KapaClearPlots (int fd) {
    5865 
     66  char word[5];
     67
    5968  KiiSendCommand (fd, 4, "ERSP");
    6069  KiiScanCommand (fd, 4, "%s", word);
     
    6877int KapaClearSections (int fd) {
    6978 
     79  char word[5];
     80
    7081  KiiSendCommand (fd, 4, "ERSS");
    7182  KiiScanCommand (fd, 4, "%s", word);
     
    7990int KapaClearImage (int fd) {
    8091 
     92  char word[5];
     93
    8194  KiiSendCommand (fd, 4, "ERSI");
    8295  KiiScanCommand (fd, 4, "%s", word);
     
    116129int KapaPrepPlot (int fd, int Npts, Graphdata *graphmode) {
    117130
     131  char word[5];
     132
    118133  /* tell kapa to look for the incoming image */
    119134  KiiSendCommand (fd, 4, "PLOT");
     
    149164int KapaSetFont (int fd, char *name, int size) {
    150165
     166  char word[5];
     167
    151168  KiiSendCommand (fd, 4, "FONT");
    152169  KiiSendCommand (fd, 16, "%s", name);
     
    164181int KapaSendLabel (int fd, char *string, int mode) {
    165182 
     183  char word[5];
     184
    166185  KiiSendCommand (fd, 4, "LABL");
    167186  KiiSendMessage (fd, "%6d", mode);
     
    179198int KapaSendTextline (int fd, char *string, float x, float y, float angle) {
    180199 
     200  char word[5];
     201
    181202  KiiSendCommand (fd, 4, "PTXT");
    182203  KiiSendMessage (fd, "%f %f %f", x, y, angle);
     
    194215int KapaSetLimits (int fd, Graphdata *graphmode) {
    195216
     217  char word[5];
     218
    196219  KiiSendCommand (fd, 4, "SLIM");
    197220  KiiSendMessage (fd, "%g %g %g %g ", graphmode[0].xmin, graphmode[0].xmax, graphmode[0].ymin, graphmode[0].ymax);
     
    209232int KapaGetLimits (int fd, float *dx, float *dy) {
    210233
    211   KiiSendCommand (kapa, 4, "LIMS");
    212   KiiScanMessage (kapa, "%lf %lf", dx, dy);
     234  char word[5];
     235
     236  KiiSendCommand (fd, 4, "LIMS");
     237  KiiScanMessage (fd, "%lf %lf", dx, dy);
    213238
    214239  KiiScanCommand (fd, 4, "%s", word);
     
    222247
    223248int KapaSetSection (int fd, KapaSection *section) {
     249
     250  char word[5];
    224251
    225252  KiiSendCommand (fd, 4, "DSEC");
     
    242269int KapaMoveSection (int fd, char *name, char *direction) {
    243270
     271  char word[5];
     272
    244273  if (!strcasecmp(direction, "up")) goto valid;
    245274  if (!strcasecmp(direction, "down")) goto valid;
     
    264293int KapaSelectSection (int fd, char *name) {
    265294
     295  char word[5];
     296
    266297  KiiSendCommand (fd, 4, "SSEC");
    267298  KiiSendMessage (fd, "%s", name);
     
    278309int KapaGetSection (int fd, char *name) {
    279310
     311  char word[5];
     312
    280313  KiiSendCommand (fd, 4, "LSEC");
    281314  KiiSendMessage (fd, "%s", name);
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiConvert.c

    r13402 r13405  
    33int KiiJPEG (int fd, const char *filename) {
    44
    5   char buffer[20];
     5  char buffer[20], word[5];
    66
    77  KiiSendCommand (fd, 4, "JPEG");
     
    1919int KapaPNG (int fd, const char *filename) {
    2020
    21   char buffer[20];
     21  char buffer[20], word[5];
    2222
    2323  KiiSendCommand (fd, 4, "PNGF");
     
    3535int KapaPPM (int fd, const char *filename) {
    3636
    37   char buffer[20];
     37  char buffer[20], word[5];
    3838
    3939  KiiSendCommand (fd, 4, "PPMF");
     
    5151int KiiPS (int fd, const char *filename, int scaleMode, int pageMode, char *pagename) {
    5252
    53   char buffer[20];
     53  char buffer[20], word[5];
    5454
    5555  /* the default operation */
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiCursor.c

    r13402 r13405  
    22
    33int KiiCursorOn (int fd) {
     4  char word[5];
     5
    46  KiiSendCommand (fd, 4, "CURS");
    57  KiiScanCommand (fd, 4, "%s", word);
     
    1214
    1315int KiiCursorOff (int fd) {
     16  char word[5];
     17
    1418  KiiSendCommand (fd, 4, "NCUR");
    1519  KiiScanCommand (fd, 4, "%s", word);
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiOverlay.c

    r13402 r13405  
    5353
    5454  int i, n, Nline;
    55   char *buffer, *type;
     55  char *buffer, *type, word[5];
    5656
    5757  KiiSelectOverlay (overname, &n);
     
    9999
    100100  int n;
     101  char word[5];
    101102
    102103  KiiSelectOverlay (overname, &n);
     
    116117
    117118  int n;
     119  char word[5];
    118120
    119121  KiiSelectOverlay (overname, &n);
  • branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiPicture.c

    r13402 r13405  
    66  int Npix, Ncolors, NNcolors, size;
    77  float *in, min, max;
    8   char *out, *outbuffer, *root;
     8  char *out, *outbuffer, *root, word[5];
    99  double a1, a2;
    1010
     
    7272  float *in, min, max;
    7373  char *out, *outbuffer, *root;
    74   char buffer[1024];
     74  char buffer[1024], word[5];
    7575  double a1, a2;
    7676
Note: See TracChangeset for help on using the changeset viewer.