~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.watershed/shed/com_line.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "watershed.h"
5
5
#include "string.h"
6
6
 
7
 
/* make sure any useful info is transfered to the man page before ripping out the interactive help messages */
8
 
/* in addition there seem to be some useful user options here which are not currently available from the main parrser */
 
7
/* make sure any useful info is transferred to the man page before ripping out the interactive help messages */
 
8
/* in addition there seem to be some useful user options here which are not currently available from the main parser */
9
9
int com_line_Gwater(INPUT * input, OUTPUT * output)
10
10
{
11
11
    struct Cell_head *window;
420
420
 
421
421
int com_line_add(char **com_line, char *prompt, char *map_layer, char *mapset)
422
422
{
423
 
    G_strcat(*com_line, prompt);
424
 
    G_strcat(*com_line, "\"");
425
 
    G_strcat(*com_line, map_layer);
 
423
    strcat(*com_line, prompt);
 
424
    strcat(*com_line, "\"");
 
425
    strcat(*com_line, map_layer);
426
426
    if (mapset) {
427
 
        G_strcat(*com_line, "@");
428
 
        G_strcat(*com_line, mapset);
 
427
        strcat(*com_line, "@");
 
428
        strcat(*com_line, mapset);
429
429
    }
430
 
    G_strcat(*com_line, "\"");
 
430
    strcat(*com_line, "\"");
431
431
 
432
432
    return 0;
433
433
}
442
442
    if (i < 1)
443
443
        i = 1;
444
444
    sprintf(buf, " t=%d", i);
445
 
    G_strcat(*com_line, buf);
 
445
    strcat(*com_line, buf);
446
446
 
447
447
    return 0;
448
448
}
451
451
{
452
452
    char buf[20];
453
453
 
454
 
    G_strcat(*com_line, prompt);
 
454
    strcat(*com_line, prompt);
455
455
    sprintf(buf, "%d", ril_value);
456
 
    G_strcat(*com_line, buf);
 
456
    strcat(*com_line, buf);
457
457
 
458
458
    return 0;
459
459
}