ModulesConf.cc File Reference

#include "config.h"
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <Y2.h>
#include "ModulesConf.h"
#include "Y2Logger.h"

Defines

#define BACKUP_EXTENSION   ".YaST2save"
#define FINAL_COMMENT   "YaST2_final_modules_conf_comment"
#define Y2_STRING(dest, source, ret)

Functions

string killspaces (const string s)

Define Documentation

#define BACKUP_EXTENSION   ".YaST2save"

Referenced by ModulesConf::writeFile().

#define FINAL_COMMENT   "YaST2_final_modules_conf_comment"

#define Y2_STRING ( dest,
source,
ret   ) 

Value:

{ \
  char *ss; \
  do { \
    ss = strsep(&source,WHITESPACE); \
    if(ss==NULL) { \
      if(!ret && line!="keep") \
        y2error("Parse error: %s (%s)",dest.c_str(),line.c_str()); \
      free (line_str); \
      return ret; \
    } \
  } while((dest=ss)==""); \
}

Referenced by ModulesConf::parseLine().


Function Documentation

string killspaces ( const string  s  ) 


Generated on a sunny day for yast2-core by doxygen 1.5.9