generic/tcl-augeas.c
static int
Load_Cmd(ClientData cdata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
    augeas *aug;
    int aug_result;

    if (objc != 2) {
        Tcl_WrongNumArgs(interp, 1, objv, USAGE_LOAD);
        return TCL_ERROR;
    }

    aug = parse_id(cdata, interp, objv[1], 0);
    if (aug == NULL) {
        return TCL_ERROR;
    }

    aug_result = aug_load(aug);

    if (aug_result == 0) {
        return TCL_OK;
    } else {
        Tcl_SetObjResult(interp, Tcl_NewStringObj("can't load", -1));
        return TCL_ERROR;
    }
}
/*
 * Reloads an Augeas object.
 * Return value: nothing.
 * Side effects: modifies an Augeas object.
 */
Reloads an Augeas object.
Return value: nothing.
Side effects: modifies an Augeas object.
Reloads an Augeas object . Return value : nothing . Side effects : modifies an Augeas object .
static int
Load_Cmd(ClientData cdata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
    augeas *aug;
    int aug_result;
    if (objc != 2) {
        Tcl_WrongNumArgs(interp, 1, objv, USAGE_LOAD);
        return TCL_ERROR;
    }
    aug = parse_id(cdata, interp, objv[1], 0);
    if (aug == NULL) {
        return TCL_ERROR;
    }
    aug_result = aug_load(aug);
    if (aug_result == 0) {
        return TCL_OK;
    } else {
        Tcl_SetObjResult(interp, Tcl_NewStringObj("can't load", -1));
        return TCL_ERROR;
    }
}
static int Load_Cmd ( ClientData cdata , Tcl_Interp * interp , int objc , Tcl_Obj * const objv [ ] ) { augeas * aug ; int aug_result ; if ( objc != 2 ) { Tcl_WrongNumArgs ( interp , 1 , objv , USAGE_LOAD ) ; return TCL_ERROR ; } aug = parse_id ( cdata , interp , objv [ 1 ] , 0 ) ; if ( aug == NULL ) { return TCL_ERROR ; } aug_result = aug_load ( aug ) ; if ( aug_result == 0 ) { return TCL_OK ; } else { Tcl_SetObjResult ( interp , Tcl_NewStringObj ( " " , -1 ) ) ; return TCL_ERROR ; } }
Reloads an Augeas object.
Reloads an Augeas object .