IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 13, 2021, 10:30:23 AM (5 years ago)
Author:
eugene
Message:

improve vector name consistency; remove rotate verbosity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/VectorOps.c

    r41341 r41715  
    6565}
    6666
     67int IsVectorNameValid (char *name) {
     68
     69  char *p = name;
     70
     71  while (*p) {
     72    int valid = OHANA_WHITESPACE(*p);
     73    valid = valid || ISVEC(*p);
     74    if (!valid) return FALSE;
     75    p++;
     76  }
     77  return TRUE;
     78}
     79
    6780int IsVectorPtr (Vector *vec) {
    6881 
     
    89102  if (i == Nvectors) {
    90103    if (mode == OLDVECTOR) goto error;
     104    // validate vector name syntax
     105    if (!IsVectorNameValid(name)) { gprint (GP_ERR, "invalid vector name %s\n", name); return NULL; }
    91106    pthread_mutex_lock (&mutex);
    92107    Nvectors ++;
Note: See TracChangeset for help on using the changeset viewer.